Improve standard library source remapping
This commit is contained in:
parent
4d0b725e06
commit
a03e769410
2 changed files with 3 additions and 14 deletions
|
|
@ -235,11 +235,7 @@ fn build_clif_sysroot_for_triple(
|
|||
|
||||
if let Some(prefix) = env::var_os("CG_CLIF_STDLIB_REMAP_PATH_PREFIX") {
|
||||
rustflags.push("--remap-path-prefix".to_owned());
|
||||
rustflags.push(format!(
|
||||
"{}={}",
|
||||
STDLIB_SRC.to_path(dirs).to_str().unwrap(),
|
||||
prefix.to_str().unwrap()
|
||||
));
|
||||
rustflags.push(format!("library/={}/library", prefix.to_str().unwrap()));
|
||||
}
|
||||
compiler.rustflags.extend(rustflags);
|
||||
let mut build_cmd = STANDARD_LIBRARY.build(&compiler, dirs);
|
||||
|
|
|
|||
|
|
@ -152,15 +152,8 @@ rm tests/ui/errors/remap-path-prefix-sysroot.rs # different sysroot source path
|
|||
rm -r tests/run-make/export/extern-opt # something about rustc version mismatches
|
||||
rm -r tests/run-make/export # same
|
||||
rm -r tests/ui/compiletest-self-test/compile-flags-incremental.rs # needs compiletest compiled with panic=unwind
|
||||
rm tests/ui/async-await/in-trait/dont-project-to-specializable-projection.rs # something going wrong with stdlib source remapping
|
||||
rm tests/ui/consts/miri_unleashed/drop.rs # same
|
||||
rm tests/ui/error-emitter/multiline-removal-suggestion.rs # same
|
||||
rm tests/ui/lint/lint-const-item-mutation.rs # same
|
||||
rm tests/ui/lint/use-redundant/use-redundant-issue-71450.rs # same
|
||||
rm tests/ui/lint/use-redundant/use-redundant-prelude-rust-2021.rs # same
|
||||
rm tests/ui/specialization/const_trait_impl.rs # same
|
||||
rm tests/ui/thir-print/offset_of.rs # same
|
||||
rm tests/ui/traits/const-traits/const_closure-const_trait_impl-ice-113381.rs # same
|
||||
rm -r tests/ui/extern/extern-types-field-offset.rs # expects /rustc/<hash> rather than /rustc/FAKE_PREFIX
|
||||
rm -r tests/ui/process/println-with-broken-pipe.rs # same
|
||||
|
||||
# genuine bugs
|
||||
# ============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue