Skip to content

Commit 8b81f54

Browse files
committed
Fix running the rustc test suite
1 parent d05784f commit 8b81f54

File tree

4 files changed

+63
-71
lines changed

4 files changed

+63
-71
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ rustc_miri = { path = "src/librustc_mir" }
3434
compiletest_rs = "0.2.6"
3535

3636
[workspace]
37-
exclude = ["xargo", "cargo-miri-test"]
37+
exclude = ["xargo", "cargo-miri-test", "rustc_tests"]

rustc_tests/Cargo.lock

Lines changed: 59 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustc_tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ version = "0.1.0"
44
authors = ["Oliver Schneider <[email protected]>"]
55

66
[dependencies]
7-
miri = { path = "../miri" }
7+
miri = { path = ".." }

rustc_tests/src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,7 @@ fn main() {
149149
args.push(Path::new(&std::env::var("HOME").unwrap()).join(".xargo").join("HOST").display().to_string());
150150
}
151151

152-
// we run the optimization passes inside miri
153-
// if we ran them twice we'd get funny failures due to borrowck ElaborateDrops only working on
154-
// unoptimized MIR
155-
// FIXME: add an after-mir-passes hook to rustc driver
156-
args.push("-Zmir-opt-level=0".to_owned());
152+
args.push("-Zmir-opt-level=3".to_owned());
157153
// for auxilary builds in unit tests
158154
args.push("-Zalways-encode-mir".to_owned());
159155

@@ -218,7 +214,7 @@ fn main() {
218214
}
219215
}
220216
}
221-
let stderr = std::io::stderr();:{MetaItemKind, NestedMetaItemKind, self};
217+
let stderr = std::io::stderr();
222218
let mut stderr = stderr.lock();
223219
writeln!(stderr, "{} success, {} no mir, {} crate not found, {} failed, \
224220
{} C fn, {} ABI, {} unsupported, {} intrinsic",

0 commit comments

Comments
 (0)