summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/build/expr
AgeCommit message (Expand)AuthorLines
2022-06-20Auto merge of #97931 - xldenis:fix-if-let-source-scopes, r=nagisabors-2/+22
2022-06-14Only create scopes for if letXavier Denis-4/+20
2022-06-14implement valtrees as the type-system representation for constant valuesb-naber-2/+57
2022-06-14Rename the `ConstS::val` field as `kind`.Nicholas Nethercote-2/+2
2022-06-10Actually fixXavier Denis-1/+4
2022-06-10Revert "More minimal changes"Xavier Denis-2/+3
2022-06-10More minimal changesXavier Denis-3/+2
2022-06-10Fix `SourceScope` for `if let` bindings.Xavier Denis-2/+3
2022-06-09thir: wrap hir id of vars into local var idDing Xiang Fei-15/+13
2022-06-07Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-amanDylan DPC-11/+48
2022-06-03Replace `&Vec<_>`s with `&[_]`sMaybe Waffle-2/+2
2022-06-02add cast kind of from_exposed_addr (int-to-ptr casts)Ralf Jung-0/+3
2022-06-01rename PointerAddress → PointerExposeAddressRalf Jung-1/+1
2022-05-31Add a pointer to address cast kindTomasz Miąsko-3/+12
2022-05-26clippy::complexity fixesMatthias Krüger-5/+1
2022-05-25Rollup merge of #95953 - JakobDegen:repeat-leak, r=oli-obkDylan DPC-5/+45
2022-05-24Modify MIR building to drop `foo` in `[foo; 0]`Jakob Degen-5/+45
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-3/+5
2022-05-23Fix precise field capture of univariant enumsTomasz Miąsko-11/+48
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-27/+27
2022-05-16use GlobalId in eval_to_valtree query and introduce query for valtree_to_cons...b-naber-56/+1
2022-05-07Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errorsbors-7/+9
2022-05-04Generate an intermediate temporary for `Drop` constants.Oli Scherer-30/+88
2022-05-02fix most compiler/ doctestsElliot Roberts-7/+9
2022-04-20Rollup merge of #93313 - tmiasko:uninhabited, r=tmandryDylan DPC-4/+9
2022-04-16Auto merge of #94468 - Amanieu:global_asm_sym, r=nagisabors-3/+9
2022-04-14Reimplement lowering of sym operands for asm! so that it also works with glob...Amanieu d'Antras-3/+9
2022-04-13couple of clippy::complexity fixesMatthias Krüger-6/+2
2022-04-08dont make lit_to_mir_constant a queryb-naber-1/+56
2022-04-02rebase and use ty::Const in patterns againb-naber-61/+3
2022-04-02change thir to use mir::ConstantKind instead of ty::Constb-naber-3/+6
2022-03-30Spellchecking some commentsYuri Astrakhan-1/+1
2022-03-24Check if call return type is visibly uninhabited when building MIRTomasz Miąsko-4/+9
2022-03-23dont use a query for lit_to_constantb-naber-11/+8
2022-03-23use NonHirLiteral instead of ScalarLiteral, move pattern related code to pat_...b-naber-7/+6
2022-03-23use ParamConst in ExprKind::ConstParamb-naber-2/+4
2022-03-23remove thir::Visitor::visit_constb-naber-13/+3
2022-03-23change thir to lazily create constantsb-naber-15/+137
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-4/+4
2022-03-09treat all mir::Constant values as ConstantKind::Valb-naber-5/+5
2022-03-08treat literals in ExprKind::StaticRef as mir::ConstantKind::Valb-naber-2/+7
2022-02-286 - Make more use of `let_chains`Caio-15/+13
2022-02-21Auto merge of #93505 - lcnr:substsref-vs-ty-list, r=michaelwoeristerbors-1/+1
2022-02-21use `List<Ty<'tcx>>` for tupleslcnr-1/+1
2022-02-20Revert "Auto merge of #93800 - b-naber:static-initializers-mir-val, r=oli-obk"Mark Rousskov-7/+2
2022-02-15use AllocId and Ty in ExprKind::StaticRef and delay ConstValue constructionb-naber-5/+5
2022-02-15use ConstantKind::Val in StaticRefb-naber-1/+6
2022-02-15Overhaul `Const`.Nicholas Nethercote-1/+1
2022-02-15Overhaul `TyS` and `Ty`.Nicholas Nethercote-1/+1
2022-01-18Formally implement let chainsCaio-13/+3