Fix E0191 suggestion for empty dyn trait args#155637
Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom Apr 23, 2026
Merged
Fix E0191 suggestion for empty dyn trait args#155637rust-bors[bot] merged 1 commit intorust-lang:mainfrom
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
Collaborator
|
HIR ty lowering was modified cc @fmease |
Collaborator
|
r? @jackh726 rustbot has assigned @jackh726. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
Kivooeo
reviewed
Apr 22, 2026
fmease
reviewed
Apr 22, 2026
Contributor
|
I believe this issue also applies to non-dyn trait specifiers too, as in |
Member
|
I'm not sure this is super warranted. This is a super niche issue that affects all trait refs. |
Member
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
* Fix E0191 suggestion for empty dyn trait args * Fix tidy check * address code nit * fold test into existing E0191 test
Contributor
|
🔨 4 commits were squashed into 4d2b607. |
8169ac4 to
4d2b607
Compare
Member
|
Thanks! @bors r+ |
Contributor
Member
|
@bors rollup |
rust-bors Bot
pushed a commit
that referenced
this pull request
Apr 23, 2026
Rollup of 7 pull requests Successful merges: - #155469 (Account for titlecase in casing lints) - #155644 (delegation: support self ty propagation for functions in free to trait reuse) - #154957 (Fix ICE when const closure appears inside a non-const trait method) - #155442 (Change keyword order for `impl` restrictions) - #155561 (Use singular wording for single _ placeholders in type suggestions) - #155637 (Fix E0191 suggestion for empty dyn trait args) - #155661 (Remove `AttributeLintKind` variants - part 6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #155578.