Merge pull request #162 from solson/rustup
Update to rustc 1.19.0-nightly (777ee2079
2017-05-01)
This commit is contained in:
commit
f8c8813f87
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue