Skip to content

Commit a5e6ccc

Browse files
committed
bless tests
1 parent abcdef0 commit a5e6ccc

3 files changed

Lines changed: 10 additions & 22 deletions

File tree

tests/ui/or-patterns/missing-bindings.stderr

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ LL | let (A(A(a, b) | B(c), d) | B(e)) = Y;
129129
| |
130130
| pattern doesn't bind `e`
131131
|
132-
help: you might have meant to use the similarly named previously used binding `c`
132+
help: you might have meant to use the similarly named previously used binding `a`
133133
|
134134
LL - let (A(A(a, b) | B(c), d) | B(e)) = Y;
135-
LL + let (A(A(a, b) | B(c), d) | B(c)) = Y;
135+
LL + let (A(A(a, b) | B(c), d) | B(a)) = Y;
136136
|
137137

138138
error[E0408]: variable `a` is not bound in all patterns
@@ -262,12 +262,6 @@ LL | B(b),
262262
...
263263
LL | V3(c),
264264
| ^^^^^ pattern doesn't bind `b`
265-
|
266-
help: you might have meant to use the similarly named previously used binding `c`
267-
|
268-
LL - B(b),
269-
LL + B(c),
270-
|
271265

272266
error[E0408]: variable `c` is not bound in all patterns
273267
--> $DIR/missing-bindings.rs:59:13

tests/ui/span/issue-39698.stderr

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}
88
| | variable not in all patterns
99
| pattern doesn't bind `b`
1010
|
11-
help: you might have meant to use the similarly named previously used binding `c`
11+
help: you might have meant to use the similarly named previously used binding `a`
1212
|
1313
LL - T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
14-
LL + T::T1(a, d) | T::T2(d, c) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
14+
LL + T::T1(a, d) | T::T2(d, a) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
1515
|
1616

1717
error[E0408]: variable `c` is not bound in all patterns
@@ -24,10 +24,10 @@ LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}
2424
| | pattern doesn't bind `c`
2525
| pattern doesn't bind `c`
2626
|
27-
help: you might have meant to use the similarly named previously used binding `d`
27+
help: you might have meant to use the similarly named previously used binding `a`
2828
|
2929
LL - T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
30-
LL + T::T1(a, d) | T::T2(d, b) | T::T3(d) | T::T4(a) => { println!("{:?}", a); }
30+
LL + T::T1(a, d) | T::T2(d, b) | T::T3(a) | T::T4(a) => { println!("{:?}", a); }
3131
|
3232

3333
error[E0408]: variable `a` is not bound in all patterns
@@ -40,10 +40,10 @@ LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}
4040
| | pattern doesn't bind `a`
4141
| variable not in all patterns
4242
|
43-
help: you might have meant to use the similarly named previously used binding `c`
43+
help: you might have meant to use the similarly named previously used binding `b`
4444
|
4545
LL - T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
46-
LL + T::T1(c, d) | T::T2(d, b) | T::T3(c) | T::T4(c) => { println!("{:?}", a); }
46+
LL + T::T1(b, d) | T::T2(d, b) | T::T3(c) | T::T4(b) => { println!("{:?}", a); }
4747
|
4848

4949
error[E0408]: variable `d` is not bound in all patterns
@@ -55,12 +55,6 @@ LL | T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}
5555
| | | pattern doesn't bind `d`
5656
| | variable not in all patterns
5757
| variable not in all patterns
58-
|
59-
help: you might have meant to use the similarly named previously used binding `c`
60-
|
61-
LL - T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
62-
LL + T::T1(a, c) | T::T2(c, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
63-
|
6458

6559
error[E0381]: used binding `a` is possibly-uninitialized
6660
--> $DIR/issue-39698.rs:10:79

tests/ui/traits/item-privacy.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ LL | pub trait C: A + B {
150150
| - this trait is not dyn compatible...
151151
LL | const C: u8 = 0;
152152
| ^ ...because it contains associated const `C`
153-
= help: consider moving `C` to another trait
154153
= help: consider moving `A` to another trait
155154
= help: consider moving `B` to another trait
155+
= help: consider moving `C` to another trait
156156
= help: only type `S` implements `assoc_const::C`; consider using it directly instead.
157157

158158
error[E0038]: the trait `assoc_const::C` is not dyn compatible
@@ -175,9 +175,9 @@ LL | pub trait C: A + B {
175175
| - this trait is not dyn compatible...
176176
LL | const C: u8 = 0;
177177
| ^ ...because it contains associated const `C`
178-
= help: consider moving `C` to another trait
179178
= help: consider moving `A` to another trait
180179
= help: consider moving `B` to another trait
180+
= help: consider moving `C` to another trait
181181
= help: only type `S` implements `assoc_const::C`; consider using it directly instead.
182182

183183
error[E0223]: ambiguous associated type

0 commit comments

Comments
 (0)