Skip to content

Warn on rustc::internal lints#134

Merged
BD103 merged 1 commit intomainfrom
warn-rustc-internal
Oct 10, 2024
Merged

Warn on rustc::internal lints#134
BD103 merged 1 commit intomainfrom
warn-rustc-internal

Conversation

@BD103
Copy link
Copy Markdown
Member

@BD103 BD103 commented Oct 10, 2024

rustc has a series of internal lints that checks that its own APIs are being used correctly. Since we are using private rustc crates, we should enable these lints to avoid footguns.

I first learned about this lint group when browsing Clippy's source code. Funnily enough, rustc -W help doesn't print internal as a possible group, which is why I didn't know about it earlier.

@BD103 BD103 added A-Linter Related to the linter and custom lints C-Code-Quality An improvement of readability or quality labels Oct 10, 2024
Copy link
Copy Markdown

@mgi388 mgi388 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It all seems reasonable to me.

@BD103
Copy link
Copy Markdown
Member Author

BD103 commented Oct 10, 2024

Thanks for the reviews!

@BD103 BD103 merged commit 01ccce3 into main Oct 10, 2024
@BD103 BD103 deleted the warn-rustc-internal branch October 10, 2024 11:21
BD103 added a commit that referenced this pull request Oct 11, 2024
TimJentzsch added a commit that referenced this pull request Oct 16, 2024
Closes #134.

This PR adjusts the default `index.html` we serve with `bevy run web` to
work better for a Bevy app that doesn't have any special configuration.

We don't assume anymore that the canvas is already created with ID
`#bevy`, but instead watch for a new canvas to be created (which is the
default behavior).

We also adjust the styling to better work with this setup and change the
web background color to the default Bevy app background color.

---------

Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
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 C-Code-Quality An improvement of readability or quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants