about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-18 14:17:53 +0000
committerbors <bors@rust-lang.org>2021-06-18 14:17:53 +0000
commit312b894cc12240a3fcc645474c3daa14f7d568ea (patch)
tree715b248237c8ddd90785a963b5bc368d4711b562 /compiler/rustc_middle/src
parent1989b9a0b5f176d84cb736dbe5ba95787d5a9937 (diff)
parent45c55540a821d767445f7419102b5ef8ce850481 (diff)
downloadrust-312b894cc12240a3fcc645474c3daa14f7d568ea.tar.gz
rust-312b894cc12240a3fcc645474c3daa14f7d568ea.zip
Auto merge of #85421 - Smittyvb:rm_pushpop_unsafe, r=matthewjasper
Remove some last remants of {push,pop}_unsafe!

These macros have already been removed, but there was still some code handling these macros. That code is now removed.
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/mir/mod.rs2
-rw-r--r--compiler/rustc_middle/src/thir.rs2
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/mir/mod.rs b/compiler/rustc_middle/src/mir/mod.rs
index 7ae7eab6e5a..0daaec272fd 100644
--- a/compiler/rustc_middle/src/mir/mod.rs
+++ b/compiler/rustc_middle/src/mir/mod.rs
@@ -494,8 +494,6 @@ impl<'tcx> Body<'tcx> {
 #[derive(Copy, Clone, PartialEq, Eq, Debug, TyEncodable, TyDecodable, HashStable)]
 pub enum Safety {
     Safe,
-    /// Unsafe because of a PushUnsafeBlock
-    BuiltinUnsafe,
     /// Unsafe because of an unsafe fn
     FnUnsafe,
     /// Unsafe because of an `unsafe` block
diff --git a/compiler/rustc_middle/src/thir.rs b/compiler/rustc_middle/src/thir.rs
index 436cd305a7f..2f107e7b96c 100644
--- a/compiler/rustc_middle/src/thir.rs
+++ b/compiler/rustc_middle/src/thir.rs
@@ -115,8 +115,6 @@ pub struct Adt<'tcx> {
 pub enum BlockSafety {
     Safe,
     ExplicitUnsafe(hir::HirId),
-    PushUnsafe,
-    PopUnsafe,
 }
 
 #[derive(Debug, HashStable)]