Skip to content

librustc: Forbid pub or priv before trait implementations#5131

Closed
pcwalton wants to merge 3 commits into
rust-lang:incomingfrom
pcwalton:trait-impl-visibility
Closed

librustc: Forbid pub or priv before trait implementations#5131
pcwalton wants to merge 3 commits into
rust-lang:incomingfrom
pcwalton:trait-impl-visibility

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

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

@catamorphism

Copy link
Copy Markdown
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?
RalfJung added a commit to RalfJung/rust that referenced this pull request Jun 27, 2026
move nextest section up and mark it more clearly as such
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