diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-09-30 11:29:19 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-09-30 11:52:42 -0700 |
| commit | b2ce3e53446173b56607b5a8ad8d9c4b3565d5da (patch) | |
| tree | 812bd48e06966eff5ba850a0bf96672de9e2d3fe | |
| parent | 05d0b969d9e1c3da6a2651a2ded45f662842a3f9 (diff) | |
Remove trailing space in error message
| -rw-r--r-- | compiler/rustc_middle/src/ty/error.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/slice-to-vec-comparison.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/error.rs b/compiler/rustc_middle/src/ty/error.rs index 67c69d69bda..82d698b37ab 100644 --- a/compiler/rustc_middle/src/ty/error.rs +++ b/compiler/rustc_middle/src/ty/error.rs @@ -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(), } } diff --git a/src/test/ui/slice-to-vec-comparison.stderr b/src/test/ui/slice-to-vec-comparison.stderr index c80f86c5592..e3b3b040f66 100644 --- a/src/test/ui/slice-to-vec-comparison.stderr +++ b/src/test/ui/slice-to-vec-comparison.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> $DIR/slice-to-vec-comparison.rs:4:9 | LL | a > b; - | ^ expected array of 0 elements , found struct `Vec` + | ^ expected array of 0 elements, found struct `Vec` | = note: expected reference `&[_; 0]` found reference `&Vec<u8>` |
