summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
2022-03-31obligation cause: `RepeatVec` -> `RepeatValueCopy`lcnr-1/+1
2022-03-31Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errorsDylan DPC-5/+5
2022-03-30Addressed comments by @compiler-errors and @bjorn3Yuri Astrakhan-1/+1
2022-03-30Spellchecking compiler commentsYuri Astrakhan-5/+5
2022-03-29Remember mutability in `DefKind::Static`.Camille GILLOT-1/+1
2022-03-17Rollup merge of #94960 - codehorseman:master, r=oli-obkDylan DPC-1/+1
2022-03-16rustc_error: make ErrorReported impossible to constructmark-12/+20
2022-03-16resolve the conflict in compiler/rustc_session/src/parse.rscodehorseman-1/+1
2022-03-16Extend the irrefutable_let_patterns lint to let chainsest31-35/+180
2022-03-12Fix rebase conflicts with stderr filesDevin Ragotzy-1/+1
2022-03-12Only filter doc(hidden) fields/variants when not crate localDevin Ragotzy-3/+3
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-32/+30
2022-03-08Do not suggest `let_else` if no bindings would be introducedEsteban Kuber-1/+1
2022-03-08Suggest `if let`/`let_else` for refutable pat in `let`Esteban Kuber-7/+79
2022-03-08Change wording of suggestion to add missing `match` armEsteban Kuber-5/+24
2022-03-08Point at uncovered variants in enum definition in `note` instead of a `span_l...Esteban Kuber-7/+19
2022-03-08When finding a match expr with multiple arms that requires more, suggest itEsteban Kuber-0/+15
2022-03-08When finding a match expr with a single arm that requires more, suggest itEsteban Kuber-0/+15
2022-03-08When encountering a match expr with no arms, suggest itEsteban Kuber-12/+54
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-2/+2
2022-02-286 - Make more use of `let_chains`Caio-66/+54
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-2/+8
2022-02-23Replace `&mut DiagnosticBuilder`, in signatures, with `&mut Diagnostic`.Eduard-Mihai Burtescu-8/+3
2022-02-21use `List<Ty<'tcx>>` for tupleslcnr-6/+3
2022-02-20Auto merge of #94062 - Mark-Simulacrum:drop-print-cfg, r=oli-obkbors-1/+1
2022-02-19Adopt let else in more placesest31-19/+12
2022-02-16Move ty::print methods to Drop-based scope guardsMark Rousskov-1/+1
2022-02-15Overhaul `Const`.Nicholas Nethercote-59/+72
2022-02-15Overhaul `TyS` and `Ty`.Nicholas Nethercote-8/+8
2022-02-12change to a struct variantEllen-1/+1
2022-01-18Formally implement let chainsCaio-8/+35
2022-01-16Replace NestedVisitorMap with NestedFilterCameron Steffen-7/+1
2022-01-16Auto merge of #92805 - BoxyUwU:revert-lazy-anon-const-substs, r=lcnrbors-1/+1
2022-01-15Reduce use of local_def_id_to_hir_id.Camille GILLOT-28/+26
2022-01-15initial revertEllen-1/+1
2022-01-11Store a `Symbol` instead of an `Ident` in `VariantDef`/`FieldDef`Aaron Hill-3/+3
2021-12-13let-else: add hir::Let and type check it like a hir::LocalCormac Relf-3/+5
2021-12-05Evaluate inline const pat early and report error if too genericGary Guo-31/+52
2021-11-23Fix stack overflow in `usefulness.rs`Badel2-4/+7
2021-11-21Simplify for loop desugarCameron Steffen-7/+14
2021-11-12Auto merge of #90813 - notriddle:notriddle/vec-extend, r=GuillaumeGomezbors-3/+1
2021-11-11Use `Vec::extend`, instead of calling `Vec::push` in a loopMichael Howell-3/+1
2021-11-11Auto merge of #90746 - nnethercote:opt-pattern-matching, r=Nadrierilbors-1/+1
2021-11-09Change the `assert` in `is_useful` to a `debug_assert`.Nicholas Nethercote-1/+1
2021-11-07Implement type inference for inline constsGary Guo-1/+1
2021-10-19Reject closures in patternsTomasz Miąsko-0/+3
2021-10-12Filter unstable and doc hidden variants in usefulness checkingDevin Ragotzy-35/+82
2021-10-08clippy::complexity fixesMatthias Krüger-3/+1
2021-10-01Rollup merge of #89441 - Nadrieril:fix-89393, r=tmandryManish Goregaokar-3/+4
2021-10-01Normalize after substituting via `field.ty()`Nadrieril-3/+4