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

librustc: Enforce privacy for static methods. #5437

Merged
merged 1 commit into from
Mar 20, 2013

Conversation

pcwalton
Copy link
Contributor

This starts moving a bunch of privacy checks into the privacy
checking phase and out of resolve.

r? @nikomatsakis

This starts moving a bunch of privacy checks into the privacy
checking phase and out of resolve.
@bors bors merged commit 2e7ec80 into rust-lang:incoming Mar 20, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this pull request May 2, 2020
Check fn header along with decl when suggesting to implement trait

When checking for functions that are potential candidates for trait
implementations check the function header to make sure modifiers like
asyncness, constness and safety match before triggering the lint.

Fixes rust-lang#5413, rust-lang#4290

changelog: check fn header along with decl for should_implement_trait
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