Skip to content

Commit 5894e40

Browse files
committed
rustc: Add missing case for interior vectors in alias.rs
1 parent 7fc89f5 commit 5894e40

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/middle/alias.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,12 @@ fn expr_root(&ctx cx, @ast::expr ex, bool autoderef) ->
521521
kind=index,
522522
outer_t=auto_unbox.t));
523523
}
524+
case (ty::ty_ivec(?mt)) {
525+
vec::push(ds,
526+
rec(mut=mt.mut != ast::imm,
527+
kind=index,
528+
outer_t=auto_unbox.t));
529+
}
524530
}
525531
maybe_push_auto_unbox(auto_unbox.d, ds);
526532
ex = base;

0 commit comments

Comments
 (0)