-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Allow eliding GATs in expression position #92918
Allow eliding GATs in expression position #92918
Conversation
tcx.sess | ||
.delay_span_bug(self.span, "unelided lifetime in signature"); | ||
|
||
// Supply some dummy value. We don't have an |
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.
copy-pasta'ed this from elsewhere in astconv.
This comment has been minimized.
This comment has been minimized.
f161883
to
d671948
Compare
Will this change the lifetime we pick for something like |
seems like (at least in expr position) we already unelide so I don't... think so? |
This makes sense; lifetime elision is allowed here for non-GATs @bors r+ |
📌 Commit d671948 has been approved by |
…lision, r=jackh726 Allow eliding GATs in expression position Thoughts on whether this is worthwhile? Fixes rust-lang#92836 r? `@jackh726`
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#90277 (Improve terminology around "after typeck") - rust-lang#92918 (Allow eliding GATs in expression position) - rust-lang#93039 (Don't suggest inaccessible fields) - rust-lang#93155 (Switch pretty printer to block-based indentation) - rust-lang#93214 (Respect doc(hidden) when suggesting available fields) - rust-lang#93347 (Make `char::DecodeUtf16::size_hist` more precise) - rust-lang#93392 (Clarify documentation on char::MAX) - rust-lang#93444 (Fix some CSS warnings and errors from VS Code) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Thoughts on whether this is worthwhile?
Fixes #92836
r? @jackh726