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- |
library/core/src/ffi/mod.rs
Outdated
There was a problem hiding this comment.
Doesn't this apply to the doc one too?
There was a problem hiding this comment.
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