Skip to content

Commit 7882e11

Browse files
Explicitly pass RUSTC_BOOTSTRAP to running wasmtime
This ensures that tests are permitted to use nightly features, which is currently required for them to run at all. Also ignore a test that relies on running with RUSTC_BOOTSTRAP *not* set.
1 parent c303e76 commit 7882e11

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/bootstrap/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,9 @@ impl Build {
13871387
if let Some(path) = finder.maybe_have("wasmtime") {
13881388
if let Ok(mut path) = path.into_os_string().into_string() {
13891389
path.push_str(" run -C cache=n --dir .");
1390+
// Make sure that tests have access to RUSTC_BOOTSTRAP. This (for example) is
1391+
// required for libtest to work on beta/stable channels.
1392+
path.push_str(" --env RUSTC_BOOTSTRAP");
13901393
return Some(path);
13911394
}
13921395
}

tests/ui/feature-gates/test-listing-format-json.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//@ check-run-results
66
//@ ignore-nightly
77
//@ unset-exec-env:RUSTC_BOOTSTRAP
8+
//@ ignore-wasi cannot unset RUSTC_BOOTSTRAP
89

910
#![cfg(test)]
1011
#[test]

0 commit comments

Comments
 (0)