Skip to content

Commit 35fa442

Browse files
committed
Rust upgrade to rustc 1.22.0-nightly (0701b37 2017-09-18)
1 parent 0b64222 commit 35fa442

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/bit_mask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option<u128> {
307307
cx.tcx.mir_const_qualif(def_id);
308308
cx.tcx.hir.body(cx.tcx.hir.body_owned_by(id))
309309
} else {
310-
cx.tcx.extern_const_body(def_id)
310+
cx.tcx.extern_const_body(def_id).body
311311
};
312312
fetch_int_literal(cx, &body.value)
313313
})

clippy_lints/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
298298
self.tcx.mir_const_qualif(def_id);
299299
self.tcx.hir.body(self.tcx.hir.body_owned_by(id))
300300
} else {
301-
self.tcx.extern_const_body(def_id)
301+
self.tcx.extern_const_body(def_id).body
302302
};
303303
let ret = cx.expr(&body.value);
304304
if ret.is_some() {

0 commit comments

Comments
 (0)