Skip to content

Commit 8be9209

Browse files
committed
---
yaml --- r: 46746 b: refs/heads/auto c: c407549 h: refs/heads/master v: v3
1 parent 4e89718 commit 8be9209

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
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 6d4ed5283c53d975af9ff8f1a21fbc27eac9d4c1
17+
refs/heads/auto: c4075492ad46a343bd99d6f258e38ed9c2320418

branches/auto/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)