@@ -36,12 +36,6 @@ warning: expected `}`, found `!`
3636LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
3737 | ^^^^^^^^^^^^^^^
3838
39- warning: unmatched `}` found
40- --> $DIR/broken_format.rs:22:42
41- |
42- LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
43- | ^^^^^^^^^^^^^^^
44-
4539warning: unmatched `}` found
4640 --> $DIR/broken_format.rs:2:42
4741 |
@@ -51,7 +45,7 @@ LL | #[diagnostic::on_unimplemented(message = "{{Test } thing")]
5145 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
5246
5347error[E0277]: {{Test } thing
54- --> $DIR/broken_format.rs:36 :13
48+ --> $DIR/broken_format.rs:34 :13
5549 |
5650LL | check_1(());
5751 | ------- ^^ the trait `ImportantTrait1` is not implemented for `()`
@@ -64,7 +58,7 @@ help: this trait has no implementations, consider adding one
6458LL | trait ImportantTrait1 {}
6559 | ^^^^^^^^^^^^^^^^^^^^^
6660note: required by a bound in `check_1`
67- --> $DIR/broken_format.rs:29 :20
61+ --> $DIR/broken_format.rs:27 :20
6862 |
6963LL | fn check_1(_: impl ImportantTrait1) {}
7064 | ^^^^^^^^^^^^^^^ required by this bound in `check_1`
@@ -79,7 +73,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {}")]
7973 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
8074
8175error[E0277]: Test {}
82- --> $DIR/broken_format.rs:38 :13
76+ --> $DIR/broken_format.rs:36 :13
8377 |
8478LL | check_2(());
8579 | ------- ^^ the trait `ImportantTrait2` is not implemented for `()`
@@ -92,7 +86,7 @@ help: this trait has no implementations, consider adding one
9286LL | trait ImportantTrait2 {}
9387 | ^^^^^^^^^^^^^^^^^^^^^
9488note: required by a bound in `check_2`
95- --> $DIR/broken_format.rs:30 :20
89+ --> $DIR/broken_format.rs:28 :20
9690 |
9791LL | fn check_2(_: impl ImportantTrait2) {}
9892 | ^^^^^^^^^^^^^^^ required by this bound in `check_2`
@@ -107,7 +101,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {1:}")]
107101 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
108102
109103error[E0277]: Test {1}
110- --> $DIR/broken_format.rs:40 :13
104+ --> $DIR/broken_format.rs:38 :13
111105 |
112106LL | check_3(());
113107 | ------- ^^ the trait `ImportantTrait3` is not implemented for `()`
@@ -120,7 +114,7 @@ help: this trait has no implementations, consider adding one
120114LL | trait ImportantTrait3 {}
121115 | ^^^^^^^^^^^^^^^^^^^^^
122116note: required by a bound in `check_3`
123- --> $DIR/broken_format.rs:31 :20
117+ --> $DIR/broken_format.rs:29 :20
124118 |
125119LL | fn check_3(_: impl ImportantTrait3) {}
126120 | ^^^^^^^^^^^^^^^ required by this bound in `check_3`
@@ -135,7 +129,7 @@ LL | #[diagnostic::on_unimplemented(message = "Test {Self:123}")]
135129 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
136130
137131error[E0277]: Test ()
138- --> $DIR/broken_format.rs:42 :13
132+ --> $DIR/broken_format.rs:40 :13
139133 |
140134LL | check_4(());
141135 | ------- ^^ the trait `ImportantTrait4` is not implemented for `()`
@@ -148,7 +142,7 @@ help: this trait has no implementations, consider adding one
148142LL | trait ImportantTrait4 {}
149143 | ^^^^^^^^^^^^^^^^^^^^^
150144note: required by a bound in `check_4`
151- --> $DIR/broken_format.rs:32 :20
145+ --> $DIR/broken_format.rs:30 :20
152146 |
153147LL | fn check_4(_: impl ImportantTrait4) {}
154148 | ^^^^^^^^^^^^^^^ required by this bound in `check_4`
@@ -161,33 +155,25 @@ LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
161155 |
162156 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
163157
164- warning: unmatched `}` found
165- --> $DIR/broken_format.rs:22:42
166- |
167- LL | #[diagnostic::on_unimplemented(message = "Test {Self:!}")]
168- | ^^^^^^^^^^^^^^^
169- |
170- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
171-
172158error[E0277]: Test {Self:!}
173- --> $DIR/broken_format.rs:44 :13
159+ --> $DIR/broken_format.rs:42 :13
174160 |
175161LL | check_5(());
176162 | ------- ^^ the trait `ImportantTrait5` is not implemented for `()`
177163 | |
178164 | required by a bound introduced by this call
179165 |
180166help: this trait has no implementations, consider adding one
181- --> $DIR/broken_format.rs:27 :1
167+ --> $DIR/broken_format.rs:25 :1
182168 |
183169LL | trait ImportantTrait5 {}
184170 | ^^^^^^^^^^^^^^^^^^^^^
185171note: required by a bound in `check_5`
186- --> $DIR/broken_format.rs:33 :20
172+ --> $DIR/broken_format.rs:31 :20
187173 |
188174LL | fn check_5(_: impl ImportantTrait5) {}
189175 | ^^^^^^^^^^^^^^^ required by this bound in `check_5`
190176
191- error: aborting due to 5 previous errors; 12 warnings emitted
177+ error: aborting due to 5 previous errors; 10 warnings emitted
192178
193179For more information about this error, try `rustc --explain E0277`.
0 commit comments