about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2024-01-18 13:14:14 -0500
committerJake Goulding <jake.goulding@gmail.com>2024-01-18 13:14:42 -0500
commitfb7762b1c51d67a56324b92fd79c85b33d5d1d3b (patch)
treeedafac038302ef438670e33e11087bb5c11295eb
parentd95d6ceecb372c66ed18a4e7a0bbb79e74ee8fed (diff)
downloadrust-fb7762b1c51d67a56324b92fd79c85b33d5d1d3b.tar.gz
rust-fb7762b1c51d67a56324b92fd79c85b33d5d1d3b.zip
Remove no-longer-needed `allow(dead_code)` from the standard library
`repr(transparent)` now silences the lint.
-rw-r--r--library/alloc/src/boxed/thin.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/alloc/src/boxed/thin.rs b/library/alloc/src/boxed/thin.rs
index 9463b73b574..f83c8f83cc9 100644
--- a/library/alloc/src/boxed/thin.rs
+++ b/library/alloc/src/boxed/thin.rs
@@ -171,7 +171,6 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
 /// An opaque representation of `WithHeader<H>` to avoid the
 /// projection invariance of `<T as Pointee>::Metadata`.
 #[repr(transparent)]
-#[allow(dead_code)] // Field only used through `WithHeader` type above.
 struct WithOpaqueHeader(NonNull<u8>);
 
 impl WithOpaqueHeader {