1
Fork 0

Use outer_expn_data instead of outer_expn_info

This commit is contained in:
KRAAI, MATTHEW [VISUS] 2019-08-16 09:29:30 -07:00
parent 348d398b1c
commit f74d9db7f4
11 changed files with 89 additions and 65 deletions

View file

@ -49,13 +49,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UselessVec {
// report the error around the `vec!` not inside `<std macros>:`
let span = arg.span
.ctxt()
.outer_expn_info()
.map(|info| info.call_site)
.expect("unable to get call_site")
.outer_expn_data()
.call_site
.ctxt()
.outer_expn_info()
.map(|info| info.call_site)
.expect("unable to get call_site");
.outer_expn_data()
.call_site;
check_vec_macro(cx, &vec_args, span);
}
}