Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zerocopy/zerocopy-derive/src/derive/into_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ fn derive_into_bytes_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Er
let error_message = "requires --cfg zerocopy_derive_union_into_bytes;
please let us know you use this feature: https://github.com/google/zerocopy/discussions/1802";
quote!(
#[allow(unused_attributes, unexpected_cfgs)]
#[allow(unexpected_cfgs)]
const _: () = {
#[cfg(not(zerocopy_derive_union_into_bytes))]
#core::compile_error!(#error_message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::TryFromBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down Expand Up @@ -43,7 +42,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromZeros for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand All @@ -60,7 +58,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::TryFromBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down Expand Up @@ -43,7 +42,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromZeros for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand All @@ -60,7 +58,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::TryFromBytes for Foo
where
Expand Down Expand Up @@ -45,7 +44,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
enum ẕa {}
#[allow(
Expand All @@ -59,7 +57,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::HasTag<
::zerocopy::project_clients::TryFromBytesDerive,
Expand All @@ -80,7 +77,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::HasField<
::zerocopy::project_clients::TryFromBytesDerive,
Expand Down Expand Up @@ -119,7 +115,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl<
___ZcAliasing: ::zerocopy::invariant::Aliasing,
Expand Down Expand Up @@ -151,7 +146,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl<
___ZcAliasing: ::zerocopy::invariant::Aliasing,
Expand Down Expand Up @@ -185,7 +179,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromZeros for Foo
where
Expand All @@ -205,7 +198,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::TryFromBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand All @@ -35,7 +34,6 @@ const _: () = {
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::FromZeros for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::Immutable for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo {
fn only_derive_is_allowed_to_implement_this_trait() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl<T, const N: usize> ::zerocopy::IntoBytes for Foo<T, { N }>
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::IntoBytes for Foo
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl<Trailing> ::zerocopy::IntoBytes for Foo<Trailing>
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl<T, U> ::zerocopy::KnownLayout for Foo<T, U>
where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
clippy::missing_inline_in_public_items,
)]
#[deny(ambiguous_associated_items)]
#[automatically_derived]
const _: () = {
unsafe impl ::zerocopy::KnownLayout for Foo
where
Expand Down
Loading
Loading