Skip to content

Commit 6f00bee

Browse files
committed
rollup merge of #18526 : mprobinson/vector-error-msg
2 parents 202ede1 + 2c2c455 commit 6f00bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/typeck/astconv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,14 +998,14 @@ pub fn ast_ty_to_ty<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(
998998
Some(i as uint)),
999999
_ => {
10001000
tcx.sess.span_fatal(
1001-
ast_ty.span, "expected constant expr for vector length");
1001+
ast_ty.span, "expected constant expr for array length");
10021002
}
10031003
}
10041004
}
10051005
Err(ref r) => {
10061006
tcx.sess.span_fatal(
10071007
ast_ty.span,
1008-
format!("expected constant expr for vector \
1008+
format!("expected constant expr for array \
10091009
length: {}",
10101010
*r).as_slice());
10111011
}

0 commit comments

Comments
 (0)