Uh oh!
There was an error while loading. Please reload this page.
Lint elided lifetimes in path during lifetime resolution. - #90446
Conversation
rust-highfive
commented
Oct 31, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
jackh726
left a comment
There was a problem hiding this comment.
Overall looks good. Didn't give this a super close read yet, but had some thoughts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jackh726
commented
Nov 1, 2021
r? @jackh726 |
cjgillot
commented
Nov 26, 2021
@bors try @rust-timer queue |
rust-timer
commented
Nov 26, 2021
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Nov 26, 2021
⌛ Trying commit dd28f96 with merge 15577f9bb6cc47d19e4ab586f20ba64f7fe26b01... |
bors
commented
Nov 26, 2021
☀️ Try build successful - checks-actions |
rust-timer
commented
Nov 26, 2021
Queued 15577f9bb6cc47d19e4ab586f20ba64f7fe26b01 with parent 6d246f0, future comparison URL. |
rust-timer
commented
Nov 27, 2021
Finished benchmarking commit (15577f9bb6cc47d19e4ab586f20ba64f7fe26b01): comparison url. Summary: This change led to large relevant improvements 🎉 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
cjgillot
commented
Nov 27, 2021
@jackh726 the variant with
|
jackh726
commented
Nov 30, 2021
I'm going to go ahead and say that I prefer #91271. Aside from wg-grammar opt, perf is pretty similar. I would attribute that to as maybe just noise. However, that PR looks much cleaner imo. That said, it does look like the "Probably a nicer way to do this would be to make new_implicit_lifetime just take a missing: bool arg" comment got missed in this PR but is present there. r=me on the variant PR once fmt done + CI green. Or r=me on this PR with above comment addressed. |
cjgillot
commented
Dec 1, 2021
@bors r=jackh726 |
bors
commented
Dec 1, 2021
📌 Commit aa2450f has been approved by |
bors
commented
Dec 1, 2021
bors
commented
Dec 2, 2021
☀️ Test successful - checks-actions |
rust-timer
commented
Dec 2, 2021
Finished benchmarking commit (76938d6): comparison url. Summary: This change led to large relevant improvements 🎉 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
The lifetime elision lint is known to be brittle and can be redundant with later lifetime resolution errors. This PR aims to remove the redundancy by performing the lint after lifetime resolution.
This PR proposes to carry the information that an elision should be linted against by using a special
LifetimeName. I am not certain this is the best solution, but it is certainly the easiest.Fixes#60199
Fixes#55768
Fixes#63110
Fixes#71957