Skip to content

typo fix in doc/rust.md#5029

Closed
mcpherrinm wants to merge 1 commit into
rust-lang:incomingfrom
mcpherrinm:master
Closed

typo fix in doc/rust.md#5029
mcpherrinm wants to merge 1 commit into
rust-lang:incomingfrom
mcpherrinm:master

Conversation

@mcpherrinm
Copy link
Copy Markdown
Contributor

Added a newline to make header be a header.

(re-did pull request because I screwed up the last one)

@catamorphism
Copy link
Copy Markdown
Contributor

Thanks for the understanding!

bors added a commit that referenced this pull request Feb 19, 2013
Added a newline to make header be a header.

(re-did pull request because I screwed up the last one)
@bors bors closed this Feb 19, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
New Lint: `wildcard imports`

Fixes rust-lang#1228

### A few notes:
- I put this lint in the pedantic group, even though in the issue restriction was mentioned.
- Every fallout fix was automatically applied by `cargo fix` (This produced 3 `unused_imports` warnings) and are in commit 7e834c8. So reverting these changes wouldn't be a problem.

### A few ideas:
- A configuration to specify the amount of imported Items, where a `*` might be better.
- ~~A configuration to disable the lint for enums. Or just disable the lint for enums, since there is [`enum_glob_use`](https://rust-lang.github.io/rust-clippy/master/index.html#enum_glob_use)~~ I moved `enum_glob_use` into this lint in 12937f0

### A few quotes from the issue:
> Is there a way to ask the compiler about the modules or symbols that the current file is using?

Yes there is. I found it, once I was nearly finished implementing it myself. See 321d64a

> one hard optional feature would be to figure out what is currently used and add a suggestion to replace it with a full import list.

Yeah that was pretty hard, until I found the query for this. Queries are cool, but too hard to find.

> FWIW VS Code and Intellij IDEA both offer imports deglobbing which replace * with required imports.

And now, Clippy can do this too! 🎉

---

Your thoughts on the notes/ideas?

changelog: Add new lint [`wildcard imports`]. Add suggestion to [`enum_glob_use`]
RalfJung added a commit to RalfJung/rust that referenced this pull request May 12, 2026
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