Skip to content

Commit b607a8a

Browse files
committed
Remove #[cfg(all())] workarounds from c_char
1 parent a77659a commit b607a8a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

library/core/src/ffi/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ macro_rules! type_alias {
5252
}
5353

5454
type_alias! { "c_char.md", c_char = c_char_definition::c_char, NonZero_c_char = c_char_definition::NonZero_c_char;
55-
// Make this type alias appear cfg-dependent so that Clippy does not suggest
56-
// replacing `0 as c_char` with `0_i8`/`0_u8`. This #[cfg(all())] can be removed
57-
// after the false positive in https://github.com/rust-lang/rust-clippy/issues/8093
58-
// is fixed.
59-
#[cfg(all())]
6055
#[doc(cfg(all()))] }
6156

6257
type_alias! { "c_schar.md", c_schar = i8, NonZero_c_schar = NonZeroI8; }

library/std/src/os/raw/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ macro_rules! alias_core_ffi {
99
($($t:ident)*) => {$(
1010
#[stable(feature = "raw_os", since = "1.1.0")]
1111
#[doc = include_str!(concat!("../../../../core/src/ffi/", stringify!($t), ".md"))]
12-
// Make this type alias appear cfg-dependent so that Clippy does not suggest
13-
// replacing expressions like `0 as c_char` with `0_i8`/`0_u8`. This #[cfg(all())] can be
14-
// removed after the false positive in https://github.com/rust-lang/rust-clippy/issues/8093
15-
// is fixed.
16-
#[cfg(all())]
1712
#[doc(cfg(all()))]
1813
pub type $t = core::ffi::$t;
1914
)*}

0 commit comments

Comments
 (0)