Factor out collection of overlapping ranges

This commit is contained in:
Nadrieril
2023-12-28 22:22:20 +01:00
parent 89d01babe6
commit 6f6ba2571d
4 changed files with 62 additions and 31 deletions

View File

@@ -124,7 +124,7 @@ pub fn analyze_match<'p, 'tcx>(
let pat_column = PatternColumn::new(arms);
// Lint on ranges that overlap on their endpoints, which is likely a mistake.
// Lint ranges that overlap on their endpoints, which is likely a mistake.
lint_overlapping_range_endpoints(cx, &pat_column)?;
// Run the non_exhaustive_omitted_patterns lint. Only run on refutable patterns to avoid hitting