summary refs log tree commit diff
path: root/src/librustc_mir/transform/const_prop.rs
AgeCommit message (Expand)AuthorLines
2020-01-21Rollup merge of #68297 - Aaron1011:fix/new-const-prop-bounds, r=oli-obkYuki Okushi-22/+22
2020-01-18[const-prop] Run `x.py fmt`Wesley Wiser-5/+1
2020-01-18[const-prop] Remove useless typedefWesley Wiser-7/+5
2020-01-18Auto merge of #68170 - wesleywiser:stop_const_prop_ref_taking, r=oli-obkbors-20/+3
2020-01-17Fix typoAaron Hill-1/+1
2020-01-16Filter and test predicates using `normalize_and_test_predicates` for const-propAaron Hill-22/+22
2020-01-15Auto merge of #67603 - oli-obk:no_mut_static_ref_from_const, r=RalfJungbors-4/+4
2020-01-15Promoteds can contain raw pointers, but these must still only point to immuta...Oliver Scherer-4/+4
2020-01-13Use TraitQueryMode::Canonical when testing predicates in const propAaron Hill-0/+16
2020-01-13Fix typoAaron Hill-1/+1
2020-01-13Don't run const propagation on items with inconsistent boundsAaron Hill-0/+25
2020-01-12Turn off const propagation of ref takingWesley Wiser-20/+3
2020-01-10Errors in promoteds may only cause lints not hard errorsOliver Scherer-5/+13
2020-01-10Do not store lint_rootSantiago Pastorino-9/+13
2020-01-10Remove PlaceBase enum and make Place base field be local: LocalSantiago Pastorino-4/+2
2020-01-10Remove Static from PlaceBaseSantiago Pastorino-2/+2
2020-01-10Promote `Ref`s to constants instead of staticSantiago Pastorino-16/+22
2020-01-07Automatically prefer integer addresses for zst MPlaceOliver Scherer-1/+2
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-3/+3
2020-01-04Rollup merge of #67137 - anp:tracked-panic-internals, r=eddybDylan DPC-0/+1
2020-01-04Update ABI in const impls of panic_fn/begin_panic_fn.Adam Perry-0/+1
2020-01-02Revert `const_err` lint checking of castsWesley Wiser-63/+7
2020-01-01Auto merge of #67676 - wesleywiser:lint_overflowing_int_casts, r=oli-obkbors-63/+135
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-30[const-prop] Expand comment about casting ZST enumsWesley Wiser-1/+3
2019-12-30[const-prop] Clean up `check_cast()` a bitWesley Wiser-31/+35
2019-12-30[const-prop] Extract some functions out of `_const_prop`Wesley Wiser-91/+118
2019-12-30Lint overflowing integer casts in const propWesley Wiser-7/+46
2019-12-29Ensure that we don't cause *new* hard errors if we suddenly can evaluate more...Oliver Scherer-29/+41
2019-12-28Prevent polymorphic const prop on assignmentsOliver Scherer-0/+7
2019-12-28Work around a resolve bug in const propOliver Scherer-1/+7
2019-12-27Fix `Instance::resolve()` incorrectly returning specialized instancesWesley Wiser-3/+11
2019-12-23Dynamically prevent constants from accessing staticsOliver Scherer-0/+1
2019-12-22Format the worldMark Rousskov-238/+165
2019-12-21Rollup merge of #67355 - Centril:merge-mut, r=oli-obkMazdak Farrokhzad-1/+1
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-1/+1
2019-12-20Rollup merge of #67130 - wesleywiser:const_prop_into_locals, r=oli-obkMazdak Farrokhzad-18/+34
2019-12-16Rollup merge of #66570 - lzutao:stabilize-result-map_or, r=Dylan-DPCMazdak Farrokhzad-1/+1
2019-12-13Const prop should finish propagation into user defined variablesWesley Wiser-18/+34
2019-12-11Rollup merge of #67015 - osa1:issue66971, r=wesleywiserMazdak Farrokhzad-11/+37
2019-12-06const-prop: Restrict scalar pair propagationÖmer Sinan Ağacan-11/+37
2019-12-05rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded ...Paul Daniel Faria-6/+6
2019-12-04Auto merge of #66866 - oli-obk:const_fn_memoization, r=RalfJungbors-1/+1
2019-12-02Auto merge of #64736 - Nashenas88:mir_predecessors_cache_cleanup, r=oli-obkbors-7/+10
2019-12-02Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, rename...Paul Daniel Faria-17/+17
2019-12-02Fix tidy errorsPaul Daniel Faria-1/+3
2019-12-02Fix typos caused during rebasePaul Daniel Faria-1/+1
2019-12-02Fix remaining compilation issuesPaul Daniel Faria-3/+3
2019-12-02Simplify BodyCache impl and fix all remaining type errors in librustc_mir (li...Paul Daniel Faria-20/+21
2019-12-02fix init_allocation_extraRalf Jung-2/+2