Library: Remove remaining private #[repr] workarounds
Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
parent
ade84871f7
commit
35e582f982
3 changed files with 7 additions and 7 deletions
|
|
@ -56,7 +56,7 @@ pub use self::primitives::{c_ptrdiff_t, c_size_t, c_ssize_t};
|
|||
// be UB.
|
||||
#[doc = include_str!("c_void.md")]
|
||||
#[lang = "c_void"]
|
||||
#[cfg_attr(not(doc), repr(u8))] // An implementation detail we don't want to show up in rustdoc
|
||||
#[repr(u8)]
|
||||
#[stable(feature = "core_c_void", since = "1.30.0")]
|
||||
pub enum c_void {
|
||||
#[unstable(
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ crate::cfg_select! {
|
|||
///
|
||||
/// [AArch64 Procedure Call Standard]:
|
||||
/// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
|
||||
#[cfg_attr(not(doc), repr(C))] // work around https://github.com/rust-lang/rust/issues/66401
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
#[lang = "va_list"]
|
||||
pub struct VaListImpl<'f> {
|
||||
|
|
@ -39,7 +39,7 @@ crate::cfg_select! {
|
|||
}
|
||||
all(target_arch = "powerpc", not(target_os = "uefi"), not(windows)) => {
|
||||
/// PowerPC ABI implementation of a `va_list`.
|
||||
#[cfg_attr(not(doc), repr(C))] // work around https://github.com/rust-lang/rust/issues/66401
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
#[lang = "va_list"]
|
||||
pub struct VaListImpl<'f> {
|
||||
|
|
@ -53,7 +53,7 @@ crate::cfg_select! {
|
|||
}
|
||||
target_arch = "s390x" => {
|
||||
/// s390x ABI implementation of a `va_list`.
|
||||
#[cfg_attr(not(doc), repr(C))] // work around https://github.com/rust-lang/rust/issues/66401
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
#[lang = "va_list"]
|
||||
pub struct VaListImpl<'f> {
|
||||
|
|
@ -66,7 +66,7 @@ crate::cfg_select! {
|
|||
}
|
||||
all(target_arch = "x86_64", not(target_os = "uefi"), not(windows)) => {
|
||||
/// x86_64 ABI implementation of a `va_list`.
|
||||
#[cfg_attr(not(doc), repr(C))] // work around https://github.com/rust-lang/rust/issues/66401
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
#[lang = "va_list"]
|
||||
pub struct VaListImpl<'f> {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
use crate::fmt;
|
||||
|
||||
/// Equivalent to Objective-C’s `struct objc_class` type.
|
||||
#[cfg_attr(not(doc), repr(u8))] // An implementation detail we don't want to show up in rustdoc
|
||||
#[repr(u8)]
|
||||
pub enum objc_class {
|
||||
#[unstable(
|
||||
feature = "objc_class_variant",
|
||||
|
|
@ -31,7 +31,7 @@ impl fmt::Debug for objc_class {
|
|||
}
|
||||
|
||||
/// Equivalent to Objective-C’s `struct objc_selector` type.
|
||||
#[cfg_attr(not(doc), repr(u8))] // An implementation detail we don't want to show up in rustdoc
|
||||
#[repr(u8)]
|
||||
pub enum objc_selector {
|
||||
#[unstable(
|
||||
feature = "objc_selector_variant",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue