-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Remove #[cfg(all())]
workarounds from c_char
#112490
Conversation
r? @cuviper (rustbot has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit 427ff7c043241743c44276e8a823868d408dcc63 has been approved by It is now in the queue for this repository. |
Hold on... @bors r- |
// replacing `0 as c_char` with `0_i8`/`0_u8`. This #[cfg(all())] can be removed | ||
// after the false positive in https://github.com/rust-lang/rust-clippy/issues/8093 | ||
// is fixed. | ||
#[cfg(all())] | ||
#[doc(cfg(all()))] } |
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.
Doesn't this apply to the doc one too?
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 don't think so, some of the other definitions have the doc one too but no clippy workaround, it seems to be to hide some rustdoc output about the required cfg #89596
How do you test this? I haven't tried |
427ff7c
to
b607a8a
Compare
#[cfg(all())]
from std::ffi::c_char
#[cfg(all())]
workarounds from c_char
Realised I missed one, removed that too It can be tested with
|
Thanks! @bors r+ |
Remove `#[cfg(all())]` workarounds from `c_char` Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596 Closes rust-lang/rust-clippy#8093
Remove `#[cfg(all())]` workarounds from `c_char` Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596 Closes rust-lang/rust-clippy#8093
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#112490 (Remove `#[cfg(all())]` workarounds from `c_char`) - rust-lang#113252 (Update the tracking issue for `const_cstr_from_ptr`) - rust-lang#113442 (Allow limited access to `OsString` bytes) - rust-lang#113876 (fix docs & example for `std::os::unix::prelude::FileExt::write_at`) - rust-lang#113898 (Fix size_hint for EncodeUtf16) - rust-lang#113934 (Multibyte character removal in String::pop and String::remove doctests) r? `@ghost` `@rustbot` modify labels: rollup
Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596
Closes rust-lang/rust-clippy#8093