Make use of new outer_expn_info()
function
This commit is contained in:
parent
f3087c37bf
commit
f67c3e4b2a
7 changed files with 12 additions and 25 deletions
|
@ -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()
|
||||
.outer_expn_info()
|
||||
.map(|info| info.call_site)
|
||||
.expect("unable to get call_site")
|
||||
.ctxt()
|
||||
.outer()
|
||||
.expn_info()
|
||||
.outer_expn_info()
|
||||
.map(|info| info.call_site)
|
||||
.expect("unable to get call_site");
|
||||
check_vec_macro(cx, &vec_args, span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue