]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.


Trivial merge