-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Remove RunCompiler
and related things.
#102759
Conversation
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt The Miri subtree was changed cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
I tried removing two methods in `RunCompiler` that were marked as being used by RLS. Tugging on this loose thread led to lots of code removal, including: - `RunCompiler` - `DiagnosticOutput` - `FileLoader` and `RealFileLoader` - Three fields in `Config` Note also that the "Ideally, ..." comment in `SourceMap::load_binary_file` is removed because it's no longer relevant.
b39a8a1
to
4fefe40
Compare
emitter: Option<Box<dyn Write + Send>>, | ||
make_codegen_backend: Option< | ||
Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>, | ||
>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have a use case for both file_loader
(using it for hooking rust-analyzers VFS into rustc at some point for running rustc without having to save) and make_codegen_backend
(setting the codegen backend from a custom driver where the custom codegen backend has arbitrary data. used by the hotswapping branch of cg_clif)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh. This is frustrating when there is no way to tell if an interface like this is being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah
I filed #102992 to just remove the emitter. |
I tried removing two methods in
RunCompiler
that were marked as being used by RLS. Tugging on this loose thread led to lots of code removal, including:RunCompiler
DiagnosticOutput
FileLoader
andRealFileLoader
Config
Note also that the "Ideally, ..." comment in
SourceMap::load_binary_file
is removed because it's no longer relevant.r? @bjorn3