-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor Translator #142650
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
base: master
Are you sure you want to change the base?
Refactor Translator #142650
Conversation
rustbot has assigned @petrochenkov. Use |
Some changes occurred in compiler/rustc_codegen_ssa
cc @davidtwco, @compiler-errors, @TaKO8Ki
cc @davidtwco, @compiler-errors, @TaKO8Ki Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Looks reasonable to me. |
(bors forgot to post a comment about the merge conflicts) |
Reminder, once the PR becomes ready for a review, use |
4a86853
to
3388d83
Compare
Rebased and renamed to FatalOnlyEmitter. @rustbot ready |
@bors r+ |
My main motivation was to simplify the usage of
SilentEmitter
for users like rustfmt. A few refactoring opportunities arose along the way.Translate
trait withTranslator
structEmitter: Translate
withEmitter::translator
SilentEmitter
intoFatalOnlyEmitter
andSilentEmitter