Skip to content

Commit 943e0b4

Browse files
committed
Update tests
1 parent 7910ae6 commit 943e0b4

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/test/ui/lint/lint-impl-fn.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ LL | #[deny(while_true)]
1111
| ^^^^^^^^^^
1212

1313
error: denote infinite loops with `loop { ... }`
14-
--> $DIR/lint-impl-fn.rs:18:25
14+
--> $DIR/lint-impl-fn.rs:27:5
1515
|
16-
LL | fn foo(&self) { while true {} }
17-
| ^^^^^^^^^^ help: use `loop`
16+
LL | while true {}
17+
| ^^^^^^^^^^ help: use `loop`
1818
|
1919
note: lint level defined here
20-
--> $DIR/lint-impl-fn.rs:13:8
20+
--> $DIR/lint-impl-fn.rs:25:8
2121
|
2222
LL | #[deny(while_true)]
2323
| ^^^^^^^^^^
2424

2525
error: denote infinite loops with `loop { ... }`
26-
--> $DIR/lint-impl-fn.rs:27:5
26+
--> $DIR/lint-impl-fn.rs:18:25
2727
|
28-
LL | while true {}
29-
| ^^^^^^^^^^ help: use `loop`
28+
LL | fn foo(&self) { while true {} }
29+
| ^^^^^^^^^^ help: use `loop`
3030
|
3131
note: lint level defined here
32-
--> $DIR/lint-impl-fn.rs:25:8
32+
--> $DIR/lint-impl-fn.rs:13:8
3333
|
3434
LL | #[deny(while_true)]
3535
| ^^^^^^^^^^

src/test/ui/lint/suggestions.stderr

+18-18
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ LL | pub fn defiant<T>(_t: T) {}
6565
|
6666
= note: #[warn(no_mangle_generic_items)] on by default
6767

68+
warning: denote infinite loops with `loop { ... }`
69+
--> $DIR/suggestions.rs:46:5
70+
|
71+
LL | while true {
72+
| ^^^^^^^^^^ help: use `loop`
73+
|
74+
= note: #[warn(while_true)] on by default
75+
76+
warning: the `warp_factor:` in this pattern is redundant
77+
--> $DIR/suggestions.rs:61:23
78+
|
79+
LL | Equinox { warp_factor: warp_factor } => {}
80+
| ------------^^^^^^^^^^^^
81+
| |
82+
| help: remove this
83+
|
84+
= note: #[warn(non_shorthand_field_patterns)] on by default
85+
6886
error: const items should never be #[no_mangle]
6987
--> $DIR/suggestions.rs:22:18
7088
|
@@ -97,23 +115,5 @@ LL | #[no_mangle] pub(crate) fn crossfield<T>() {}
97115
| |
98116
| help: remove this attribute
99117

100-
warning: denote infinite loops with `loop { ... }`
101-
--> $DIR/suggestions.rs:46:5
102-
|
103-
LL | while true {
104-
| ^^^^^^^^^^ help: use `loop`
105-
|
106-
= note: #[warn(while_true)] on by default
107-
108-
warning: the `warp_factor:` in this pattern is redundant
109-
--> $DIR/suggestions.rs:61:23
110-
|
111-
LL | Equinox { warp_factor: warp_factor } => {}
112-
| ------------^^^^^^^^^^^^
113-
| |
114-
| help: remove this
115-
|
116-
= note: #[warn(non_shorthand_field_patterns)] on by default
117-
118118
error: aborting due to 3 previous errors
119119

0 commit comments

Comments
 (0)