diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-01-24 21:16:57 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-01-30 17:06:30 +0100 |
| commit | cb0e8c508c98590346f5943f1ebd0e901acf87f9 (patch) | |
| tree | 328530a10341c3b8a6f2319203e5fdb43ad0dd0d /compiler/rustc_pattern_analysis/src/lib.rs | |
| parent | 0b2579a1b617e83da98008bac9b93c36c43a8f4b (diff) | |
| download | rust-cb0e8c508c98590346f5943f1ebd0e901acf87f9.tar.gz rust-cb0e8c508c98590346f5943f1ebd0e901acf87f9.zip | |
Limit the use of `PlaceCtxt`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/lib.rs b/compiler/rustc_pattern_analysis/src/lib.rs index a53d7a0d809..866eb67ea99 100644 --- a/compiler/rustc_pattern_analysis/src/lib.rs +++ b/compiler/rustc_pattern_analysis/src/lib.rs @@ -183,7 +183,7 @@ pub fn analyze_match<'p, 'tcx>( // `if let`s. Only run if the match is exhaustive otherwise the error is redundant. if tycx.refutable && report.non_exhaustiveness_witnesses.is_empty() { let pat_column = PatternColumn::new(arms); - lint_nonexhaustive_missing_variants(cx, arms, &pat_column, scrut_ty)?; + lint_nonexhaustive_missing_variants(tycx, arms, &pat_column, scrut_ty)?; } Ok(report) |
