@@ -186,7 +186,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
186
186
187
187
let mut build_cmd = runner. cargo_command ( [ "build" , "--example" , "shootout-regex-dna" , "--target" , & runner. target_triple ] ) ;
188
188
build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
189
-
190
189
spawn_and_wait ( build_cmd) ;
191
190
192
191
if runner. host_triple == runner. target_triple {
@@ -233,11 +232,18 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
233
232
runner. in_dir ( [ "regex" ] , |runner| {
234
233
runner. run_cargo ( [ "clean" ] ) ;
235
234
235
+ // newer aho_corasick versions throw a deprecation warning
236
+ let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. rust_flags) ;
237
+
236
238
if runner. host_triple == runner. target_triple {
237
- runner. run_cargo ( [ "test" , "--tests" , "--" , "--exclude-should-panic" , "--test-threads" , "1" , "-Zunstable-options" , "-q" ] ) ;
239
+ let mut run_cmd = runner. cargo_command ( [ "test" , "--tests" , "--" , "--exclude-should-panic" , "--test-threads" , "1" , "-Zunstable-options" , "-q" ] ) ;
240
+ run_cmd. env ( "RUSTFLAGS" , lint_rust_flags) ;
241
+ spawn_and_wait ( run_cmd) ;
238
242
} else {
239
243
eprintln ! ( "Cross-Compiling: Not running tests" ) ;
240
- runner. run_cargo ( [ "build" , "--tests" , "--target" , & runner. target_triple ] ) ;
244
+ let mut build_cmd = runner. cargo_command ( [ "build" , "--tests" , "--target" , & runner. target_triple ] ) ;
245
+ build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
246
+ spawn_and_wait ( build_cmd) ;
241
247
}
242
248
} ) ;
243
249
} ) ,
0 commit comments