Upgrade to rustc 1.18.0-nightly (474f7a91e 2017-03-31)

This commit is contained in:
Simon Sapin 2017-03-31 15:09:04 +02:00
parent 955d3a8b87
commit de01c59891
3 changed files with 13 additions and 14 deletions

View file

@ -138,7 +138,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
visit::FnKind::Closure(_) => return,
};
if !in_derive_expn(cx, span) {
if !in_derive_expn(span) {
let def_id = cx.tcx.hir.local_def_id(id);
let ty = cx.tcx.item_type(def_id);