@@ -61,30 +61,30 @@ fn assert_ne() {
6161
6262#[ test]
6363fn 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, ) , ) ;
7272}
7373
7474#[ test]
7575fn column ( ) {
76- let _ = column ! ( ) ;
76+ column ! ( ) ;
7777}
7878
7979// compile_error! is in a companion to this test in compile-fail
8080
8181#[ test]
8282fn 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" , ) ;
8888}
8989
9090#[ test]
@@ -130,10 +130,10 @@ fn debug_assert_ne() {
130130
131131#[ test]
132132fn 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" , ) ;
137137}
138138
139139#[ cfg( std) ]
@@ -157,58 +157,58 @@ fn eprintln() {
157157
158158#[ test]
159159fn file ( ) {
160- let _ = file ! ( ) ;
160+ file ! ( ) ;
161161}
162162
163163#[ cfg( std) ]
164164#[ test]
165165fn 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" , ) ;
170170}
171171
172172#[ test]
173173fn 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" , ) ;
178178}
179179
180180#[ test]
181181fn 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" , ) ;
184184}
185185
186186#[ test]
187187fn 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" , ) ;
190190}
191191
192192#[ test]
193193fn 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" , ) ;
196196}
197197
198198#[ test]
199199fn line ( ) {
200- let _ = line ! ( ) ;
200+ line ! ( ) ;
201201}
202202
203203#[ test]
204204fn module_path ( ) {
205- let _ = module_path ! ( ) ;
205+ module_path ! ( ) ;
206206}
207207
208208#[ test]
209209fn option_env ( ) {
210- let _ = option_env ! ( "PATH" ) ;
211- let _ = option_env ! ( "PATH" , ) ;
210+ option_env ! ( "PATH" ) ;
211+ option_env ! ( "PATH" , ) ;
212212}
213213
214214#[ test]
@@ -308,10 +308,10 @@ fn unreachable() {
308308#[ test]
309309fn vec ( ) {
310310 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 , ] ;
315315}
316316
317317// give a test body access to a fmt::Formatter, which seems
@@ -339,21 +339,21 @@ macro_rules! test_with_formatter {
339339test_with_formatter ! {
340340 #[ test]
341341 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" , ) ;
346346 }
347347}
348348
349349test_with_formatter ! {
350350 #[ test]
351351 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" , ) ;
358358 }
359359}
0 commit comments