Skip to content

Commit

Permalink
Auto merge of #131326 - dingxiangfei2009:issue-130836-attempt-2, r=ni…
Browse files Browse the repository at this point in the history
…komatsakis

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.
  • Loading branch information
bors committed Nov 20, 2024
2 parents 6521db1 + d9aae5e commit f7b5410
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f7b5410

Please sign in to comment.