@@ -153,18 +153,13 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
153
153
TestCase :: custom ( "test.regex-shootout-regex-dna" , & |runner| {
154
154
REGEX . clean ( & runner. dirs ) ;
155
155
156
- // newer aho_corasick versions throw a deprecation warning
157
- let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
158
-
159
156
let mut build_cmd = REGEX . build ( & runner. target_compiler , & runner. dirs ) ;
160
157
build_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
161
- build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
162
158
spawn_and_wait ( build_cmd) ;
163
159
164
160
if runner. is_native {
165
161
let mut run_cmd = REGEX . run ( & runner. target_compiler , & runner. dirs ) ;
166
162
run_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
167
- run_cmd. env ( "RUSTFLAGS" , lint_rust_flags) ;
168
163
169
164
let input = fs:: read_to_string (
170
165
REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-input.txt" ) ,
@@ -197,9 +192,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
197
192
TestCase :: custom ( "test.regex" , & |runner| {
198
193
REGEX . clean ( & runner. dirs ) ;
199
194
200
- // newer aho_corasick versions throw a deprecation warning
201
- let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
202
-
203
195
if runner. is_native {
204
196
let mut run_cmd = REGEX . test ( & runner. target_compiler , & runner. dirs ) ;
205
197
run_cmd. args ( [
@@ -211,13 +203,11 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
211
203
"-Zunstable-options" ,
212
204
"-q" ,
213
205
] ) ;
214
- run_cmd. env ( "RUSTFLAGS" , lint_rust_flags) ;
215
206
spawn_and_wait ( run_cmd) ;
216
207
} else {
217
208
eprintln ! ( "Cross-Compiling: Not running tests" ) ;
218
209
let mut build_cmd = REGEX . build ( & runner. target_compiler , & runner. dirs ) ;
219
210
build_cmd. arg ( "--tests" ) ;
220
- build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
221
211
spawn_and_wait ( build_cmd) ;
222
212
}
223
213
} ) ,
0 commit comments