]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #81912 - sexxi-goose:Migrations2_review, r=nikomatsakis
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 14 Feb 2021 15:54:46 +0000 (16:54 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Feb 2021 15:54:46 +0000 (16:54 +0100)
commit25315635ef50e57e70cc680a0f70926ec24ed0db
treef9844cf05d1fc3818589528082f39f8a470d07e1
parent641c3785dc875744fae75d5c1db12708a819e235
parent96c12f90cf62442bc5cba1d8c1c8049ee4652237
Rollup merge of #81912 - sexxi-goose:Migrations2_review, r=nikomatsakis

Implement the precise analysis pass for lint `disjoint_capture_drop_reorder`

The precision pass for the lint prevents the lint from triggering for a variable (that was previously entirely captured by the closure) if all paths that need Drop starting at root variable have been captured by the closure.

r? `@nikomatsakis`
compiler/rustc_typeck/src/check/upvar.rs