diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs
index 258903e1f104..fa57e0b96745 100644
--- a/src/librustc/ty/print/pretty.rs
+++ b/src/librustc/ty/print/pretty.rs
@@ -1489,7 +1489,7 @@ define_print_and_forward_display! {
ty::ExistentialProjection<'tcx> {
let name = cx.tcx().associated_item(self.item_def_id).ident;
- p!(write("{}=", name), print(self.ty))
+ p!(write("{} = ", name), print(self.ty))
}
ty::ExistentialPredicate<'tcx> {
diff --git a/src/test/ui/associated-types/associated-types-eq-3.stderr b/src/test/ui/associated-types/associated-types-eq-3.stderr
index c1a8e2002be6..31d2c5f318e5 100644
--- a/src/test/ui/associated-types/associated-types-eq-3.stderr
+++ b/src/test/ui/associated-types/associated-types-eq-3.stderr
@@ -29,7 +29,7 @@ LL | baz(&a);
|
= note: expected type `usize`
found type `Bar`
- = note: required for the cast to the object type `dyn Foo`
+ = note: required for the cast to the object type `dyn Foo`
error: aborting due to 3 previous errors
diff --git a/src/test/ui/associated-types/associated-types-overridden-binding-2.stderr b/src/test/ui/associated-types/associated-types-overridden-binding-2.stderr
index 8c0e5570d198..ad0b6515490b 100644
--- a/src/test/ui/associated-types/associated-types-overridden-binding-2.stderr
+++ b/src/test/ui/associated-types/associated-types-overridden-binding-2.stderr
@@ -6,7 +6,7 @@ LL | let _: &I32Iterator- = &vec![42].into_iter();
|
= note: expected type `u32`
found type `i32`
- = note: required for the cast to the object type `dyn I32Iterator
- `
+ = note: required for the cast to the object type `dyn I32Iterator
- `
error: aborting due to previous error
diff --git a/src/test/ui/confuse-field-and-method/issue-2392.stderr b/src/test/ui/confuse-field-and-method/issue-2392.stderr
index 7cd1941d80e8..456a4c18e2b3 100644
--- a/src/test/ui/confuse-field-and-method/issue-2392.stderr
+++ b/src/test/ui/confuse-field-and-method/issue-2392.stderr
@@ -75,7 +75,7 @@ LL | w.wrap.not_closure();
|
= help: did you mean to write `w.wrap.not_closure` instead of `w.wrap.not_closure(...)`?
-error[E0599]: no method named `closure` found for type `Obj + 'static)>>` in the current scope
+error[E0599]: no method named `closure` found for type `Obj + 'static)>>` in the current scope
--> $DIR/issue-2392.rs:62:24
|
LL | struct Obj where F: FnOnce() -> u32 {
diff --git a/src/test/ui/issues/issue-20605.stderr b/src/test/ui/issues/issue-20605.stderr
index f779fe51bf2d..89df58dd2dc1 100644
--- a/src/test/ui/issues/issue-20605.stderr
+++ b/src/test/ui/issues/issue-20605.stderr
@@ -1,10 +1,10 @@
-error[E0277]: the size for values of type `dyn std::iter::Iterator
- ` cannot be known at compilation time
+error[E0277]: the size for values of type `dyn std::iter::Iterator
- ` cannot be known at compilation time
--> $DIR/issue-20605.rs:2:17
|
LL | for item in *things { *item = 0 }
| ^^^^^^^ doesn't have a size known at compile-time
|
- = help: the trait `std::marker::Sized` is not implemented for `dyn std::iter::Iterator
- `
+ = help: the trait `std::marker::Sized` is not implemented for `dyn std::iter::Iterator
- `
= note: to learn more, visit
= note: required by `std::iter::IntoIterator::into_iter`
diff --git a/src/test/ui/issues/issue-22312.stderr b/src/test/ui/issues/issue-22312.stderr
index d8987a37f7e4..6a012b214c50 100644
--- a/src/test/ui/issues/issue-22312.stderr
+++ b/src/test/ui/issues/issue-22312.stderr
@@ -1,4 +1,4 @@
-error[E0605]: non-primitive cast: `Self` as `&dyn std::ops::Index>::Output>`
+error[E0605]: non-primitive cast: `Self` as `&dyn std::ops::Index>::Output>`
--> $DIR/issue-22312.rs:11:24
|
LL | let indexer = &(*self as &Index>::Output>);
diff --git a/src/test/ui/issues/issue-55796.stderr b/src/test/ui/issues/issue-55796.stderr
index c05f8b85d0e9..7cf597d3a98f 100644
--- a/src/test/ui/issues/issue-55796.stderr
+++ b/src/test/ui/issues/issue-55796.stderr
@@ -16,8 +16,8 @@ LL | Box::new(self.out_edges(u).map(|e| e.target()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: but, the lifetime must be valid for the static lifetime...
= note: ...so that the expression is assignable:
- expected std::boxed::Box<(dyn std::iter::Iterator
- >::Node> + 'static)>
- found std::boxed::Box>::Node>>
+ expected std::boxed::Box<(dyn std::iter::Iterator
- >::Node> + 'static)>
+ found std::boxed::Box>::Node>>
error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
--> $DIR/issue-55796.rs:21:9
@@ -37,8 +37,8 @@ LL | Box::new(self.in_edges(u).map(|e| e.target()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: but, the lifetime must be valid for the static lifetime...
= note: ...so that the expression is assignable:
- expected std::boxed::Box<(dyn std::iter::Iterator
- >::Node> + 'static)>
- found std::boxed::Box>::Node>>
+ expected std::boxed::Box<(dyn std::iter::Iterator
- >::Node> + 'static)>
+ found std::boxed::Box>::Node>>
error: aborting due to 2 previous errors
diff --git a/src/test/ui/retslot-cast.stderr b/src/test/ui/retslot-cast.stderr
index 3c58285bdb35..a1169910ae7e 100644
--- a/src/test/ui/retslot-cast.stderr
+++ b/src/test/ui/retslot-cast.stderr
@@ -2,10 +2,10 @@ error[E0308]: mismatched types
--> $DIR/retslot-cast.rs:13:5
|
LL | inner(x)
- | ^^^^^^^^ expected trait `std::iter::Iterator
- `, found trait `std::iter::Iterator
- + std::marker::Send`
+ | ^^^^^^^^ expected trait `std::iter::Iterator
- `, found trait `std::iter::Iterator
- + std::marker::Send`
|
- = note: expected type `std::option::Option<&dyn std::iter::Iterator
- >`
- found type `std::option::Option<&dyn std::iter::Iterator
- + std::marker::Send>`
+ = note: expected type `std::option::Option<&dyn std::iter::Iterator
- >`
+ found type `std::option::Option<&dyn std::iter::Iterator
- + std::marker::Send>`
error: aborting due to previous error
diff --git a/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr b/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
index f1118709962a..d41086186f8d 100644
--- a/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
+++ b/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr
@@ -7,7 +7,7 @@ LL | *x
| ^^ expected (), found trait std::iter::Iterator
|
= note: expected type `()`
- found type `(dyn std::iter::Iterator
- + 'static)`
+ found type `(dyn std::iter::Iterator
- + 'static)`
error: aborting due to previous error
diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr b/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr
index 508c2f780b9f..ce90f5b9d248 100644
--- a/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr
+++ b/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr
@@ -1,8 +1,8 @@
-error[E0277]: the trait bound `dyn Foo<(isize,), isize, Output=()>: Eq>` is not satisfied
+error[E0277]: the trait bound `dyn Foo<(isize,), isize, Output = ()>: Eq>` is not satisfied
--> $DIR/unboxed-closure-sugar-default.rs:21:5
|
LL | eq::< Foo<(isize,),isize,Output=()>, Foo(isize) >();
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq>` is not implemented for `dyn Foo<(isize,), isize, Output=()>`
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq>` is not implemented for `dyn Foo<(isize,), isize, Output = ()>`
|
note: required by `eq`
--> $DIR/unboxed-closure-sugar-default.rs:14:1
diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr b/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr
index 071ba2792b0a..857a32ca69e7 100644
--- a/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr
+++ b/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr
@@ -1,9 +1,9 @@
-error[E0277]: the trait bound `dyn Foo<(char,), Output=()>: Eq>` is not satisfied
+error[E0277]: the trait bound `dyn Foo<(char,), Output = ()>: Eq>` is not satisfied
--> $DIR/unboxed-closure-sugar-equiv.rs:43:5
|
LL | / eq::< Foo<(),Output=()>,
LL | | Foo(char) >();
- | |___________________________________________________________________^ the trait `Eq>` is not implemented for `dyn Foo<(char,), Output=()>`
+ | |___________________________________________________________________^ the trait `Eq>` is not implemented for `dyn Foo<(char,), Output = ()>`
|
note: required by `eq`
--> $DIR/unboxed-closure-sugar-equiv.rs:16:1
diff --git a/src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr b/src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr
index 69a9fd7a60c9..d0475bf08c38 100644
--- a/src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr
+++ b/src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr
@@ -19,8 +19,8 @@ LL | Box::new(items.iter())
| ^^^^^
= note: but, the lifetime must be valid for the static lifetime...
= note: ...so that the expression is assignable:
- expected std::boxed::Box<(dyn std::iter::Iterator
- + 'static)>
- found std::boxed::Box>
+ expected std::boxed::Box<(dyn std::iter::Iterator
- + 'static)>
+ found std::boxed::Box>
error: aborting due to previous error