Revert "Fix E0502 warnings"

This reverts commit 98dbce4fe4.

The compiler no longer emits the warnings in #2982 with the original
code.
This commit is contained in:
Michael Wright
2018-08-26 11:18:44 +02:00
parent 296b79bdb8
commit 95fedd2273
2 changed files with 3 additions and 7 deletions

View File

@@ -448,8 +448,7 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
CaptureClause::CaptureByValue => 0,
CaptureClause::CaptureByRef => 1,
}.hash(&mut self.s);
let value = &self.cx.tcx.hir.body(eid).value;
self.hash_expr(value);
self.hash_expr(&self.cx.tcx.hir.body(eid).value);
},
ExprKind::Field(ref e, ref f) => {
let c: fn(_, _) -> _ = ExprKind::Field;
@@ -516,8 +515,7 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
self.hash_expr(e);
let full_table = self.tables;
self.tables = self.cx.tcx.body_tables(l_id.body);
let value = &self.cx.tcx.hir.body(l_id.body).value;
self.hash_expr(value);
self.hash_expr(&self.cx.tcx.hir.body(l_id.body).value);
self.tables = full_table;
},
ExprKind::Ret(ref e) => {