Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

nnethercote
Copy link
Contributor

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.

r? @bjorn3

@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Oct 7, 2022
@rustbot
Copy link
Collaborator

rustbot commented Oct 7, 2022

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 7, 2022
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.
emitter: Option<Box<dyn Write + Send>>,
make_codegen_backend: Option<
Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>,
>,
Copy link
Member

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)

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

@nnethercote
Copy link
Contributor Author

I filed #102992 to just remove the emitter.

@nnethercote nnethercote deleted the rm-RunCompiler branch October 12, 2022 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants