Skip to content

Commit

Permalink
Update error messages from "vector" to "array"
Browse files Browse the repository at this point in the history
  • Loading branch information
mprobinson committed Nov 2, 2014
1 parent 3327ecc commit 2c2c455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/typeck/astconv.rs
Expand Up @@ -998,14 +998,14 @@ pub fn ast_ty_to_ty<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(
Some(i as uint)),
_ => {
tcx.sess.span_fatal(
ast_ty.span, "expected constant expr for vector length");
ast_ty.span, "expected constant expr for array length");
}
}
}
Err(ref r) => {
tcx.sess.span_fatal(
ast_ty.span,
format!("expected constant expr for vector \
format!("expected constant expr for array \
length: {}",
*r).as_slice());
}
Expand Down

0 comments on commit 2c2c455

Please sign in to comment.