diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-02-26 14:27:45 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-02-26 14:34:36 +0000 |
| commit | 5e6cde150e4b09d97a204f697e65e9d53e0af96a (patch) | |
| tree | 8eead11bd1da71ac34f0e76e55c0960d59fd8b0a | |
| parent | 7a864c8ef54ca810884b0a27d108a350c3e6b4d7 (diff) | |
| download | rust-5e6cde150e4b09d97a204f697e65e9d53e0af96a.tar.gz rust-5e6cde150e4b09d97a204f697e65e9d53e0af96a.zip | |
Remove --cap-lint warn from regex test
| -rw-r--r-- | build_system/tests.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/build_system/tests.rs b/build_system/tests.rs index 5ce1786e256..3738b5319b0 100644 --- a/build_system/tests.rs +++ b/build_system/tests.rs @@ -153,18 +153,13 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[ TestCase::custom("test.regex-shootout-regex-dna", &|runner| { REGEX.clean(&runner.dirs); - // newer aho_corasick versions throw a deprecation warning - let lint_rust_flags = format!("{} --cap-lints warn", runner.target_compiler.rustflags); - let mut build_cmd = REGEX.build(&runner.target_compiler, &runner.dirs); build_cmd.arg("--example").arg("shootout-regex-dna"); - build_cmd.env("RUSTFLAGS", lint_rust_flags.clone()); spawn_and_wait(build_cmd); if runner.is_native { let mut run_cmd = REGEX.run(&runner.target_compiler, &runner.dirs); run_cmd.arg("--example").arg("shootout-regex-dna"); - run_cmd.env("RUSTFLAGS", lint_rust_flags); let input = fs::read_to_string( REGEX.source_dir(&runner.dirs).join("examples").join("regexdna-input.txt"), @@ -197,9 +192,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[ TestCase::custom("test.regex", &|runner| { REGEX.clean(&runner.dirs); - // newer aho_corasick versions throw a deprecation warning - let lint_rust_flags = format!("{} --cap-lints warn", runner.target_compiler.rustflags); - if runner.is_native { let mut run_cmd = REGEX.test(&runner.target_compiler, &runner.dirs); run_cmd.args([ @@ -211,13 +203,11 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[ "-Zunstable-options", "-q", ]); - run_cmd.env("RUSTFLAGS", lint_rust_flags); spawn_and_wait(run_cmd); } else { eprintln!("Cross-Compiling: Not running tests"); let mut build_cmd = REGEX.build(&runner.target_compiler, &runner.dirs); build_cmd.arg("--tests"); - build_cmd.env("RUSTFLAGS", lint_rust_flags.clone()); spawn_and_wait(build_cmd); } }), |
