diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-06-26 06:36:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-26 06:36:49 +0200 |
| commit | fe2fd8a2d3fce02b07c7a15072812d86092dcbaf (patch) | |
| tree | ab8fc713b93940db4b05f29280f5af4ebd8a73e2 /compiler/rustc_pattern_analysis/src | |
| parent | 6ad42bf4e7ab81ec3d66a5e47dfe01dc51603c0b (diff) | |
| parent | fdf44db88020c7dad46647aaa81ec05a295e96f2 (diff) | |
| download | rust-fe2fd8a2d3fce02b07c7a15072812d86092dcbaf.tar.gz rust-fe2fd8a2d3fce02b07c7a15072812d86092dcbaf.zip | |
Merge pull request #2479 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/constructor.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs index f7a4931c111..09685640e50 100644 --- a/compiler/rustc_pattern_analysis/src/constructor.rs +++ b/compiler/rustc_pattern_analysis/src/constructor.rs @@ -314,7 +314,8 @@ impl IntRange { IntRange { lo, hi } } - fn is_subrange(&self, other: &Self) -> bool { + #[inline] + pub fn is_subrange(&self, other: &Self) -> bool { other.lo <= self.lo && self.hi <= other.hi } |
