-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Rust: Associated types are inherited as type parameters by traits and dyn traits #21165
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
Changes from all commits
e0c36c7
fd5658d
6219354
a19ad5e
4654001
ca3e2db
8cbe17a
15f3c38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -148,30 +148,11 @@ | |||||||||||
|
|
||||||||||||
| TypeItemNode getResolved() { result = resolved } | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * Gets a type alias with the name `name` of the trait that this path resolves | ||||||||||||
| * to, if any. | ||||||||||||
| */ | ||||||||||||
| pragma[nomagic] | ||||||||||||
| private TypeAlias getResolvedTraitAlias(string name) { | ||||||||||||
| result = resolved.(TraitItemNode).getAnAssocItem() and | ||||||||||||
| name = result.getName().getText() | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| pragma[nomagic] | ||||||||||||
|
||||||||||||
| pragma[nomagic] | |
| pragma[nomagic] | |
| /** | |
| * Gets the associated type argument with the given `name` as a type mention. | |
| */ |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
in this argument
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| multipleResolvedTargets | ||
| | main.rs:3087:13:3087:17 | x.f() | | ||
| | main.rs:2860:13:2860:17 | x.f() | |
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.
Corrected grammar: 'corresponds directly its trait' should be 'corresponds directly to its trait'.