Skip to content

Commit 30f2d58

Browse files
committed
---
yaml --- r: 44757 b: refs/heads/master c: 9b08cd4 h: refs/heads/master i: 44755: 2ec70c3 v: v3
1 parent fac580b commit 30f2d58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8fceee6c88ee58a506b9d2d9f5f04c1dc423214c
2+
refs/heads/master: 9b08cd4903f7b3b5bb193dec85b055f24ff09cb7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/librustc/middle/typeck/astconv.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ pub fn ast_ty_to_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
216216
match a_seq_ty.ty.node {
217217
ast::ty_vec(mt) => {
218218
let mut mt = ast_mt_to_mt(self, rscope, mt);
219-
if a_seq_ty.mutbl == ast::m_mutbl {
219+
if a_seq_ty.mutbl == ast::m_mutbl ||
220+
a_seq_ty.mutbl == ast::m_const {
220221
mt = ty::mt { ty: mt.ty, mutbl: ast::m_mutbl };
221222
}
222223
return ty::mk_evec(tcx, mt, vst);

0 commit comments

Comments
 (0)