1
Fork 0

Move StatementAsExpression to where it's actually used.

Also minimize some visibilities in the destination file.
This commit is contained in:
Nicholas Nethercote 2025-02-05 15:39:15 +11:00
parent 5986ff05d8
commit dc4f948299
2 changed files with 13 additions and 14 deletions

View file

@ -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> {