about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/traits/mod.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-05 15:39:15 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-20 13:48:37 +1100
commitdc4f948299b58e1d34c0267c17eea09a1119e8c7 (patch)
tree4dcb5590ca01de4085fc1dbf26227c3a934882a5 /compiler/rustc_middle/src/traits/mod.rs
parent5986ff05d8480da038dd161b3a6aa79ff364a851 (diff)
downloadrust-dc4f948299b58e1d34c0267c17eea09a1119e8c7.tar.gz
rust-dc4f948299b58e1d34c0267c17eea09a1119e8c7.zip
Move `StatementAsExpression` to where it's actually used.
Also minimize some visibilities in the destination file.
Diffstat (limited to 'compiler/rustc_middle/src/traits/mod.rs')
-rw-r--r--compiler/rustc_middle/src/traits/mod.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs
index f039da772fd..23c06f71232 100644
--- a/compiler/rustc_middle/src/traits/mod.rs
+++ b/compiler/rustc_middle/src/traits/mod.rs
@@ -514,12 +514,6 @@ impl<'tcx> ObligationCauseCode<'tcx> {
 #[cfg(target_pointer_width = "64")]
 rustc_data_structures::static_assert_size!(ObligationCauseCode<'_>, 48);
 
-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum StatementAsExpression {
-    CorrectType,
-    NeedsBoxing,
-}
-
 #[derive(Clone, Debug, PartialEq, Eq, HashStable, TyEncodable, TyDecodable)]
 #[derive(TypeVisitable, TypeFoldable)]
 pub struct MatchExpressionArmCause<'tcx> {