From: bors Date: Mon, 23 Aug 2021 17:27:23 +0000 (+0000) Subject: Auto merge of #87676 - sexxi-goose:truncate_unique, r=nikomatsakis X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9583fd1bdd0127328e25e5b8c24dff575ec2c86b;p=rust.git Auto merge of #87676 - sexxi-goose:truncate_unique, r=nikomatsakis 2229: Handle MutBorrow/UniqueImmBorrow better We only want to use UniqueImmBorrow when the capture place is truncated and we drop Deref of a MutRef. r? `@nikomatsakis` Fixes: https://github.com/rust-lang/project-rfc-2229/issues/56 --- 9583fd1bdd0127328e25e5b8c24dff575ec2c86b