Skip to content

Commit

Permalink
Auto merge of rust-lang#21877 - dotdash:less_auto_deref, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Feb 3, 2015
2 parents 3d072a1 + a3d2d35 commit 3b2ed14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_trans/trans/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
// a different region or mutability, but we don't care here. It might
// also be just in case we need to unsize. But if there are no nested
// adjustments then it should be a no-op).
Some(ty::AutoPtr(_, _, None)) if adj.autoderefs == 1 => {
Some(ty::AutoPtr(_, _, None)) |
Some(ty::AutoUnsafe(_, None)) if adj.autoderefs == 1 => {
match datum.ty.sty {
// Don't skip a conversion from Box<T> to &T, etc.
ty::ty_rptr(..) => {
Expand Down

0 comments on commit 3b2ed14

Please sign in to comment.