Make use of new outer_expn_info() function
This commit is contained in:
@@ -272,7 +272,7 @@ fn attr_is_cfg(attr: &ast::Attribute) -> bool {
|
||||
|
||||
// get the def site
|
||||
fn get_def(span: Span) -> Option<Span> {
|
||||
span.ctxt().outer().expn_info().and_then(|info| info.def_site)
|
||||
span.ctxt().outer_expn_info().and_then(|info| info.def_site)
|
||||
}
|
||||
|
||||
// is this expr a `()` unit?
|
||||
|
||||
Reference in New Issue
Block a user