]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #89504 - Aaron1011:rpit-nll-static, r=nikomatsakis
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 5 Oct 2021 06:56:24 +0000 (23:56 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Oct 2021 06:56:24 +0000 (23:56 -0700)
commitbf62c6d710d5fe555565342a8e3ab5f89913e44f
treebcdc0d3f599b77740f1bf3a6284bf5bf304abd02
parent04314a60616ab40f8cc5e146dc8297691d1b7f5e
parentfdd8a0dde53e09b2f0ec869088fcb1d882031bd6
Rollup merge of #89504 - Aaron1011:rpit-nll-static, r=nikomatsakis

Don't suggest replacing region with 'static in NLL

Fixes #73159

This is similar to #69350 - if the user didn't initially
write out a 'static lifetime, adding 'static in response to
a lifetime error is usually the wrong thing to do.