Skip to content

Commit 984ecef

Browse files
committed
Fixes from PR
- Hide Docs - Use repr_unpacked error Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
1 parent c7e5f3c commit 984ecef

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

library/std/src/io/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#[cfg(test)]
22
mod tests;
33

4-
#[cfg(target_pointer_width = "64")]
4+
#[cfg(all(target_pointer_width = "64", not(target_os = "uefi")))]
55
mod repr_bitpacked;
6-
#[cfg(target_pointer_width = "64")]
6+
#[cfg(all(target_pointer_width = "64", not(target_os = "uefi")))]
77
use repr_bitpacked::Repr;
88

9-
#[cfg(not(target_pointer_width = "64"))]
9+
#[cfg(any(not(target_pointer_width = "64"), target_os = "uefi"))]
1010
mod repr_unpacked;
11-
#[cfg(not(target_pointer_width = "64"))]
11+
#[cfg(any(not(target_pointer_width = "64"), target_os = "uefi"))]
1212
use repr_unpacked::Repr;
1313

1414
use crate::error;

library/std/src/os/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub mod solid;
142142
#[cfg(target_os = "tvos")]
143143
#[path = "ios/mod.rs"]
144144
pub(crate) mod tvos;
145-
#[cfg(any(target_os = "uefi", doc))]
145+
#[cfg(target_os = "uefi")]
146146
pub mod uefi;
147147
#[cfg(target_os = "vita")]
148148
pub mod vita;

src/tools/tidy/src/pal.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const EXCEPTION_PATHS: &[&str] = &[
5656
"library/std/src/path.rs",
5757
"library/std/src/sys_common", // Should only contain abstractions over platforms
5858
"library/std/src/net/test.rs", // Utility helpers for tests
59+
"library/std/src/io/error.rs", // Repr unpacked needed for UEFI
5960
];
6061

6162
pub fn check(path: &Path, bad: &mut bool) {

0 commit comments

Comments
 (0)