Update error messages from "vector" to "array"

This commit is contained in:
Mike Robinson 2014-11-02 03:11:08 +00:00
parent 3327ecca42
commit 2c2c45535a

View File

@ -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());
}