summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src
AgeCommit message (Expand)AuthorLines
2022-06-20Rollup merge of #98267 - compiler-errors:suggest-wildcard-arm, r=oli-obkMatthias Krüger-11/+23
2022-06-20Auto merge of #97931 - xldenis:fix-if-let-source-scopes, r=nagisabors-12/+51
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-21/+8
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-16simplify_match_pair: avoid the second comparison if possible.Nicholas Nethercote-9/+12
2022-06-16sort_candidates: avoid the second comparison if possible.Nicholas Nethercote-25/+19
2022-06-16const_range_contains: avoid the second comparison if possible.Nicholas Nethercote-8/+11
2022-06-15Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011Yuki Okushi-3/+3
2022-06-14Only create scopes for if letXavier Denis-4/+20
2022-06-14rebaseb-naber-1/+2
2022-06-14address reviewb-naber-72/+59
2022-06-14address reviewb-naber-57/+3
2022-06-14fix clippy test failuresb-naber-1/+1
2022-06-14implement valtrees as the type-system representation for constant valuesb-naber-93/+169
2022-06-14Rename the `ConstS::val` field as `kind`.Nicholas Nethercote-4/+4
2022-06-12Make `ExprKind::Closure` a struct variant.Camille GILLOT-3/+3
2022-06-10Actually fixXavier Denis-19/+23
2022-06-10Revert "More minimal changes"Xavier Denis-14/+27
2022-06-10More minimal changesXavier Denis-27/+14
2022-06-10Fix `SourceScope` for `if let` bindings.Xavier Denis-9/+28
2022-06-09thir: wrap hir id of vars into local var idDing Xiang Fei-35/+36
2022-06-07Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-amanDylan DPC-19/+54
2022-06-03Replace `&Vec<_>`s with `&[_]`sMaybe Waffle-4/+4
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-28Auto merge of #97383 - dingxiangfei2009:restore-region-scope-tree-query, r=di...bors-7/+7
2022-05-26clippy::complexity fixesMatthias Krüger-9/+5
2022-05-25Rollup merge of #97351 - b-naber:adt-const-params-structural-match-violation,...Dylan DPC-9/+9
2022-05-25Rollup merge of #95953 - JakobDegen:repeat-leak, r=oli-obkDylan DPC-5/+46
2022-05-25try to cache region_scope_tree as a queryDing Xiang Fei-7/+7
2022-05-24Modify MIR building to drop `foo` in `[foo; 0]`Jakob Degen-5/+46
2022-05-24give correct error message on structural match violationb-naber-9/+9
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-4/+7
2022-05-23Fix precise field capture of univariant enumsTomasz Miąsko-19/+54
2022-05-22Do leak check after function ptr coercionJack Huey-0/+3
2022-05-22factor out the rvalue lifetime ruleDing Xiang Fei-16/+30
2022-05-21Auto merge of #96515 - lcnr:user-types-in-pat, r=nikomatsakisbors-62/+53
2022-05-21correctly deal with user type ascriptions in patlcnr-62/+53
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-129/+140
2022-05-18Auto merge of #97019 - b-naber:transition-to-valtrees-pt1, r=oli-obkbors-130/+173