-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Reduce special casing for the panic runtime #140809
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?
Conversation
rustbot has assigned @compiler-errors. Use |
Some changes occurred in compiler/rustc_codegen_ssa |
I was looking at making panic_abort and panic_unwind depend on libstd (#139103 (comment)). These changes make this easier, though is still blocked on the fact that when compiling libstd as dylib, panic_unwind already needs to be present. |
This comment has been minimized.
This comment has been minimized.
6d4613c
to
c7e8663
Compare
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
c7e8663
to
93cf365
Compare
This comment was marked as resolved.
This comment was marked as resolved.
93cf365
to
a9d5498
Compare
This comment was marked as resolved.
This comment was marked as resolved.
d730005
to
7d0f158
Compare
This comment was marked as resolved.
This comment was marked as resolved.
7d0f158
to
0dfacc7
Compare
This comment was marked as resolved.
This comment was marked as resolved.
0dfacc7
to
6df5456
Compare
r? wesleywiser |
Compiler changes look good to me but I'd like someone from libs to review the change in exposed standard library features to make sure there's no concerns there. r? libs |
Looks fine to me. @bors r=wesleywiser,ibraheemdev |
This used to be necessary for a correct linker order, but ever since the introduction of symbols.o adding the symbols in question to symbols.o would work just as well. We do still add dependencies on the panic runtime to the local crate, but not for #![needs_panic_runtime] crates. This also removes the runtime-depends-on-needs-runtime test. inject_dependency_if used to emit this error, but with symbols.o it is no longer important that there is no dependency and in fact it may be nice to have panic_abort and panic_unwind directly depend on libstd in the future for calling std::process::abort().
You shouldn't ever need to explicitly depend on it. And we weren't checking that the panic runtime used the correct panic strategy either.
There is already panic-unwind to enable it.
0819538
to
f5af05b
Compare
r? wesleywiser, the new commits are not libs related. |
|
r? compiler |
r? compiler |
@rustbot ready |
Thanks! |
…trochenkov Reduce special casing for the panic runtime See the individual commits for more info.
See the individual commits for more info.