diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-06-11 12:59:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 12:59:27 +0200 |
| commit | b7b5045364ab8835ca7642feb5cb931fc77d7f65 (patch) | |
| tree | ee086f527f79720d59c05ed36781932db360a016 /compiler/rustc_session | |
| parent | 11d8ae2c7151b0b83f9c39594fdb47d8fa4d6ef2 (diff) | |
| parent | 410e2832e4037c786fbf037aae7b0907336f8809 (diff) | |
| download | rust-b7b5045364ab8835ca7642feb5cb931fc77d7f65.tar.gz rust-b7b5045364ab8835ca7642feb5cb931fc77d7f65.zip | |
Rollup merge of #97789 - ferrocene:pa-fix-issue-71363-test, r=cjgillot
Fix #71363's 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 PR adds a new `-Z` flag to disable finding the corresponding local path of a remapped path.
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index d89c61c2e44..007fa87189f 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1541,6 +1541,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], |
