rust/compiler/rustc_const_eval/src
bors 3fee0f12e4 Auto merge of #131326 - dingxiangfei2009:issue-130836-attempt-2, r=nikomatsakis
Reduce false positives of tail-expr-drop-order from consumed values (attempt #2)

r? `@nikomatsakis`

Tracked by #123739.

Related to #129864 but not replacing, yet.

Related to #130836.

This is an implementation of the approach suggested in the [Zulip stream](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/temporary.20drop.20order.20changes). A new MIR statement `BackwardsIncompatibleDrop` is added to the MIR syntax. The lint now works by inspecting possibly live move paths before at the `BackwardsIncompatibleDrop` location and the actual drop under the current edition, which should be one before Edition 2024 in practice.
2024-11-20 18:51:54 +00:00
..
check_consts reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
const_eval interpret: make typing_env field private 2024-11-20 11:05:53 +01:00
interpret Auto merge of #131326 - dingxiangfei2009:issue-130836-attempt-2, r=nikomatsakis 2024-11-20 18:51:54 +00:00
util InterpCx store TypingEnv instead of a ParamEnv 2024-11-19 21:36:23 +01:00
errors.rs require const_impl_trait gate for all conditional and trait const calls 2024-11-09 23:02:20 +01:00
lib.rs InterpCx store TypingEnv instead of a ParamEnv 2024-11-19 21:36:23 +01:00