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
{{ message }}
Repository navigation
Autoharness: "no candidate type" skip message doesn't distinguish causes #4877
Z-AutoharnessIssue related to autoharness subcommand[C] Feature / EnhancementA new feature request or enhancement to an existing feature.[E] User ExperienceAn UX enhancement for an existing feature. Including deprecation of an existing one.
When autoharness can't instantiate a generic function, the skip message is the same regardless of the cause:
Generic Function: no candidate type (i32, u32, usize, u8, i64, u64, f64, f32, bool, char) satisfies the function's trait bounds
It would help if the message said which bound was unsatisfied, and why the search ended (no implementor, implementors filtered out, or the 256-query limit reached). In a kani autoharness --list run on verify-rust-std (x86_64 Linux), about 4,500 functions are skipped with this message, and right now there's no way to group them by cause.
// Implementors exist but are filtered out (they carry a lifetime or type parameter)pubtraitByteSource{fnbyte_len(&self) -> usize;}impl<'a>ByteSourcefor&'a[u8]{fnbyte_len(&self) -> usize{self.len()}}pubstructWrapper<T>(pubT);impl<T>ByteSourceforWrapper<T>{fnbyte_len(&self) -> usize{
core::mem::size_of::<T>()}}pubfnsource_len<S:ByteSource>(s:S) -> usize{
s.byte_len()}// No implementor at allpubtraitUnimplemented{fnvalue(&self) -> u8;}pubfnneeds_unimplemented<T:Unimplemented>(t:T) -> u8{
t.value()}
On current main (4e31125), cargo kani autoharness -Z autoharness --list skips both source_len and needs_unimplemented with exactly the message quoted above, even though they fail for different reasons.
Z-AutoharnessIssue related to autoharness subcommand[C] Feature / EnhancementA new feature request or enhancement to an existing feature.[E] User ExperienceAn UX enhancement for an existing feature. Including deprecation of an existing one.
Activity