-
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
Provide more context for rustc +nightly -Zunstable-options
on stable
#112692
Provide more context for rustc +nightly -Zunstable-options
on stable
#112692
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
cc456df
to
facd1d3
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
facd1d3
to
7de7085
Compare
This comment has been minimized.
This comment has been minimized.
7de7085
to
5bb6338
Compare
This comment has been minimized.
This comment has been minimized.
5bb6338
to
401c241
Compare
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
This comment has been minimized.
This comment has been minimized.
b71f9aa
to
ca7e0b3
Compare
This comment has been minimized.
This comment has been minimized.
src/tools/miri/src/bin/miri.rs
Outdated
@@ -67,7 +67,8 @@ impl rustc_driver::Callbacks for MiriCompilerCalls { | |||
tcx.sess.fatal("miri cannot be run on programs that fail compilation"); | |||
} | |||
|
|||
init_late_loggers(tcx); | |||
let handler = EarlyErrorHandler::new(ErrorOutputType::default()); |
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.
Is it expected that a second handler gets created here? That seems odd and doesn't seem to happen with the other tools.
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.
This is not intentional and I think it was just a leftover from me trying to change stuff.
ca7e0b3
to
d8fe6d9
Compare
@@ -59,15 +59,16 @@ impl rustc_driver::Callbacks for MiriCompilerCalls { | |||
|
|||
fn after_analysis<'tcx>( | |||
&mut self, | |||
handler: &EarlyErrorHandler, |
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.
Instead of changing the signature of after_analysis
for everyone, it would be better to just add the handler reference as a field in MiriCompilerCalls.
How does this even build currently? You haven't changed the call sites.
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.
This is a bit awkward if I try to add it as a field to MiriCompilerCalls
since the inner handle of handler
isn't Sync
.
This comment has been minimized.
This comment has been minimized.
d8fe6d9
to
ad32acf
Compare
This comment has been minimized.
This comment has been minimized.
ad32acf
to
13e3c05
Compare
This comment has been minimized.
This comment has been minimized.
13e3c05
to
826b97a
Compare
☔ The latest upstream changes (presumably #112913) made this pull request unmergeable. Please resolve the merge conflicts. |
826b97a
to
54fe071
Compare
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.
LGTM, r=me with the nit below
54fe071
to
cef812b
Compare
@bors r+ |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#112207 (Add trustzone and virtualization target features for aarch32.) - rust-lang#112454 (Make compiletest aware of targets without dynamic linking) - rust-lang#112628 (Allow comparing `Box`es with different allocators) - rust-lang#112692 (Provide more context for `rustc +nightly -Zunstable-options` on stable) - rust-lang#112972 (Make `UnwindAction::Continue` explicit in MIR dump) - rust-lang#113020 (Add tests impl via obj unless denied) - rust-lang#113084 (Simplify some conditions) - rust-lang#113103 (Normalize types when applying uninhabited predicate.) r? `@ghost` `@rustbot` modify labels: rollup
(probably) this PR has regressed coloring of warnings emitted by rustc, and it no longer prints the warning summary at the end. $ rm -rf target && RUSTFLAGS="-Cremark=foo" cargo +5ea66686467d3ec5f8c81570e7f0f16ad8dd8cc3 build --release
$ rm -rf target && RUSTFLAGS="-Cremark=foo" cargo +6b46c996e1d3a07dd73beb2873d74a8a0458d05f build --release Both commands were executed on a |
Thanks for the notice, I will investigate now. |
The fix is trivial... I forgot to |
Opened #113127 to fix this. |
…r=davidtwco Set error handler output format as soon as possible Should fix rust-lang#112692 (comment).
…davidtwco Set error handler output format as soon as possible Should fix rust-lang#112692 (comment).
Set error handler output format as soon as possible Should fix rust-lang/rust#112692 (comment).
Closes #110090.