diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-02-05 15:22:10 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-06 10:47:40 +0000 |
| commit | e8f7a382be12a812b7d73f58967f740a0cf9d9af (patch) | |
| tree | 81db85c4e7c42a85898967fe3b8601f9377d15e7 /compiler/rustc_hir_analysis/src/variance/constraints.rs | |
| parent | 0e7b2835735fc7fee08505fa6c14670bc7ee7601 (diff) | |
| download | rust-e8f7a382be12a812b7d73f58967f740a0cf9d9af.tar.gz rust-e8f7a382be12a812b7d73f58967f740a0cf9d9af.zip | |
Remove the `Option` part of range ends in the HIR
Diffstat (limited to 'compiler/rustc_hir_analysis/src/variance/constraints.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/variance/constraints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/variance/constraints.rs b/compiler/rustc_hir_analysis/src/variance/constraints.rs index 4b336769cfb..8475903c68f 100644 --- a/compiler/rustc_hir_analysis/src/variance/constraints.rs +++ b/compiler/rustc_hir_analysis/src/variance/constraints.rs @@ -252,7 +252,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> { ty::Pat(typ, pat) => { match *pat { - ty::PatternKind::Range { start, end, include_end: _ } => { + ty::PatternKind::Range { start, end } => { self.add_constraints_from_const(current, start, variance); self.add_constraints_from_const(current, end, variance); } |
