-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heuristically undo path prefix mappings. #106853
Conversation
Because the compiler produces better diagnostics if it can find the source of (potentially remapped) dependencies.
Oh, I just remembered that I should probably run this through the Windows CI to ensure there are no Windows specific path handling issues. Feel free to review already but please hold off on approving while I temporarily modify the CI config. Also: r? compiler |
Windows CI looks good, I've removed the CI changes again. |
How will this affect rust/src/tools/compiletest/src/runtest.rs Lines 1933 to 1938 in d12412c
rustc-src rustup component
|
I don't believe the flags will be affected at all. AFAICT neither flag affects the contents of the Both flags seem to operate on a lower level (fiddling with the file paths when decoding metadata). |
Thanks, that makes sense @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4817259): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
Is there any straightforward way to see where the slowdown is coming from? I clicked through some of the pages in the report and the self profiles weren't really helpful. Is this significant enough to warrant some kind of follow up? |
I could certainly see going either way on whether this is significant enough to look into - definitely not worth a huge investigation but might be worth some small peek. Looking at the callgrind-diff output for the primary regression, I see |
Because the compiler produces better diagnostics if it can find the source of (potentially remapped) dependencies.
The new test fails without the other changes in this PR. Let me know if you have better suggestions for the test directory. I moved the existing remapping test to be in the same location as the new one.
Some more context: I'm exploring running UI tests with remapped paths by default in #105924 and this was one of the issues discovered.
This may also be useful in the context of rust-lang/rfcs#3127 ("New rustc and Cargo options to allow path sanitisation by default").