1
Fork 0

Merge pull request #162 from solson/rustup

Update to rustc 1.19.0-nightly (777ee2079 2017-05-01)
This commit is contained in:
Eduard-Mihai Burtescu 2017-05-02 12:24:10 +03:00 committed by GitHub
commit f8c8813f87

View file

@ -248,7 +248,7 @@ impl<'a, 'b, 'tcx> Visitor<'tcx> for ConstantExtractor<'a, 'b, 'tcx> {
bug!("static def id doesn't point to item");
}
} else {
let def = self.ecx.tcx.sess.cstore.describe_def(def_id).expect("static not found");
let def = self.ecx.tcx.describe_def(def_id).expect("static not found");
if let hir::def::Def::Static(_, mutable) = def {
self.global_item(def_id, substs, span, !mutable);
} else {