about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorAyush Singh <ayushdevel1325@gmail.com>2023-09-21 18:59:43 +0530
committerAyush Singh <ayushdevel1325@gmail.com>2023-09-22 23:56:51 +0530
commit984ecefed8a12fc31200f5307f07acd7ce6b18c9 (patch)
tree7c63720402d413138d9e539dbad2a1544488979d /library/std/src
parentc7e5f3ca085c3adfd285a6d41080ff65a6299bc9 (diff)
downloadrust-984ecefed8a12fc31200f5307f07acd7ce6b18c9.tar.gz
rust-984ecefed8a12fc31200f5307f07acd7ce6b18c9.zip
Fixes from PR
- Hide Docs
- Use repr_unpacked error

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/error.rs8
-rw-r--r--library/std/src/os/mod.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index f63142ff01f..5966416e32a 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -1,14 +1,14 @@
 #[cfg(test)]
 mod tests;
 
-#[cfg(target_pointer_width = "64")]
+#[cfg(all(target_pointer_width = "64", not(target_os = "uefi")))]
 mod repr_bitpacked;
-#[cfg(target_pointer_width = "64")]
+#[cfg(all(target_pointer_width = "64", not(target_os = "uefi")))]
 use repr_bitpacked::Repr;
 
-#[cfg(not(target_pointer_width = "64"))]
+#[cfg(any(not(target_pointer_width = "64"), target_os = "uefi"))]
 mod repr_unpacked;
-#[cfg(not(target_pointer_width = "64"))]
+#[cfg(any(not(target_pointer_width = "64"), target_os = "uefi"))]
 use repr_unpacked::Repr;
 
 use crate::error;
diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs
index 41aa0472f52..11ad21515fd 100644
--- a/library/std/src/os/mod.rs
+++ b/library/std/src/os/mod.rs
@@ -142,7 +142,7 @@ pub mod solid;
 #[cfg(target_os = "tvos")]
 #[path = "ios/mod.rs"]
 pub(crate) mod tvos;
-#[cfg(any(target_os = "uefi", doc))]
+#[cfg(target_os = "uefi")]
 pub mod uefi;
 #[cfg(target_os = "vita")]
 pub mod vita;