summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
2023-05-06Remove wrong assertion.Camille GILLOT-3/+0
2023-04-10Fix typos in compilerDaniPopes-8/+8
2023-04-06Auto merge of #108504 - cjgillot:thir-pattern, r=compiler-errors,Nilstriebbors-449/+379
2023-04-03Rename hir_id to lint_root.Camille GILLOT-10/+18
2023-04-03Only emit lint on refutable patterns.Camille GILLOT-8/+10
2023-04-03Expand parameters.Camille GILLOT-6/+10
2023-04-03Remove redundant field.Camille GILLOT-9/+4
2023-04-03Reinstate confusion note.Camille GILLOT-17/+25
2023-04-03Cleanup PatCtxt.Camille GILLOT-73/+23
2023-04-03Perform match checking on THIR.Camille GILLOT-382/+340
2023-04-03Shrink binding span.Camille GILLOT-8/+17
2023-04-03Make check_match take a LocalDefId.Camille GILLOT-7/+3
2023-04-02Fix `non_exhaustive_omitted_patterns` lint spanclubby789-20/+23
2023-04-01Fix `non_exhaustive_omitted_patterns` on argumentsclubby789-0/+3
2023-03-30Update `ty::VariantDef` to use `IndexVec<FieldIdx, FieldDef>`Scott McMurray-1/+1
2023-03-28Move `mir::Field` → `abi::FieldIdx`Scott McMurray-12/+14
2023-03-25Refactor: `VariantIdx::from_u32(0)` -> `FIRST_VARIANT`Scott McMurray-2/+2
2023-03-21remove some trait solver helperslcnr-9/+7
2023-03-02rustc_middle: Remove trait `DefIdTree`Vadim Petrochenkov-1/+1
2023-02-16Replace some `then`s with some `then_some`sMaybe Waffle-1/+1
2023-02-16`if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)`Maybe Waffle-10/+4
2023-02-14s/eval_usize/eval_target_usize/ for clarityOli Scherer-4/+6
2023-01-28Remove `HirId -> LocalDefId` map from HIR.Camille GILLOT-3/+1
2023-01-26Auto merge of #107328 - matthiaskrgr:rollup-lfqwo0o, r=matthiaskrgrbors-40/+37
2023-01-26Rollup merge of #106978 - mejrs:mir_build3, r=davidtwcoMatthias Krüger-40/+37
2023-01-26Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obkbors-3/+3
2023-01-23fix: use LocalDefId instead of HirId in trait resVincenzo Palazzo-1/+3
2023-01-17Migrate mir_build's borrow conflictsmejrs-40/+37
2023-01-17tidyWaffle Maybe-16/+15
2023-01-17Don't call closures immediately, use `try{}` blocksMaybe Waffle-19/+15
2023-01-14suggest fix for attempted integer identifier in patternsEzra Shaw-4/+16
2023-01-11Rollup merge of #106097 - mejrs:mir_build2, r=oli-obkMichael Goulet-318/+135
2023-01-12Expand format_args!() in rust_ast_lowering.Mara Bos-3/+3
2023-01-11Translate `Overlap` eagerlymejrs-6/+3
2023-01-11Some cleanup, oopsmejrs-5/+0
2023-01-11Don't recommend `if let` if `let else` worksmejrs-16/+7
2023-01-11Migrate pattern matchingmejrs-178/+88
2023-01-11Migrate usefulness.rsmejrs-4/+21
2023-01-11Migrate deconstruct_pat.rsmejrs-21/+14
2023-01-11Translate const_to_pat.rsmejrs-138/+52
2023-01-11Detect out of bounds range pattern valueEsteban Küber-6/+62
2023-01-04rename get_parent_node to parent_idMichael Goulet-6/+6
2022-12-20rustc: Remove needless lifetimesJeremy Stucki-3/+3
2022-12-17Try to fix ICEmejrs-1/+5
2022-12-17Resolve various merge conflictsmejrs-15/+12
2022-12-17Migrate multiple mut borrows diagnosticTheOddGarlic-7/+7
2022-12-17Migrate borrow of moved value diagnosticTheOddGarlic-17/+7
2022-12-17Migrate irrefutable let pattern diagnosticsTheOddGarlic-57/+13
2022-12-17Migrate pattern bindings with variant name lintTheOddGarlic-22/+10
2022-12-17Migrate leading/trailing irrefutable let pattern diagnosticsTheOddGarlic-25/+10