about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
2024-08-21Rollup merge of #129281 - Nadrieril:tweak-unreachable-lint-wording, r=estebankMatthias Krüger-4/+22
2024-08-21Simplify some redundant field namesMichael Goulet-1/+1
2024-08-21Use bool in favor of Option<()> for diagnosticsMichael Goulet-2/+2
2024-08-20Move the "matches no value" note to be a span labelNadrieril-1/+3
2024-08-19Cap the number of patterns pointed to by the lintNadrieril-3/+17
2024-08-19Add a note with a link to explain empty typesNadrieril-0/+2
2024-08-18rename AddressOf -> RawBorrow inside the compilerRalf Jung-1/+1
2024-08-13Remove a no-longer-true `assert`Nadrieril-4/+6
2024-08-11Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errorsMatthias Krüger-2/+4
2024-08-10Stabilize `min_exhaustive_patterns`Nadrieril-4/+2
2024-08-07Use more slice patterns inside the compilerLeón Orell Valerian Liehr-2/+4
2024-07-29Rollup merge of #128304 - Zalathar:thir-pat-display, r=NadrierilMatthias Krüger-4/+4
2024-07-29Encapsulate the printing of `WitnessPat`Zalathar-4/+4
2024-07-29Reformat `use` declarations.Nicholas Nethercote-11/+10
2024-07-24Improve "covered_by_many" errorNadrieril-2/+11
2024-07-24Explain why a given pattern is considered unreachableNadrieril-19/+45
2024-07-24Move rustc-specific entrypoint to the `rustc` moduleNadrieril-6/+10
2024-07-21Explain why we require `_` for empty patternsNadrieril-0/+4
2024-07-21Tweak `collect_non_exhaustive_tys`Nadrieril-16/+16
2024-07-18remove saw_const_match_error; check if pattern contains an Error insteadRalf Jung-14/+3
2024-07-18avoid creating an Instance only to immediately disassemble it againRalf Jung-31/+2
2024-07-18const_to_pat: cleanup leftovers from when we had to deal with non-structural ...Ralf Jung-226/+107
2024-07-18valtree construction: keep track of which type was valtree-incompatibleRalf Jung-4/+3
2024-07-03Auto merge of #125507 - compiler-errors:type-length-limit, r=lcnrbors-1/+2
2024-07-02Instance::resolve -> Instance::try_resolve, and other nitsMichael Goulet-1/+2
2024-07-02chore: remove duplicate wordshattizai-1/+1
2024-06-24Split out IntoIterator and non-Iterator constructors for AliasTy/AliasTerm/Tr...Michael Goulet-1/+1
2024-06-23Replace `f16` and `f128` pattern matching stubs with real implementationsTrevor Gross-2/+2
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-1/+1
2024-06-12Use Variance glob import everywhereMichael Goulet-2/+2
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-4/+3
2024-06-07Revert "Create const block DefIds in typeck instead of ast lowering"Oli Scherer-3/+5
2024-06-05Add `Ty` to `mir::Const::Ty`Boxy-14/+21
2024-06-05Add `Ty` to `ConstKind::Value`Boxy-3/+3
2024-05-28Create const block DefIds in typeck instead of ast loweringOli Scherer-5/+3
2024-05-26Auto merge of #124661 - RalfJung:only-structural-consts-in-patterns, r=pnkfelixbors-80/+6
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_mir_build`.Nicholas Nethercote-0/+3
2024-05-13Auto merge of #124914 - nnethercote:rm-extern-crate-rustc_middle, r=saethlinbors-6/+8
2024-05-13Remove `extern crate rustc_middle` from `rustc_mir_build`.Nicholas Nethercote-6/+8
2024-05-12Match ergonomics 2024: migration lintJules Bertholet-19/+71
2024-05-03turn pointer_structural_match into a hard errorRalf Jung-7/+3
2024-05-03remove IndirectStructuralMatch lint, emit the usual hard error insteadRalf Jung-73/+3
2024-04-30Replace item names containing an error code with something more meaningfulLeón Orell Valerian Liehr-11/+5
2024-04-20Track mutability of deref patternsNadrieril-1/+3
2024-04-17Rename `BindingAnnotation` to `BindingMode`Jules Bertholet-2/+2
2024-04-15Ensure inherited reference is never set to `&mut` behind an `&`Jules Bertholet-1/+1
2024-04-12Suppress erroneous suggestionAlan Egerton-0/+1
2024-04-08Actually create ranged int types in the type system.Oli Scherer-1/+1
2024-04-05Rollup merge of #123311 - Jules-Bertholet:andpat-everywhere, r=NadrierilGuillaume Gomez-1/+8
2024-04-02Fix suggestions for match non-exhaustivenessMichael Goulet-16/+41