Closed tyranron closed 2 months ago
Resolves #400
For ! never type used in trait signatures, rustc emits unreachable_code warning ignoring the #[automatically_derived] attribute.
!
rustc
unreachable_code
#[automatically_derived]
Add #[allow(unreachable_code)] to generated impls to suppress such warnings for ! and similar types.
#[allow(unreachable_code)]
impl
Resolves #400
Synopsis
For
!
never type used in trait signatures,rustc
emitsunreachable_code
warning ignoring the#[automatically_derived]
attribute.Solution
Add
#[allow(unreachable_code)]
to generatedimpl
s to suppress such warnings for!
and similar types.Checklist
Documentation is updated(not required)