summary refs log tree commit diff
path: root/compiler/rustc_session/src
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_session/src
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_session/src')
-rw-r--r--compiler/rustc_session/src/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index ae32fd2dee9..fbcda57e0f0 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -1546,6 +1546,8 @@ options! {
         "choose the TLS model to use (`rustc --print tls-models` for details)"),
     trace_macros: bool = (false, parse_bool, [UNTRACKED],
         "for every macro invocation, print its name and arguments (default: no)"),
+    translate_remapped_path_to_local_path: bool = (true, parse_bool, [TRACKED],
+        "translate remapped paths into local paths when possible (default: yes)"),
     trap_unreachable: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)"),
     treat_err_as_bug: Option<NonZeroUsize> = (None, parse_treat_err_as_bug, [TRACKED],