Skip to content

Commit 5e6cde1

Browse files
committed
Remove --cap-lint warn from regex test
1 parent 7a864c8 commit 5e6cde1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

build_system/tests.rs

-10
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,13 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
153153
TestCase::custom("test.regex-shootout-regex-dna", &|runner| {
154154
REGEX.clean(&runner.dirs);
155155

156-
// newer aho_corasick versions throw a deprecation warning
157-
let lint_rust_flags = format!("{} --cap-lints warn", runner.target_compiler.rustflags);
158-
159156
let mut build_cmd = REGEX.build(&runner.target_compiler, &runner.dirs);
160157
build_cmd.arg("--example").arg("shootout-regex-dna");
161-
build_cmd.env("RUSTFLAGS", lint_rust_flags.clone());
162158
spawn_and_wait(build_cmd);
163159

164160
if runner.is_native {
165161
let mut run_cmd = REGEX.run(&runner.target_compiler, &runner.dirs);
166162
run_cmd.arg("--example").arg("shootout-regex-dna");
167-
run_cmd.env("RUSTFLAGS", lint_rust_flags);
168163

169164
let input = fs::read_to_string(
170165
REGEX.source_dir(&runner.dirs).join("examples").join("regexdna-input.txt"),
@@ -197,9 +192,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
197192
TestCase::custom("test.regex", &|runner| {
198193
REGEX.clean(&runner.dirs);
199194

200-
// newer aho_corasick versions throw a deprecation warning
201-
let lint_rust_flags = format!("{} --cap-lints warn", runner.target_compiler.rustflags);
202-
203195
if runner.is_native {
204196
let mut run_cmd = REGEX.test(&runner.target_compiler, &runner.dirs);
205197
run_cmd.args([
@@ -211,13 +203,11 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
211203
"-Zunstable-options",
212204
"-q",
213205
]);
214-
run_cmd.env("RUSTFLAGS", lint_rust_flags);
215206
spawn_and_wait(run_cmd);
216207
} else {
217208
eprintln!("Cross-Compiling: Not running tests");
218209
let mut build_cmd = REGEX.build(&runner.target_compiler, &runner.dirs);
219210
build_cmd.arg("--tests");
220-
build_cmd.env("RUSTFLAGS", lint_rust_flags.clone());
221211
spawn_and_wait(build_cmd);
222212
}
223213
}),

0 commit comments

Comments
 (0)