-
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
Remove unnecessary after_run
function
#81184
Conversation
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
It's called at the same time and in the same place as `after_krate`, so they can be combined.
r? @CraftSpider |
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.
Looks good to me but I think the comment could be better.
/// Called after everything else to write out errors. | ||
fn after_run(&mut self, diag: &rustc_errors::Handler) -> Result<(), Error>; | ||
/// | ||
/// A handler is available if the renderer wants to report errors. |
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 think this should mention when will the handler be called to report errors. In this case it should be after post processing.
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.
That is not guarenteed by this trait, that's an implementation detail of html::render::Context
. So I don't think it should be documented.
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.
Looks good, no real comments as it seems a direct merge into after_krate
.
Thanks! @bors r=CraftSpider rollup |
📌 Commit d926147 has been approved by |
Remove unnecessary `after_run` function It's called at the same time and in the same place as `after_krate`, so they can be combined.
Remove unnecessary `after_run` function It's called at the same time and in the same place as `after_krate`, so they can be combined.
Rollup of 11 pull requests Successful merges: - rust-lang#79655 (Add Vec visualization to understand capacity) - rust-lang#80172 (Use consistent punctuation for 'Prelude contents' docs) - rust-lang#80429 (Add regression test for mutual recursion in obligation forest) - rust-lang#80601 (Improve grammar in documentation of format strings) - rust-lang#81046 (Improve unknown external crate error) - rust-lang#81178 (Visit only terminators when removing landing pads) - rust-lang#81179 (Fix broken links with `--document-private-items` in the standard library) - rust-lang#81184 (Remove unnecessary `after_run` function) - rust-lang#81185 (Fix ICE in mir when evaluating SizeOf on unsized type) - rust-lang#81187 (Fix typo in counters.rs) - rust-lang#81219 (Document security implications of std::env::temp_dir) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
It's called at the same time and in the same place as
after_krate
, sothey can be combined.