-
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
Make size_of_val
and min_align_of_val
intrinsics unsafe
#80711
Conversation
1bb7dd2
to
abb9cf5
Compare
library/core/src/mem/mod.rs
Outdated
@@ -4,6 +4,7 @@ | |||
//! types, initializing and manipulating memory. | |||
|
|||
#![stable(feature = "rust1", since = "1.0.0")] | |||
#![cfg_attr(not(bootstrap), allow(unused-unsafe))] |
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 because stage1 requires functions that call intrinsics to have unsafe
blocks, but stage0 does not and thus triggers the unused_unsafe
lint (which is denied in rust-lang/rust).
abb9cf5
to
fce7c52
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
fce7c52
to
bbf175d
Compare
@bors r+ |
📌 Commit bbf175d has been approved by |
@bors rollup |
☀️ Test successful - checks-actions |
Fixes #80668.
r? @oli-obk