about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2021-05-17 19:32:14 +0200
committerLeSeulArtichaut <leseulartichaut@gmail.com>2021-05-17 19:32:58 +0200
commit62044b2fab83d6a99a2f0f74b2a88ef4722be597 (patch)
treee4bef7ea1f5cb686a6f9193b44b60bd9287b06e0 /compiler/rustc_middle/src/mir
parent7dc9ff5c629753b6930ecfe9a0446538b8e25fb7 (diff)
downloadrust-62044b2fab83d6a99a2f0f74b2a88ef4722be597.tar.gz
rust-62044b2fab83d6a99a2f0f74b2a88ef4722be597.zip
Remove remnants of BorrowOfPackedField
Diffstat (limited to 'compiler/rustc_middle/src/mir')
-rw-r--r--compiler/rustc_middle/src/mir/query.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/mir/query.rs b/compiler/rustc_middle/src/mir/query.rs
index a80aa6ad3d8..0edb79fdbc8 100644
--- a/compiler/rustc_middle/src/mir/query.rs
+++ b/compiler/rustc_middle/src/mir/query.rs
@@ -32,7 +32,6 @@ pub enum UnsafetyViolationDetails {
     UseOfInlineAssembly,
     InitializingTypeWith,
     CastOfPointerToInt,
-    BorrowOfPackedField,
     UseOfMutableStatic,
     UseOfExternStatic,
     DerefOfRawPointer,
@@ -64,11 +63,6 @@ impl UnsafetyViolationDetails {
             CastOfPointerToInt => {
                 ("cast of pointer to int", "casting pointers to integers in constants")
             }
-            BorrowOfPackedField => (
-                "borrow of packed field",
-                "fields of packed structs might be misaligned: dereferencing a misaligned pointer \
-                 or even just creating a misaligned reference is undefined behavior",
-            ),
             UseOfMutableStatic => (
                 "use of mutable static",
                 "mutable statics can be mutated by multiple threads: aliasing violations or data \