about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2022-06-06 11:54:01 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2022-06-06 11:54:01 +0200
commit410e2832e4037c786fbf037aae7b0907336f8809 (patch)
tree331d6ea4b0fc9dfe58f905a012318156a4544c6b /compiler/rustc_interface
parent6609c6734de4df43e24d7672f8ae8786ecc8047e (diff)
downloadrust-410e2832e4037c786fbf037aae7b0907336f8809.tar.gz
rust-410e2832e4037c786fbf037aae7b0907336f8809.zip
fix #71363 test by adding `-Z translate-remapped-path-to-local-path=no`
The test relies on library/std/src/error.rs not corresponding to a local
path, but remapping might still find the related local file of a
remapped path. To fix the test, this adds a new -Z flag to disable
finding the corresponding local path of a remapped path.
Diffstat (limited to 'compiler/rustc_interface')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index a178cca6d10..5517c87f1c6 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -790,6 +790,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(thinlto, Some(true));
     tracked!(thir_unsafeck, true);
     tracked!(tls_model, Some(TlsModel::GeneralDynamic));
+    tracked!(translate_remapped_path_to_local_path, false);
     tracked!(trap_unreachable, Some(false));
     tracked!(treat_err_as_bug, NonZeroUsize::new(1));
     tracked!(tune_cpu, Some(String::from("abc")));