diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-01-04 18:34:31 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-01-04 19:23:55 -0800 |
| commit | bbf175df3cd17763ff601151eed6f84d0cabda13 (patch) | |
| tree | d9949855cbbbe8e3796eb015c86c20fa6524ea15 /compiler | |
| parent | 80184183ba0a53aa4f491753de9502acd3d6920c (diff) | |
| download | rust-bbf175df3cd17763ff601151eed6f84d0cabda13.tar.gz rust-bbf175df3cd17763ff601151eed6f84d0cabda13.zip | |
Make `size_of_val` and `min_align_of_val` intrinsics unsafe
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 |
