-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that tail expr receive lifetime extension #129627
base: master
Are you sure you want to change the base?
Ensure that tail expr receive lifetime extension #129627
Conversation
r? @jieyouxu |
@dingxiangfei2009 any updates on this? thanks |
I will update the PR this week. I am priortising the lint over the additional test fixture to finish cooking lint ASAP. |
@dingxiangfei2009 any updates on this? |
@Dylan-DPC Thanks for the reminder. The PR is ready for review again. @rustbot ready |
75aa56a
to
aee8152
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! You can r=me after PR CI is green.
@bors delegate+ |
✌️ @dingxiangfei2009, you can now approve this pull request! If @jieyouxu told you to " |
@bors rollup |
…in-let-block-works, r=jieyouxu Ensure that tail expr receive lifetime extension cc `@jieyouxu` `@traviscross` It just came to me that we should add a test to make sure that we honor the contract from the temporary lifetime rule rust-lang#121346. We should continue to implement this rule in Edition 2021 onward and shorter tail expression lifetime should not override it. This is a small PR to improve our assurance and establish a stronger contract. Tracked by rust-lang#123739
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#129627 (Ensure that tail expr receive lifetime extension) - rust-lang#130999 (Implement file_lock feature) - rust-lang#132873 (handle separate prefixes in clippy rules) - rust-lang#132891 (Remove `rustc_session::config::rustc_short_optgroups`) r? `@ghost` `@rustbot` modify labels: rollup
cc @jieyouxu @traviscross
It just came to me that we should add a test to make sure that we honor the contract from the temporary lifetime rule #121346. We should continue to implement this rule in Edition 2021 onward and shorter tail expression lifetime should not override it.
This is a small PR to improve our assurance and establish a stronger contract.
Tracked by #123739