normalize *.long-type.txt paths for compare-mode tests by lqd · Pull Request #136310 · rust-lang/rust (original) (raw)

When using a compare mode, the name of the test + compare-mode is embedded in some of rustc's output, like the location where a long type bla.long-type(-some-hash)?.txt is written to. That generally makes these tests fail under all compare-modes.

This PR fixes this by normalizing the compare-mode suffix away in the stderr output. We can also see some remnants of the long-removed nll compare mode being normalized away ^^.

I did this to fix some failures with --compare-mode next-solver (but it also fixes them with e.g. --compare-mode polonius of course):

(There was also one that triggered slowness in the new solver while triggering the long type failure, I'll mention this on zulip. )