When running cargo test from the src/tools/cargo directory in the rustc 1.24.0 source tarball, the wasm32_final_outputs test fails. It seems that the test is finding the rustc Cargo.toml instead of the cargo Cargo.toml and it fails because the test directory is not part of the workspace. I filed an issue with Cargo (#4755) and was instructed to file the issue against rust instead.
test wasm32_final_outputs ... FAILED
test transitive_dependencies_not_available ... ok
test verbose_release_build_deps ... ok
test staticlib_rlib_and_bin ... ok
test lto_build ... ok
test same_metadata_different_directory ... ok
failures:
---- wasm32_final_outputs stdout ----
thread 'wasm32_final_outputs' panicked at 'Can't create workspace: ErrorMessage { msg: "current package believes it\'s in a workspace when it\'s not:\ncurrent: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/target/cit/t120/foo/Cargo.toml\nworkspace: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml\n\nthis may be fixable by adding `target/cit/t120/foo` to the `workspace.members` array of the manifest located at: /home/build/YPKG/root/cargo/build/rustc-1.24.0-src/src/Cargo.toml" }', src/libcore/result.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
wasm32_final_outputs
test result: FAILED. 127 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '--test build'
When running
cargo test
from the src/tools/cargo directory in the rustc 1.24.0 source tarball, thewasm32_final_outputs
test fails. It seems that the test is finding the rustc Cargo.toml instead of the cargo Cargo.toml and it fails because the test directory is not part of the workspace. I filed an issue with Cargo (#4755) and was instructed to file the issue against rust instead.