@@ -61,30 +61,30 @@ fn assert_ne() {
61
61
62
62
#[ test]
63
63
fn cfg ( ) {
64
- let _ = cfg ! ( pants) ;
65
- let _ = cfg ! ( pants, ) ;
66
- let _ = cfg ! ( pants = "pants" ) ;
67
- let _ = cfg ! ( pants = "pants" , ) ;
68
- let _ = cfg ! ( all( pants) ) ;
69
- let _ = cfg ! ( all( pants) , ) ;
70
- let _ = cfg ! ( all( pants, ) ) ;
71
- let _ = cfg ! ( all( pants, ) , ) ;
64
+ cfg ! ( pants) ;
65
+ cfg ! ( pants, ) ;
66
+ cfg ! ( pants = "pants" ) ;
67
+ cfg ! ( pants = "pants" , ) ;
68
+ cfg ! ( all( pants) ) ;
69
+ cfg ! ( all( pants) , ) ;
70
+ cfg ! ( all( pants, ) ) ;
71
+ cfg ! ( all( pants, ) , ) ;
72
72
}
73
73
74
74
#[ test]
75
75
fn column ( ) {
76
- let _ = column ! ( ) ;
76
+ column ! ( ) ;
77
77
}
78
78
79
79
// compile_error! is in a companion to this test in compile-fail
80
80
81
81
#[ test]
82
82
fn concat ( ) {
83
- let _ = concat ! ( ) ;
84
- let _ = concat ! ( "hello" ) ;
85
- let _ = concat ! ( "hello" , ) ;
86
- let _ = concat ! ( "hello" , " world" ) ;
87
- let _ = concat ! ( "hello" , " world" , ) ;
83
+ concat ! ( ) ;
84
+ concat ! ( "hello" ) ;
85
+ concat ! ( "hello" , ) ;
86
+ concat ! ( "hello" , " world" ) ;
87
+ concat ! ( "hello" , " world" , ) ;
88
88
}
89
89
90
90
#[ test]
@@ -130,10 +130,10 @@ fn debug_assert_ne() {
130
130
131
131
#[ test]
132
132
fn env ( ) {
133
- let _ = env ! ( "PATH" ) ;
134
- let _ = env ! ( "PATH" , ) ;
135
- let _ = env ! ( "PATH" , "not found" ) ;
136
- let _ = env ! ( "PATH" , "not found" , ) ;
133
+ env ! ( "PATH" ) ;
134
+ env ! ( "PATH" , ) ;
135
+ env ! ( "PATH" , "not found" ) ;
136
+ env ! ( "PATH" , "not found" , ) ;
137
137
}
138
138
139
139
#[ cfg( std) ]
@@ -157,58 +157,58 @@ fn eprintln() {
157
157
158
158
#[ test]
159
159
fn file ( ) {
160
- let _ = file ! ( ) ;
160
+ file ! ( ) ;
161
161
}
162
162
163
163
#[ cfg( std) ]
164
164
#[ test]
165
165
fn format ( ) {
166
- let _ = format ! ( "hello" ) ;
167
- let _ = format ! ( "hello" , ) ;
168
- let _ = format ! ( "hello {}" , "world" ) ;
169
- let _ = format ! ( "hello {}" , "world" , ) ;
166
+ format ! ( "hello" ) ;
167
+ format ! ( "hello" , ) ;
168
+ format ! ( "hello {}" , "world" ) ;
169
+ format ! ( "hello {}" , "world" , ) ;
170
170
}
171
171
172
172
#[ test]
173
173
fn format_args ( ) {
174
- let _ = format_args ! ( "hello" ) ;
175
- let _ = format_args ! ( "hello" , ) ;
176
- let _ = format_args ! ( "hello {}" , "world" ) ;
177
- let _ = format_args ! ( "hello {}" , "world" , ) ;
174
+ format_args ! ( "hello" ) ;
175
+ format_args ! ( "hello" , ) ;
176
+ format_args ! ( "hello {}" , "world" ) ;
177
+ format_args ! ( "hello {}" , "world" , ) ;
178
178
}
179
179
180
180
#[ test]
181
181
fn include ( ) {
182
- let _ = include ! ( "auxiliary/macro-comma-support.rs" ) ;
183
- let _ = include ! ( "auxiliary/macro-comma-support.rs" , ) ;
182
+ include ! ( "auxiliary/macro-comma-support.rs" ) ;
183
+ include ! ( "auxiliary/macro-comma-support.rs" , ) ;
184
184
}
185
185
186
186
#[ test]
187
187
fn include_bytes ( ) {
188
- let _ = include_bytes ! ( "auxiliary/macro-comma-support.rs" ) ;
189
- let _ = include_bytes ! ( "auxiliary/macro-comma-support.rs" , ) ;
188
+ include_bytes ! ( "auxiliary/macro-comma-support.rs" ) ;
189
+ include_bytes ! ( "auxiliary/macro-comma-support.rs" , ) ;
190
190
}
191
191
192
192
#[ test]
193
193
fn include_str ( ) {
194
- let _ = include_str ! ( "auxiliary/macro-comma-support.rs" ) ;
195
- let _ = include_str ! ( "auxiliary/macro-comma-support.rs" , ) ;
194
+ include_str ! ( "auxiliary/macro-comma-support.rs" ) ;
195
+ include_str ! ( "auxiliary/macro-comma-support.rs" , ) ;
196
196
}
197
197
198
198
#[ test]
199
199
fn line ( ) {
200
- let _ = line ! ( ) ;
200
+ line ! ( ) ;
201
201
}
202
202
203
203
#[ test]
204
204
fn module_path ( ) {
205
- let _ = module_path ! ( ) ;
205
+ module_path ! ( ) ;
206
206
}
207
207
208
208
#[ test]
209
209
fn option_env ( ) {
210
- let _ = option_env ! ( "PATH" ) ;
211
- let _ = option_env ! ( "PATH" , ) ;
210
+ option_env ! ( "PATH" ) ;
211
+ option_env ! ( "PATH" , ) ;
212
212
}
213
213
214
214
#[ test]
@@ -308,10 +308,10 @@ fn unreachable() {
308
308
#[ test]
309
309
fn vec ( ) {
310
310
let _: Vec < ( ) > = vec ! [ ] ;
311
- let _ = vec ! [ 0 ] ;
312
- let _ = vec ! [ 0 , ] ;
313
- let _ = vec ! [ 0 , 1 ] ;
314
- let _ = vec ! [ 0 , 1 , ] ;
311
+ vec ! [ 0 ] ;
312
+ vec ! [ 0 , ] ;
313
+ vec ! [ 0 , 1 ] ;
314
+ vec ! [ 0 , 1 , ] ;
315
315
}
316
316
317
317
// give a test body access to a fmt::Formatter, which seems
@@ -339,21 +339,21 @@ macro_rules! test_with_formatter {
339
339
test_with_formatter ! {
340
340
#[ test]
341
341
fn write( f: & mut fmt:: Formatter ) {
342
- let _ = write!( f, "hello" ) ;
343
- let _ = write!( f, "hello" , ) ;
344
- let _ = write!( f, "hello {}" , "world" ) ;
345
- let _ = write!( f, "hello {}" , "world" , ) ;
342
+ write!( f, "hello" ) ;
343
+ write!( f, "hello" , ) ;
344
+ write!( f, "hello {}" , "world" ) ;
345
+ write!( f, "hello {}" , "world" , ) ;
346
346
}
347
347
}
348
348
349
349
test_with_formatter ! {
350
350
#[ test]
351
351
fn writeln( f: & mut fmt:: Formatter ) {
352
- let _ = writeln!( f) ;
353
- let _ = writeln!( f, ) ;
354
- let _ = writeln!( f, "hello" ) ;
355
- let _ = writeln!( f, "hello" , ) ;
356
- let _ = writeln!( f, "hello {}" , "world" ) ;
357
- let _ = writeln!( f, "hello {}" , "world" , ) ;
352
+ writeln!( f) ;
353
+ writeln!( f, ) ;
354
+ writeln!( f, "hello" ) ;
355
+ writeln!( f, "hello" , ) ;
356
+ writeln!( f, "hello {}" , "world" ) ;
357
+ writeln!( f, "hello {}" , "world" , ) ;
358
358
}
359
359
}
0 commit comments