Skip to content

Commit 8e650f0

Browse files
committed
---
yaml --- r: 44963 b: refs/heads/master c: c407549 h: refs/heads/master i: 44961: 391435e 44959: c331704 v: v3
1 parent f412610 commit 8e650f0

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-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: 6d4ed5283c53d975af9ff8f1a21fbc27eac9d4c1
2+
refs/heads/master: c4075492ad46a343bd99d6f258e38ed9c2320418
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + Durable>(
214214
let mut mt = ast_mt_to_mt(self, rscope, mt);
215215
if a_seq_ty.mutbl == ast::m_mutbl ||
216216
a_seq_ty.mutbl == ast::m_const {
217-
mt = ty::mt { ty: mt.ty, mutbl: ast::m_mutbl };
217+
mt = ty::mt { ty: mt.ty, mutbl: a_seq_ty.mutbl };
218218
}
219219
return ty::mk_evec(tcx, mt, vst);
220220
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn f(_: &const [int]) {}
2+
3+
fn main() {
4+
let v = [ 1, 2, 3 ];
5+
f(v);
6+
}
7+

0 commit comments

Comments
 (0)