Skip to content

Commit 53b7464

Browse files
Autoderef in librustc_mir
1 parent 003879c commit 53b7464

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_mir/build/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl<'a,'tcx> Builder<'a,'tcx> {
488488
let funcdid = match self.hir.tcx().lang_items.require(lang_item) {
489489
Ok(d) => d,
490490
Err(m) => {
491-
self.hir.tcx().sess.fatal(&*m)
491+
self.hir.tcx().sess.fatal(&m)
492492
}
493493
};
494494
Constant {

src/librustc_mir/hair/cx/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
114114
}
115115

116116
hir::ExprBlock(ref blk) => {
117-
ExprKind::Block { body: &**blk }
117+
ExprKind::Block { body: &blk }
118118
}
119119

120120
hir::ExprAssign(ref lhs, ref rhs) => {
@@ -277,7 +277,7 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
277277
});
278278
ExprKind::Closure {
279279
closure_id: def_id,
280-
substs: &**substs,
280+
substs: &substs,
281281
upvars: upvars,
282282
}
283283
}

src/librustc_mir/hair/cx/pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl<'patcx, 'cx, 'tcx> PatCx<'patcx, 'cx, 'tcx> {
9090
Some(const_expr) => {
9191
let pat = const_eval::const_expr_to_pat(self.cx.tcx, const_expr,
9292
pat.span);
93-
return self.to_pattern(&*pat);
93+
return self.to_pattern(&pat);
9494
}
9595
None => {
9696
self.cx.tcx.sess.span_bug(

0 commit comments

Comments
 (0)