Make use of new outer_expn_info() function

This commit is contained in:
Lzu Tao
2019-06-01 16:25:51 +07:00
parent f3087c37bf
commit f67c3e4b2a
7 changed files with 12 additions and 25 deletions

View File

@@ -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?