You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a library I work on, we add Derive traits on public structs so that our clients can use them, we fairly often don't need them in our internal work, and we don't want to keep adding tests just to verify that default trait works.
The result is that a lot of our coverage for code like this:
#[derive(Debug,PartialEq,Eq,Clone,Hash,PartialOrd,Ord,Copy)]#[non_exhaustive]pubenumExtensionType{/// Transform Extension Type marked as `t`.Transform,/// Unicode Extension Type marked as `u`.Unicode,/// Private Extension Type marked as `x`.Private,/// All other extension types.Other(u8),}
gets flagged with:
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::fmt::Debug>::fmt
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::fmt::Debug>::fmt
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::PartialEq>::eq
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::PartialEq>::eq
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::clone::Clone>::clone
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::clone::Clone>::clone
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::hash::Hash>::hash::<>
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::hash::Hash>::hash::<>
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::PartialOrd>::partial_cmp
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::PartialOrd>::partial_cmp
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::Ord>::cmp
Unexecuted instantiation: <icu_locid::extensions::ExtensionType as core::cmp::Ord>::cmp
which makes the coverage noisy and less useful to notice actual coverage gaps.
How can we disable coverage for default derived traits?
The text was updated successfully, but these errors were encountered:
In a library I work on, we add Derive traits on public structs so that our clients can use them, we fairly often don't need them in our internal work, and we don't want to keep adding tests just to verify that default trait works.
The result is that a lot of our coverage for code like this:
gets flagged with:
which makes the coverage noisy and less useful to notice actual coverage gaps.
How can we disable coverage for default derived traits?
The text was updated successfully, but these errors were encountered: