Rust upgrade to rustc 1.22.0-nightly (0701b37d9 2017-09-18)
This commit is contained in:
@@ -307,7 +307,7 @@ fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option<u128> {
|
|||||||
cx.tcx.mir_const_qualif(def_id);
|
cx.tcx.mir_const_qualif(def_id);
|
||||||
cx.tcx.hir.body(cx.tcx.hir.body_owned_by(id))
|
cx.tcx.hir.body(cx.tcx.hir.body_owned_by(id))
|
||||||
} else {
|
} else {
|
||||||
cx.tcx.extern_const_body(def_id)
|
cx.tcx.extern_const_body(def_id).body
|
||||||
};
|
};
|
||||||
fetch_int_literal(cx, &body.value)
|
fetch_int_literal(cx, &body.value)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
|
|||||||
self.tcx.mir_const_qualif(def_id);
|
self.tcx.mir_const_qualif(def_id);
|
||||||
self.tcx.hir.body(self.tcx.hir.body_owned_by(id))
|
self.tcx.hir.body(self.tcx.hir.body_owned_by(id))
|
||||||
} else {
|
} else {
|
||||||
self.tcx.extern_const_body(def_id)
|
self.tcx.extern_const_body(def_id).body
|
||||||
};
|
};
|
||||||
let ret = cx.expr(&body.value);
|
let ret = cx.expr(&body.value);
|
||||||
if ret.is_some() {
|
if ret.is_some() {
|
||||||
|
|||||||
Reference in New Issue
Block a user