Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a9baf34

Browse files
committed
remove obsolete test comments
1 parent 60c0591 commit a9baf34

6 files changed

+21
-29
lines changed

tests/ui/default_numeric_fallback_f64.fixed

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ mod nested_local {
7373

7474
mod function_def {
7575
fn ret_f64() -> f64 {
76-
// Even though the output type is specified,
77-
// this unsuffixed literal is linted to reduce heuristics and keep codebase simple.
7876
1.
7977
}
8078

tests/ui/default_numeric_fallback_f64.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ mod nested_local {
7373

7474
mod function_def {
7575
fn ret_f64() -> f64 {
76-
// Even though the output type is specified,
77-
// this unsuffixed literal is linted to reduce heuristics and keep codebase simple.
7876
1.
7977
}
8078

tests/ui/default_numeric_fallback_f64.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,55 +86,55 @@ LL | let y = 1.;
8686
| ^^ help: consider adding suffix: `1.0_f64`
8787

8888
error: default numeric fallback might occur
89-
--> $DIR/default_numeric_fallback_f64.rs:84:27
89+
--> $DIR/default_numeric_fallback_f64.rs:82:27
9090
|
9191
LL | let f = || -> _ { 1. };
9292
| ^^ help: consider adding suffix: `1.0_f64`
9393

9494
error: default numeric fallback might occur
95-
--> $DIR/default_numeric_fallback_f64.rs:88:29
95+
--> $DIR/default_numeric_fallback_f64.rs:86:29
9696
|
9797
LL | let f = || -> f64 { 1. };
9898
| ^^ help: consider adding suffix: `1.0_f64`
9999

100100
error: default numeric fallback might occur
101-
--> $DIR/default_numeric_fallback_f64.rs:102:21
101+
--> $DIR/default_numeric_fallback_f64.rs:100:21
102102
|
103103
LL | generic_arg(1.);
104104
| ^^ help: consider adding suffix: `1.0_f64`
105105

106106
error: default numeric fallback might occur
107-
--> $DIR/default_numeric_fallback_f64.rs:105:32
107+
--> $DIR/default_numeric_fallback_f64.rs:103:32
108108
|
109109
LL | let x: _ = generic_arg(1.);
110110
| ^^ help: consider adding suffix: `1.0_f64`
111111

112112
error: default numeric fallback might occur
113-
--> $DIR/default_numeric_fallback_f64.rs:123:28
113+
--> $DIR/default_numeric_fallback_f64.rs:121:28
114114
|
115115
LL | GenericStruct { x: 1. };
116116
| ^^ help: consider adding suffix: `1.0_f64`
117117

118118
error: default numeric fallback might occur
119-
--> $DIR/default_numeric_fallback_f64.rs:126:36
119+
--> $DIR/default_numeric_fallback_f64.rs:124:36
120120
|
121121
LL | let _ = GenericStruct { x: 1. };
122122
| ^^ help: consider adding suffix: `1.0_f64`
123123

124124
error: default numeric fallback might occur
125-
--> $DIR/default_numeric_fallback_f64.rs:144:24
125+
--> $DIR/default_numeric_fallback_f64.rs:142:24
126126
|
127127
LL | GenericEnum::X(1.);
128128
| ^^ help: consider adding suffix: `1.0_f64`
129129

130130
error: default numeric fallback might occur
131-
--> $DIR/default_numeric_fallback_f64.rs:164:23
131+
--> $DIR/default_numeric_fallback_f64.rs:162:23
132132
|
133133
LL | s.generic_arg(1.);
134134
| ^^ help: consider adding suffix: `1.0_f64`
135135

136136
error: default numeric fallback might occur
137-
--> $DIR/default_numeric_fallback_f64.rs:174:25
137+
--> $DIR/default_numeric_fallback_f64.rs:172:25
138138
|
139139
LL | inline!(let x = 22.;);
140140
| ^^^ help: consider adding suffix: `22.0_f64`

tests/ui/default_numeric_fallback_i32.fixed

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ mod nested_local {
7474

7575
mod function_def {
7676
fn ret_i32() -> i32 {
77-
// Even though the output type is specified,
78-
// this unsuffixed literal is linted to reduce heuristics and keep codebase simple.
7977
1
8078
}
8179

tests/ui/default_numeric_fallback_i32.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ mod nested_local {
7474

7575
mod function_def {
7676
fn ret_i32() -> i32 {
77-
// Even though the output type is specified,
78-
// this unsuffixed literal is linted to reduce heuristics and keep codebase simple.
7977
1
8078
}
8179

tests/ui/default_numeric_fallback_i32.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,75 +98,75 @@ LL | let y = 1;
9898
| ^ help: consider adding suffix: `1_i32`
9999

100100
error: default numeric fallback might occur
101-
--> $DIR/default_numeric_fallback_i32.rs:85:27
101+
--> $DIR/default_numeric_fallback_i32.rs:83:27
102102
|
103103
LL | let f = || -> _ { 1 };
104104
| ^ help: consider adding suffix: `1_i32`
105105

106106
error: default numeric fallback might occur
107-
--> $DIR/default_numeric_fallback_i32.rs:89:29
107+
--> $DIR/default_numeric_fallback_i32.rs:87:29
108108
|
109109
LL | let f = || -> i32 { 1 };
110110
| ^ help: consider adding suffix: `1_i32`
111111

112112
error: default numeric fallback might occur
113-
--> $DIR/default_numeric_fallback_i32.rs:103:21
113+
--> $DIR/default_numeric_fallback_i32.rs:101:21
114114
|
115115
LL | generic_arg(1);
116116
| ^ help: consider adding suffix: `1_i32`
117117

118118
error: default numeric fallback might occur
119-
--> $DIR/default_numeric_fallback_i32.rs:106:32
119+
--> $DIR/default_numeric_fallback_i32.rs:104:32
120120
|
121121
LL | let x: _ = generic_arg(1);
122122
| ^ help: consider adding suffix: `1_i32`
123123

124124
error: default numeric fallback might occur
125-
--> $DIR/default_numeric_fallback_i32.rs:124:28
125+
--> $DIR/default_numeric_fallback_i32.rs:122:28
126126
|
127127
LL | GenericStruct { x: 1 };
128128
| ^ help: consider adding suffix: `1_i32`
129129

130130
error: default numeric fallback might occur
131-
--> $DIR/default_numeric_fallback_i32.rs:127:36
131+
--> $DIR/default_numeric_fallback_i32.rs:125:36
132132
|
133133
LL | let _ = GenericStruct { x: 1 };
134134
| ^ help: consider adding suffix: `1_i32`
135135

136136
error: default numeric fallback might occur
137-
--> $DIR/default_numeric_fallback_i32.rs:145:24
137+
--> $DIR/default_numeric_fallback_i32.rs:143:24
138138
|
139139
LL | GenericEnum::X(1);
140140
| ^ help: consider adding suffix: `1_i32`
141141

142142
error: default numeric fallback might occur
143-
--> $DIR/default_numeric_fallback_i32.rs:165:23
143+
--> $DIR/default_numeric_fallback_i32.rs:163:23
144144
|
145145
LL | s.generic_arg(1);
146146
| ^ help: consider adding suffix: `1_i32`
147147

148148
error: default numeric fallback might occur
149-
--> $DIR/default_numeric_fallback_i32.rs:175:25
149+
--> $DIR/default_numeric_fallback_i32.rs:173:25
150150
|
151151
LL | inline!(let x = 22;);
152152
| ^^ help: consider adding suffix: `22_i32`
153153
|
154154
= note: this error originates in the macro `__inline_mac_fn_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
155155

156156
error: default numeric fallback might occur
157-
--> $DIR/default_numeric_fallback_i32.rs:217:29
157+
--> $DIR/default_numeric_fallback_i32.rs:215:29
158158
|
159159
LL | let data_i32 = vec![1, 2, 3];
160160
| ^ help: consider adding suffix: `1_i32`
161161

162162
error: default numeric fallback might occur
163-
--> $DIR/default_numeric_fallback_i32.rs:217:32
163+
--> $DIR/default_numeric_fallback_i32.rs:215:32
164164
|
165165
LL | let data_i32 = vec![1, 2, 3];
166166
| ^ help: consider adding suffix: `2_i32`
167167

168168
error: default numeric fallback might occur
169-
--> $DIR/default_numeric_fallback_i32.rs:217:35
169+
--> $DIR/default_numeric_fallback_i32.rs:215:35
170170
|
171171
LL | let data_i32 = vec![1, 2, 3];
172172
| ^ help: consider adding suffix: `3_i32`

0 commit comments

Comments
 (0)