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: Forbid pub or priv before trait implementations #5131

Closed
wants to merge 3 commits into from

Conversation

pcwalton
Copy link
Contributor

r? @catamorphism (last commit is the important one)

@catamorphism
Copy link
Contributor

Once this lands, we can close #3985.

@pcwalton pcwalton closed this Feb 27, 2013
@pcwalton pcwalton deleted the trait-impl-visibility branch February 27, 2013 16:10
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
…p1995

Do not lint `unnecessary_unwrap` in external macros

Fixes rust-lang#5131

I think we shouldn't lint `{panicking, unnecessary}_unwrap` in macros, not just `assert!`.

changelog: Fix false positive in `unnecessary_unwrap`
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 7, 2023
Added remove unused imports assist

This resolves the most important part of rust-lang#5131. I needed to make a couple of cosmetic changes to the search infrastructure to do this.

A few open questions:
* Should imports that don't resolve to anything be considered unused? I figured probably not, but it would be a trivial change to make if we want it.
* Is there a cleaner way to make the edits to the use list?
* Is there a cleaner way to get the list of uses that intersect the current selection?
* Is the performance acceptable? When testing this on itself, it takes a good couple seconds to perform the assist.
* Is there a way to hide the rustc diagnostics that overlap with this functionality?
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.

3 participants