diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-23 06:47:02 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-11-25 22:10:52 +0000 |
| commit | ca56739366e5183d68eaec1a2a9ee6429fd4002f (patch) | |
| tree | 89ddce08fef3aec981a7f7ce27e0e7771f4e6f0f /compiler/rustc_middle/src | |
| parent | 3e769c55b885b763bbad4e2341ac78d08d81c1ec (diff) | |
| download | rust-ca56739366e5183d68eaec1a2a9ee6429fd4002f.tar.gz rust-ca56739366e5183d68eaec1a2a9ee6429fd4002f.zip | |
Remove 3 more unused ObligationCauseCodes
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 6cc4803c910..853eea1a609 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -370,9 +370,6 @@ pub enum ObligationCauseCode<'tcx> { origin_expr: bool, }, - /// Constants in patterns must have `Structural` type. - ConstPatternStructural, - /// Computing common supertype in an if expression IfExpression(Box<IfExpressionCause<'tcx>>), @@ -405,9 +402,6 @@ pub enum ObligationCauseCode<'tcx> { /// `return` with an expression ReturnValue(hir::HirId), - /// Return type of this function - ReturnType, - /// Opaque return type of this function OpaqueReturnType(Option<(Ty<'tcx>, Span)>), @@ -417,9 +411,6 @@ pub enum ObligationCauseCode<'tcx> { /// #[feature(trivial_bounds)] is not enabled TrivialBound, - /// If `X` is the concrete type of an opaque type `impl Y`, then `X` must implement `Y` - OpaqueType, - AwaitableExpr(hir::HirId), ForLoopIterator, |
