Skip to content

Commit 2311aca

Browse files
committed
--bless ui
1 parent 0919316 commit 2311aca

File tree

9 files changed

+24
-34
lines changed

9 files changed

+24
-34
lines changed

src/test/ui/associated-consts/issue-93835.stderr

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ help: you might have meant to write a `struct` literal
1919
|
2020
LL ~ fn e() { SomeStruct {
2121
LL | p:a<p:p<e=6>>
22-
LL |
23-
LL |
24-
LL |
25-
LL |
2622
...
23+
LL |
24+
LL ~ }}
25+
|
2726
help: maybe you meant to write a path separator here
2827
|
2928
LL | p::a<p:p<e=6>>

src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr

+6-8
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ help: add a dummy let to cause `fptr` to be fully captured
1717
|
1818
LL ~ thread::spawn(move || { let _ = &fptr; unsafe {
1919
LL |
20-
LL |
21-
LL |
22-
LL |
23-
LL | *fptr.0 = 20;
2420
...
21+
LL |
22+
LL ~ } });
23+
|
2524

2625
error: changes to closure capture in Rust 2021 will affect which traits the closure implements
2726
--> $DIR/auto_traits.rs:42:19
@@ -39,12 +38,11 @@ LL | *fptr.0.0 = 20;
3938
help: add a dummy let to cause `fptr` to be fully captured
4039
|
4140
LL ~ thread::spawn(move || { let _ = &fptr; unsafe {
42-
LL |
43-
LL |
44-
LL |
45-
LL |
4641
LL |
4742
...
43+
LL |
44+
LL ~ } });
45+
|
4846

4947
error: changes to closure capture in Rust 2021 will affect drop order and which traits the closure implements
5048
--> $DIR/auto_traits.rs:67:13

src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr

+3-4
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,11 @@ LL | *fptr2.0 = 20;
108108
help: add a dummy let to cause `fptr1`, `fptr2` to be fully captured
109109
|
110110
LL ~ thread::spawn(move || { let _ = (&fptr1, &fptr2); unsafe {
111-
LL |
112-
LL |
113-
LL |
114-
LL |
115111
LL |
116112
...
113+
LL |
114+
LL ~ } });
115+
|
117116

118117
error: aborting due to 5 previous errors
119118

src/test/ui/imports/issue-59764.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ help: a macro with this name exists at the root of the crate
209209
|
210210
LL ~ issue_59764::{makro as foobar,
211211
LL |
212-
LL | foobaz,
213-
LL |
212+
...
214213
LL |
215214
LL ~ foo::{baz}
216215
|

src/test/ui/issues/issue-22644.stderr

+3-4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ LL | 5);
8989
help: try comparing the cast value
9090
|
9191
LL ~ println!("{}", (a
92-
LL |
93-
LL |
94-
LL | as
95-
LL |
9692
LL |
9793
...
94+
LL |
95+
LL ~ usize)
96+
|
9897

9998
error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
10099
--> $DIR/issue-22644.rs:32:31

src/test/ui/let-else/let-else-if.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ help: try placing this code inside a block
88
|
99
LL ~ let Some(_) = Some(()) else { if true {
1010
LL |
11-
LL | return;
12-
LL | } else {
11+
...
1312
LL | return;
1413
LL ~ } };
1514
|

src/test/ui/parser/recover-labeled-non-block-expr.stderr

+3-4
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ help: consider enclosing expression in a block
5454
|
5555
LL ~ let _i = 'label: { match x {
5656
LL | 0 => 42,
57-
LL | 1 if false => break 'label 17,
58-
LL | 1 => {
59-
LL | if true {
60-
LL | break 'label 13
6157
...
58+
LL | _ => 1,
59+
LL ~ } };
60+
|
6261

6362
error: expected `while`, `for`, `loop` or `{` after a label
6463
--> $DIR/recover-labeled-non-block-expr.rs:26:24

src/test/ui/type/ascription/issue-34255-1.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ help: you might have meant to write a `struct` literal
88
|
99
LL ~ pub fn new() -> Self { SomeStruct {
1010
LL | input_cells: Vec::new()
11-
LL |
12-
LL |
11+
...
1312
LL |
1413
LL ~ }}
1514
|

src/test/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.stderr

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ help: consider introducing a named lifetime parameter
99
|
1010
LL ~ fn main<'a>() {
1111
LL | eq::< dyn for<'a> Foo<(&'a isize,), Output=&'a isize>,
12-
LL | dyn Foo(&isize) -> &isize >();
13-
LL | eq::< dyn for<'a> Foo<(&'a isize,), Output=(&'a isize, &'a isize)>,
14-
LL | dyn Foo(&isize) -> (&isize, &isize) >();
15-
LL |
1612
...
13+
LL |
14+
LL ~ let _: dyn Foo(&'a isize, &'a usize) -> &'a usize;
15+
|
1716

1817
error: aborting due to previous error
1918

0 commit comments

Comments
 (0)