Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit dc527d9

Browse files
authored
Unrolled build for rust-lang#118383
Rollup merge of rust-lang#118383 - shepmaster:unused-tuple-struct-field-cleanup-stdlib, r=m-ou-se Address unused tuple struct fields in the standard library
2 parents f440b5f + 115eac0 commit dc527d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/boxed/thin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
171171
/// An opaque representation of `WithHeader<H>` to avoid the
172172
/// projection invariance of `<T as Pointee>::Metadata`.
173173
#[repr(transparent)]
174+
#[allow(unused_tuple_struct_fields)] // Field only used through `WithHeader` type above.
174175
struct WithOpaqueHeader(NonNull<u8>);
175176

176177
impl WithOpaqueHeader {

0 commit comments

Comments
 (0)