-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Deny global_asm in deny(unsafe_code) #103918
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @fee1-dead (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
You have your test binary checked in |
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.
Please add a ui test, also please squash the commit so that the binary does not appear in the history.
Done 👏🏻 |
if id.as_str() == "core::arch::global_asm" { | ||
return false; | ||
} |
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.
Please add a comment explaining that this is needed such that the unsafe_code
lint works correctly.
Also, what if an external macro generates global_asm
? Would that be denied by the compiler?
This option prints all supported values for -Csplit-debuginfo=.., i.e. only stable ones on stable/beta and all of them on nightly/dev.
fix: lint against the functions `LintContext::{lookup_with_diagnostics,lookup,struct_span_lint,lint}`, `TyCtxt::struct_lint_node`, `LintLevelsBuilder::struct_lint`.
Co-authored-by: clubby789 <jamie@hill-daniel.co.uk>
…RTB error from generator interior
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
Some changes occurred in src/librustdoc/clean/types.rs cc @camelid
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki The Miri subtree was changed cc @rust-lang/miri Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha Some changes occurred in HTML/CSS themes. Some changes occurred in src/tools/cargo cc @ehuss Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 These commits modify compiler targets. Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri A change occurred in the Ayu theme. cc @Cldfire
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
OH NO |
I messed up a rebase I seriously didn't mean to ping everyone 😓 |
Fixes #103078