diff options
| author | bors <bors@rust-lang.org> | 2021-01-05 17:07:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-05 17:07:25 +0000 |
| commit | da305a2b00530aa34dea4e48389204c26fa35dbb (patch) | |
| tree | 2459ab0519f0820001582c2e085c570ede31b2aa /compiler | |
| parent | 3b63e16552bbc3bfdddad67ba219455a2a3ac03c (diff) | |
| parent | bbf175df3cd17763ff601151eed6f84d0cabda13 (diff) | |
| download | rust-da305a2b00530aa34dea4e48389204c26fa35dbb.tar.gz rust-da305a2b00530aa34dea4e48389204c26fa35dbb.zip | |
Auto merge of #80711 - camelid:intrinsic-of-val-safety, r=oli-obk
Make `size_of_val` and `min_align_of_val` intrinsics unsafe Fixes #80668. r? `@oli-obk`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_typeck/src/check/intrinsic.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_typeck/src/check/intrinsic.rs b/compiler/rustc_typeck/src/check/intrinsic.rs index 673dec6c7f9..e4e6cf73c7e 100644 --- a/compiler/rustc_typeck/src/check/intrinsic.rs +++ b/compiler/rustc_typeck/src/check/intrinsic.rs @@ -63,8 +63,6 @@ pub fn intrinsic_operation_unsafety(intrinsic: Symbol) -> hir::Unsafety { | sym::min_align_of | sym::needs_drop | sym::caller_location - | sym::size_of_val - | sym::min_align_of_val | sym::add_with_overflow | sym::sub_with_overflow | sym::mul_with_overflow |
