-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[Work in Progress] Clarify error for opaque type in async functions #82135
[Work in Progress] Clarify error for opaque type in async functions #82135
Conversation
Signed-off-by: Nell Shamrell <[email protected]>
Signed-off-by: Nell Shamrell <[email protected]>
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@@ -1490,7 +1490,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { | |||
format!( | |||
"{}{}{} {}{}", | |||
if sp.is_desugaring(DesugaringKind::Async) { | |||
"the `Output` of this `async fn`'s " | |||
"checked the return type of this `async fn`, " |
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.
This doesn't look any more clear to me. Maybe add .note("while checking the return type of this `async fn`")
instead?
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.
That does make sense! I'll get that incorporated in.
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.
Done! Moved the changes to #82165
Closing in favor of #82165 |
Still a work in progress.
Fix for #80658