summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
2022-06-19Be more hygenic with spansMichael Goulet-6/+7
2022-06-19Use `Span::eq_ctxt` method instead of `.ctxt() == .ctxt()`Michael Goulet-4/+4
2022-06-19Only omit trailing comma if block doesn't come from macro expansionMichael Goulet-3/+14
2022-06-16compare_const_vals: add a special case for certain ranges.Nicholas Nethercote-4/+19
2022-06-16compare_const_vals: Use infallible evaluation.Nicholas Nethercote-27/+23
2022-06-16Remove `ty` arg from `compare_const_vals`.Nicholas Nethercote-11/+4
2022-06-16Remove `from_bool` closure.Nicholas Nethercote-4/+2
2022-06-16Inline and remove `fallback` closure.Nicholas Nethercote-3/+1
2022-06-16Remove one use of `compare_const_vals`.Nicholas Nethercote-15/+2
2022-06-16Assert type equality of `a` and `b` in `compare_const_vals`.Nicholas Nethercote-1/+3
2022-06-16Remove dead code from `compare_const_vals`.Nicholas Nethercote-11/+0
2022-06-14address reviewb-naber-1/+1
2022-06-14fix clippy test failuresb-naber-1/+1
2022-06-14implement valtrees as the type-system representation for constant valuesb-naber-4/+6
2022-06-14Rename the `ConstS::val` field as `kind`.Nicholas Nethercote-2/+2
2022-06-09thir: wrap hir id of vars into local var idDing Xiang Fei-3/+3
2022-05-24give correct error message on structural match violationb-naber-9/+9
2022-05-21Auto merge of #96515 - lcnr:user-types-in-pat, r=nikomatsakisbors-20/+22
2022-05-21correctly deal with user type ascriptions in patlcnr-20/+22
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-31/+31
2022-05-18Auto merge of #97019 - b-naber:transition-to-valtrees-pt1, r=oli-obkbors-58/+81
2022-05-18Auto merge of #96863 - SparrowLii:let, r=michaelwoeristerbors-6/+6
2022-05-16use GlobalId in eval_to_valtree query and introduce query for valtree_to_cons...b-naber-58/+81
2022-05-09use hir::Let in hir::GuardSparrowLii-6/+6
2022-05-07Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errorsbors-17/+34
2022-05-02fix most compiler/ doctestsElliot Roberts-17/+34
2022-05-02rustc: Panic by default in `DefIdTree::parent`Vadim Petrochenkov-2/+2
2022-04-13couple of clippy::perf fixesMatthias Krüger-1/+1
2022-04-13Auto merge of #94255 - b-naber:use-mir-constant-in-thir, r=oli-obkbors-14/+15
2022-04-07interpret: err instead of ICE on size mismatches in to_bits_or_ptr_internalRalf Jung-1/+1
2022-04-06get rid of visit_constant in thir visitorb-naber-4/+2
2022-04-05span: move `MultiSpan`David Wood-2/+2
2022-04-02rebase and remove dead codeb-naber-3/+1
2022-04-02do use ty::Const in patterns and abstract constsb-naber-80/+60
2022-04-02change thir to use mir::ConstantKind instead of ty::Constb-naber-56/+81
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