-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Less import overhead for errors #107679
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Less import overhead for errors #107679
Conversation
00f867b
to
580cc89
Compare
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
Finished benchmarking commit (7f97aea): comparison URL. Overall result: ❌✅ regressions and improvements - 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.
|
This is of course noise, and has corrected in #102842 (comment) @rustbot label: +perf-regression-triaged |
This removes huge (3+ lines) import lists found in files that had their error reporting migrated. These lists are bad for developer workflows as adding, removing, or editing a single error's name might cause a chain reaction that bloats the git diff. As the error struct names are long, the likelihood of such chain reactions is high.
Follows the suggestion by @Nilstrieb in the zulip thread to replace the
use errors::{FooErr, BarErr};
withuse errors;
and then changing toerrors::FooErr
on the usage sites.I have used sed to do most of the changes, i.e. something like:
& then I manually fixed the errors that occured. Most manual changes were required in
compiler/rustc_parse/src/parser/expr.rs
.r? @compiler-errors