Rollup merge of #77371 - camelid:remove-extra-space-in-diagnostic, r=varkor
Remove trailing space in error message - Add test for error message - Remove trailing space in error message
This commit is contained in:
commit
85e77edc82
3 changed files with 19 additions and 1 deletions
|
@ -232,7 +232,7 @@ impl<'tcx> ty::TyS<'tcx> {
|
|||
let n = tcx.lift(&n).unwrap();
|
||||
match n.try_eval_usize(tcx, ty::ParamEnv::empty()) {
|
||||
_ if t.is_simple_ty() => format!("array `{}`", self).into(),
|
||||
Some(n) => format!("array of {} element{} ", n, pluralize!(n)).into(),
|
||||
Some(n) => format!("array of {} element{}", n, pluralize!(n)).into(),
|
||||
None => "array".into(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue