diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-31 21:13:12 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-31 21:13:12 +0000 |
| commit | ea2daa33c8a61af4518d86d78c742ec8e922c93e (patch) | |
| tree | b6a38a48eb25b2e9ecd97e77e50db8b1f996bef7 /compiler/rustc_middle/src | |
| parent | 18a36bccf5198dcc507d42e0daadcf2de4481741 (diff) | |
| download | rust-ea2daa33c8a61af4518d86d78c742ec8e922c93e.tar.gz rust-ea2daa33c8a61af4518d86d78c742ec8e922c93e.zip | |
Split `ObligationCauseCode::BinOp` for unops to `UnOp`
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/traits/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs index 32f91bfba6b..ab8a3142953 100644 --- a/compiler/rustc_middle/src/traits/mod.rs +++ b/compiler/rustc_middle/src/traits/mod.rs @@ -389,10 +389,14 @@ pub enum ObligationCauseCode<'tcx> { /// against. MatchImpl(ObligationCause<'tcx>, DefId), + UnOp { + hir_id: HirId, + }, + BinOp { lhs_hir_id: HirId, - rhs_hir_id: Option<HirId>, - rhs_span: Option<Span>, + rhs_hir_id: HirId, + rhs_span: Span, rhs_is_lit: bool, output_ty: Option<Ty<'tcx>>, }, |
