Skip to content
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

Check trait items for duplicate function names or associated type names #179

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

FullyNonlinear
Copy link
Contributor

This PR adds checks for duplicate function names or duplicate associated type names.

src/test/mod.rs Outdated
}
]

[ /* TODO */ ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ /* TODO */ ]
[ "function name `a` is defined multiple times" ]

try that, I think

Copy link
Contributor Author

@FullyNonlinear FullyNonlinear Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have updated accordingly on this commit: 1cff4c2. (An extra comma is needed for the must_have parameter.)

src/test/mod.rs Outdated
}
]

[ /* TODO */ ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ /* TODO */ ]
[ "associated type name `Assoc` is defined multiple times" ]

Copy link
Contributor Author

@FullyNonlinear FullyNonlinear Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have updated accordingly in this commit: 1cff4c2. (An extra comma is needed for the must_have parameter.)

@nikomatsakis nikomatsakis merged commit 8732bc3 into rust-lang:main Jul 1, 2024
3 checks passed
Sign up for free to 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.

2 participants