-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove old #[allow(trivial_casts)] annotations #31492
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
Conversation
These were added a long time ago but we long since switched the lint back to allow-by-default, so these annotations shouldn't be necessary.
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
r? @nrc |
Can you leave the FIXMEs in please? I believe they are still valid. r+ with that. |
Hm, would the FIXME still make sense without a |
The point is once we support coercion in type ascription, then we replace the |
Right but this means the code looks like: fn fmt(&self, f: &mut Formatter) -> Result {
// FIXME(#23542) Replace with type ascription.
Pointer::fmt(&(*self as *const T), f)
} which seems odd because we're not necessarily stylistically attempting to annotate all |
Yeah, I guess so. |
@bors: r+ |
📌 Commit 696a1da has been approved by |
These were added a long time ago but we long since switched the lint back to allow-by-default, so these annotations shouldn't be necessary.
These were added a long time ago but we long since switched the lint back to
allow-by-default, so these annotations shouldn't be necessary.