Skip to content

Conversation

@DaAlbrecht
Copy link
Collaborator

@DaAlbrecht DaAlbrecht commented Oct 8, 2025

Objective

Add new lint that checks if a given Ty was used from the std that has an equivalent in bevy_platform.

Known limitations

So far, this lint only checks structs. I think this is already useful in its current state, and I think it would be a good follow-up issue to extend this and special-case traits, FnDefs, etc.

Note to Reviewers

I often worked on this when I had small breaks so I would not recommend going through commit by commit, as I committed more to save my current state and not as a hint for reviewers.
A helpful look could be this clippy lint that I got recommended on Zulip: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/std_instead_of_core.rs

Closes #432

@DaAlbrecht DaAlbrecht added A-Linter Related to the linter and custom lints D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Oct 8, 2025
@DaAlbrecht DaAlbrecht marked this pull request as ready for review October 22, 2025 20:46
@DaAlbrecht DaAlbrecht added S-Needs-Review The PR needs to be reviewed before it can be merged and removed S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Oct 22, 2025
@BD103 BD103 self-requested a review October 28, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Linter Related to the linter and custom lints D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review The PR needs to be reviewed before it can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest using things from bevy_platform instead of std where available

2 participants