diff options
| author | Eric Huss <eric@huss.org> | 2021-11-03 20:00:00 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2021-11-03 20:00:00 -0700 |
| commit | 754455e4f25bb55dfafc6422f340d6032d3ac0b7 (patch) | |
| tree | 2634858318a56c6d02a364362aacda60aead74a1 /src/tools/compiletest | |
| parent | 4ff90232a0c0c6adb9d2052da2206b26c3c723e4 (diff) | |
| download | rust-754455e4f25bb55dfafc6422f340d6032d3ac0b7.tar.gz rust-754455e4f25bb55dfafc6422f340d6032d3ac0b7.zip | |
Clean up some `-Z unstable-options` in tests.
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/header.rs | 3 | ||||
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index 98d1ee19f69..5fcaa452ca3 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -242,9 +242,6 @@ impl TestProps { if let Some(edition) = config.parse_edition(ln) { self.compile_flags.push(format!("--edition={}", edition)); has_edition = true; - if edition == "2021" { - self.compile_flags.push("-Zunstable-options".to_string()); - } } config.parse_and_update_revisions(ln, &mut self.revisions); diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 4470272a9f8..3c85b9076dd 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1607,9 +1607,6 @@ impl<'test> TestCx<'test> { get_lib_name(&aux_path.trim_end_matches(".rs").replace('-', "_"), is_dylib); rustc.arg("--extern").arg(format!("{}={}/{}", aux_name, aux_dir.display(), lib_name)); } - if !self.props.aux_crates.is_empty() { - rustc.arg("-Zunstable-options"); - } aux_dir } |
