-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Allow to expect (adopted) #15301
Allow to expect (adopted) #15301
Conversation
Thanks for picking this up! Ping me if you have any questions about how I approached this problem :) |
#[allow(dead_code)] | ||
#[expect( | ||
dead_code, | ||
reason = "`FlushGuard` never needs to be read, it just needs to be kept alive for the `App`'s lifetime." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so much more useful, wow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'd prefer to resolve that one TODO before merging but I won't block on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor nits, otherwise LGTM.
@BenjaminBrienen could I get your review here? :) Should all be straightforward; I'd just like a second set of eyes. |
Fixes a warning that was raised!
…e lint may not always throw
dead_code, | ||
reason = "This function is only used when the `multi_threaded` feature is enabled, and when not on WASM." | ||
) | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to instead make intialize() feature-gated?
Troubleshooting crate-level |
crates/bevy_mikktspace/src/lib.rs
Outdated
@@ -4,8 +4,7 @@ | |||
clippy::undocumented_unsafe_blocks, | |||
clippy::ptr_cast_constness | |||
)] | |||
// FIXME(3492): remove once docs are ready | |||
#![allow(missing_docs)] | |||
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is mega-pedantic so feel free to ignore:
This reason message has a grammatical error called a comma splice, where two independent clauses are joined by a comma.
2 possible fixes:
"Not all docs are written yet. See #3492."
"Not all docs are written yet; see #3492."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take your point, but given it doesn't interfere with comprehension in this case I'll turn a blind eye to grammar 🙂
I dare you to fail, CI. |
Your PR increases Bevy Minimum Supported Rust Version. Please update the |
I should not have dared 😆 |
Objective
#[allow(...)]
to#[expect(...)]
#15118 that are complete, and updates the branch so it can be merged.Alice's recommendation seems well-taken, let's do this crate by crate now that @BD103 has done the lion's share of this!
(Relates to, but doesn't yet completely finish #15059.)
Crates this doesn't cover: