-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Split non macro portion of unused_doc_comment from macro part into two passes/lints #69084
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
Changes from all commits
bcd7e2b
1bd6b98
fa73b61
b44b4ca
494dd0b
40c6722
09bc5e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,15 @@ pub struct WasiFd { | |
fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] { | ||
assert_eq!(mem::size_of::<IoSliceMut<'_>>(), mem::size_of::<wasi::Iovec>()); | ||
assert_eq!(mem::align_of::<IoSliceMut<'_>>(), mem::align_of::<wasi::Iovec>()); | ||
/// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout | ||
unsafe { | ||
mem::transmute(a) | ||
} | ||
// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This caused a build failure due to the warning, I don't quite understand how this hasn't been caught in the past though, the warning in the previous build was still caught by the lint pass not by the expand.rs attribute handling, so I wouldn't expect this change to make it catch something new... |
||
unsafe { mem::transmute(a) } | ||
} | ||
|
||
fn ciovec<'a>(a: &'a [IoSlice<'_>]) -> &'a [wasi::Ciovec] { | ||
assert_eq!(mem::size_of::<IoSlice<'_>>(), mem::size_of::<wasi::Ciovec>()); | ||
assert_eq!(mem::align_of::<IoSlice<'_>>(), mem::align_of::<wasi::Ciovec>()); | ||
/// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout | ||
unsafe { | ||
mem::transmute(a) | ||
} | ||
// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout | ||
unsafe { mem::transmute(a) } | ||
} | ||
|
||
impl WasiFd { | ||
|
Uh oh!
There was an error while loading. Please reload this page.