about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
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
2024-04-02Address review commentsJules Bertholet-7/+7
2024-03-30Implement "&<pat> everywhere"Jules Bertholet-2/+9
2024-03-27Implement `mut ref`/`mut ref mut`Jules Bertholet-31/+18
2024-03-22Rollup merge of #121619 - RossSmyth:pfix_match, r=petrochenkovMatthias Krüger-0/+1
2024-03-21Implement macro-based deref!() syntax for deref patternsMichael Goulet-1/+1
2024-03-20Add barest-bones deref patternsNadrieril-0/+3
2024-03-18Rollup merge of #121823 - Nadrieril:never-witnesses, r=compiler-errorsMatthias Krüger-35/+39
2024-03-18Avoid various uses of `Option<Span>` in favor of using `DUMMY_SP` in the few ...Oli Scherer-5/+4
2024-03-13Rename `RustcMatchCheckCtxt` -> `RustcPatCtxt`Nadrieril-16/+13
2024-03-13Rollup merge of #121820 - Nadrieril:idxpat2, r=compiler-errorsMatthias Krüger-5/+7
2024-03-12Centralize the decision to suggest patterns vs `_`Nadrieril-40/+36
2024-03-12Don't suggest an arm when suggesting a never patternNadrieril-3/+11
2024-03-12Change `DefKind::Static` to a struct variantOli Scherer-1/+1
2024-03-11`DeconstructedPat.data` is always present nowNadrieril-4/+4
2024-03-11Store field indices in `DeconstructedPat` to avoid virtual wildcardsNadrieril-1/+3
2024-03-06Add postfix match MatchSource to HIRRoss Smyth-0/+1
2024-03-03Add new `pattern_complexity` attribute to add possibility to limit and check ...Guillaume Gomez-2/+6
2024-03-01Auto merge of #121728 - tgross35:f16-f128-step1-ty-updates, r=compiler-errorsbors-0/+2
2024-02-28Add `f16` and `f128` to `rustc_type_ir::FloatTy` and `rustc_abi::Primitive`Trevor Gross-0/+2
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-2/+2
2024-02-25make non-PartialEq-typed consts as patterns a hard errorRalf Jung-9/+6
2024-02-23compiler: clippy::complexity fixesMatthias Krüger-12/+7
2024-02-21Convert `delayed_bug`s to `bug`s.Nicholas Nethercote-1/+1
2024-02-17Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercoteMatthias Krüger-1/+1
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-1/+1
2024-02-14Use fewer delayed bugs.Nicholas Nethercote-2/+1
2024-02-08Match `min_exhaustive_patterns` implementation with `exhaustive_patterns`Nadrieril-1/+2
2024-02-06Rollup merge of #120423 - RalfJung:indirect-structural-match, r=petrochenkovMatthias Krüger-95/+36
2024-02-06Rollup merge of #120331 - Nadrieril:no-arena, r=compiler-errorsMatthias Krüger-2/+1
2024-02-05get rid of nontrivial_structural_match lint and custom_eq const qualifRalf Jung-95/+36
2024-02-05Rollup merge of #116284 - RalfJung:no-nan-match, r=cjgillotMatthias Krüger-11/+18
2024-01-31Remove `pattern_arena` from `RustcMatchCheckCtxt`Nadrieril-2/+1
2024-01-29Stop using `String` for error codes.Nicholas Nethercote-3/+3
2024-01-26remove illegal_floating_point_literal_pattern lintRalf Jung-9/+3