Skip to content

Better method mismatch error messages - #10509

Closed
emberian wants to merge 2 commits into
rust-lang:masterfrom
emberian:trait_name
Closed

Better method mismatch error messages#10509
emberian wants to merge 2 commits into
rust-lang:masterfrom
emberian:trait_name

Conversation

@emberian

Copy link
Copy Markdown
Contributor

Rebase + fix of #10118

@emberian

Copy link
Copy Markdown
ContributorAuthor

mis-rebase

@emberianemberian reopened this Nov 16, 2013
bors added a commit that referenced this pull request Nov 17, 2013
@borsbors closed this Nov 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 6, 2023
…r=Jarcho
Make redundant_async_block a more complete late pass
This lets us detect more complex situations: `async { x.await }` is simplified into `x` if:
- `x` is an expression without side-effect
- or `x` is an `async` block itself
In both cases, no part of the `async` expression can be part of a macro expansion.
Fixesrust-lang#10509.
Fixesrust-lang#10525.
changelog: [`redundant_async_block`] Do not lint expressions with side effects.
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
10509: internal: consistent module naming r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@emberian@bors@jaeminMoon