diff options
| author | Alex Macleod <alex@macleod.io> | 2023-06-10 13:07:04 +0100 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2023-06-16 12:17:12 +0000 |
| commit | b607a8a4af89c54d6cfcd633d9aabcc33e9c3502 (patch) | |
| tree | 93b03f240bc66e45f7b9b6398830027f18a5e1c3 | |
| parent | a77659a1e1807ba567f513afe59115af2604dc30 (diff) | |
| download | rust-b607a8a4af89c54d6cfcd633d9aabcc33e9c3502.tar.gz rust-b607a8a4af89c54d6cfcd633d9aabcc33e9c3502.zip | |
Remove `#[cfg(all())]` workarounds from `c_char`
| -rw-r--r-- | library/core/src/ffi/mod.rs | 5 | ||||
| -rw-r--r-- | library/std/src/os/raw/mod.rs | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/library/core/src/ffi/mod.rs b/library/core/src/ffi/mod.rs index 86ea154a886..d11f24c198c 100644 --- a/library/core/src/ffi/mod.rs +++ b/library/core/src/ffi/mod.rs @@ -52,11 +52,6 @@ macro_rules! type_alias { } type_alias! { "c_char.md", c_char = c_char_definition::c_char, NonZero_c_char = c_char_definition::NonZero_c_char; -// Make this type alias appear cfg-dependent so that Clippy does not suggest -// 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()))] } type_alias! { "c_schar.md", c_schar = i8, NonZero_c_schar = NonZeroI8; } diff --git a/library/std/src/os/raw/mod.rs b/library/std/src/os/raw/mod.rs index 19d0ffb2e39..5b302e3c2c8 100644 --- a/library/std/src/os/raw/mod.rs +++ b/library/std/src/os/raw/mod.rs @@ -9,11 +9,6 @@ macro_rules! alias_core_ffi { ($($t:ident)*) => {$( #[stable(feature = "raw_os", since = "1.1.0")] #[doc = include_str!(concat!("../../../../core/src/ffi/", stringify!($t), ".md"))] - // Make this type alias appear cfg-dependent so that Clippy does not suggest - // replacing expressions like `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()))] pub type $t = core::ffi::$t; )*} |
