-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc_session
cleanups
#118472
rustc_session
cleanups
#118472
Conversation
They're not used in `rustc_session`, and `rustc_metadata` is a more obvious location. `MetadataLoader` was originally put into `rustc_session` in rust-lang#41565 to avoid a dependency on LLVM, but things have changed a lot since then and that's no longer relevant, e.g. `rustc_codegen_llvm` depends on `rustc_metadata`.
Save analysis was removed a while ago.
We have `sym::integer` for interning integers. Using it lets us use symbols directy, and not have to explicitly go through strings.
Alphabetical order is nicer than random order.
It's trivial and has a single callsite.
All the other option enums are defined in `config.rs`.
a5e95d7
to
275b793
Compare
I updated to address the comments. Thank you for the fast review :) |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1d726a2): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 674.191s -> 673.779s (-0.06%) |
r? @bjorn3