rust/tests/ui/track-diagnostics
jyn 157d936c31 Stop normalizing so many different prefixes
Previously, we would normalize *all* of
- the absolute path to the repository checkout
- the /rustc/$sha for stage1 (if `remap-debuginfo` was enabled)
- the /rustc/$sha for download-rustc
- the sysroot for download-rustc

Now, we consistently only normalize /rustc/FAKE_PREFIX. Not only is this
much simpler, but it also avoids ongoing maintenance for download-rustc
and makes it much less likely that tests break by accident.

- Change `tests/ui/track-diagnostics/track6.rs` to use a relative path
  instead of an absolute one. I am not actually sure why `track_caller`
works here, but it does seem to work 🤷

- Pass `-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX` to all
  suites, not just UI. In particular, mir-opt tests emit /rustc/ paths
  in their output.
2023-05-26 12:16:30 -05:00
..
track2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track4.stderr rustc_parse: migrate more to diagnostic structs 2023-02-01 21:50:34 +01:00
track5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track5.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track6.rs Apply simulate-remapped-rust-src-base even remap-debuginfo is set in config.toml 2023-04-22 14:24:32 -05:00
track6.stderr Stop normalizing so many different prefixes 2023-05-26 12:16:30 -05:00
track.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00