about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/promote_consts.rs
AgeCommit message (Expand)AuthorLines
2024-12-22Delete `Rvalue::Len`Scott McMurray-3/+1
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-3/+3
2024-10-25tcx.is_const_fn doesn't work the way it is described, remove itRalf Jung-1/+1
2024-10-19Get rid of const eval_* and try_eval_* helpersMichael Goulet-2/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-14/+10
2024-09-10Add a useful comment about `PromoteTemps`.Nicholas Nethercote-0/+1
2024-09-10Improve comment formatting.Nicholas Nethercote-17/+21
2024-09-09Reduce visibilities, and add `warn(unreachable_pub)`.Nicholas Nethercote-1/+1
2024-09-03Rollup merge of #129926 - nnethercote:mv-SanityCheck-and-MirPass, r=cjgillotMatthias Krüger-1/+1
2024-09-03Move `MirPass` to `rustc_mir_transform`.Nicholas Nethercote-1/+1
2024-09-02chore: Fix typos in 'compiler' (batch 2)Alexander Cyon-1/+1
2024-08-30Remove `#[macro_use] extern crate tracing` from `rustc_mir_transform`.Nicholas Nethercote-0/+1
2024-08-18rename AddressOf -> RawBorrow inside the compilerRalf Jung-1/+1
2024-08-11Use assert_matches around the compilerMichael Goulet-2/+2
2024-08-01MIR required_consts, mentioned_items: ensure we do not forget to fill these l...Ralf Jung-4/+10
2024-07-29Reformat `use` declarations.Nicholas Nethercote-13/+9
2024-07-02chore: remove duplicate wordshattizai-1/+1
2024-06-21Auto merge of #125853 - tesuji:promote-fail-fast, r=cjgillotbors-17/+15
2024-06-21Reuse allocation for Vec<Candidate>Lzu Tao-6/+3
2024-06-16promote_consts: eargerly return when there are no candidatesLzu Tao-0/+5
2024-06-16prefer tracing::instrument over debug stringsLzu Tao-11/+7
2024-06-13MIR visitor: constant -> const_operandRalf Jung-1/+1
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-3/+3
2024-05-28Add an intrinsic for `ptr::metadata`Scott McMurray-1/+1
2024-05-24compiler: unnest rustc_const_eval::check_constsJubilee Young-1/+1
2024-05-17Remove `Rvalue::CheckedBinaryOp`Scott McMurray-1/+4
2024-05-13Remove `extern crate rustc_middle` from `rustc_mir_transform`.Nicholas Nethercote-0/+1
2024-04-23properly fill a promoted's required_constsRalf Jung-5/+9
2024-04-23compute required_consts before promotion, and add promoteds that may failRalf Jung-15/+34
2024-04-23promotion: do not promote const-fn calls in const when that may fail without ...Ralf Jung-19/+79
2024-04-20Add a non-shallow fake borrowNadrieril-1/+1
2024-04-19ScalarInt: add methods to assert being a (u)int of given sizeRalf Jung-3/+3
2024-04-03rename `expose_addr` to `expose_provenance`joboet-1/+1
2024-03-23Add+Use `mir::BinOp::Cmp`Scott McMurray-0/+1
2024-03-23refactor check_{lang,library}_ub: use a single intrinsic, put policy into lib...Ralf Jung-1/+1
2024-03-22Programmatically convert some of the pat ctorsMichael Goulet-1/+1
2024-03-22Ty::new_ref and Ty::new_ptr stop using TypeAndMutMichael Goulet-5/+2
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-1/+1
2024-02-24promotion: don't promote int::MIN / -1Ralf Jung-3/+26
2024-02-08Add a new debug_assertions instrinsic (compiler)Ben Kimock-0/+1
2024-01-15compiler: Lower fn call arg spans down to MIRMartin Nordholts-3/+4
2024-01-08Make match exhaustive.Camille GILLOT-1/+1
2024-01-08Simplify code flow.Camille GILLOT-222/+156
2024-01-08Move promote_consts back to rustc_mir_transform.Camille GILLOT-0/+1018