about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/rustc.rs
AgeCommit message (Collapse)AuthorLines
2024-01-25Rollup merge of #120318 - Nadrieril:share-debug-impl, r=compiler-errorsMatthias Krüger-99/+11
pattern_analysis: Reuse most of the `DeconstructedPat` `Debug` impl The `DeconstructedPat: Debug` is best-effort because we'd need `tcx` to get things like field names etc. Since rust-analyzer has a similar constraint, this PR moves most the impl to be shared between the two. While I was at it I also fixed a nit in the `IntRange: Debug` impl. r? `@compiler-errors`
2024-01-24Most of the `DeconstructedPat` `Debug` impl is reusableNadrieril-99/+11
2024-01-24Let `ctor_sub_tys` return any Iterator they wantNadrieril-13/+13
Since we always clone and allocate the types somewhere else ourselves, no need to ask for `Cx` to do the allocation.
2024-01-23Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.Nicholas Nethercote-1/+1
2024-01-20Remove Ty: Copy boundNadrieril-10/+10
2024-01-15Remove the unused `overlapping_range_endpoints` VecNadrieril-2/+0
2024-01-15Lint overlapping ranges directly from exhaustivenessNadrieril-8/+27
2024-01-12rustc_pattern_analysis no longer needs to be passed an arenaNadrieril-2/+4
2024-01-11Factor out collection of overlapping rangesNadrieril-0/+2
2024-01-07Abort analysis on type errorNadrieril-4/+13
2024-01-07Add an error path to the algorithmNadrieril-0/+2
2024-01-01Statically enforce revealing of opaquesNadrieril-63/+112
2023-12-28Remove movability from TyKind::CoroutineMichael Goulet-1/+1
2023-12-26Keep reference to the original `Pat` in `DeconstructedPat`Nadrieril-3/+3
2023-12-26Merge 'thir and 'pMichael Goulet-1/+1
2023-12-26Clean up more lifetimesMichael Goulet-4/+4
2023-12-26Even moreMichael Goulet-1/+1
2023-12-23Reveal empty opaques in depthNadrieril-4/+14
2023-12-23Clarify the situation with dummy patterns and `PatData`Nadrieril-3/+3
Use an explicit `Option` instead of requiring a `Default` bound
2023-12-20Reveal opaque types in exhaustiveness checkingNadrieril-2/+19
2023-12-15s/MatchCx/TypeCx/Nadrieril-2/+2
2023-12-15Introduce `MatchCtxt`Nadrieril-0/+1
2023-12-15s/PatCtxt/PlaceCtxt/Nadrieril-2/+2
2023-12-15`pattern_analysis` doesn't need to know what spans areNadrieril-2/+2
2023-12-15s/RustcCtxt/RustcMatchCheckCtxt/Nadrieril-24/+33
2023-12-15Iron out last rustc-specific detailsNadrieril-7/+13
2023-12-15Name rustc-specific things "rustc"Nadrieril-0/+904