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: support &ByteStr arguments under --bounded-arguments #4805
Requested feature: autoharness support for &ByteStr arguments under --bounded-arguments, beside &[T], &str and &CStr (#4803).
Use case: on a whole-library verify-std run, 104 functions are skipped for a missing Arbitrary implementation on a &ByteStr argument, 88 of them in core (the bstr::ByteStr API and its trait implementations).
#![feature(bstr)]use std::bstr::ByteStr;// Skipped: "Missing Arbitrary implementation for argument(s) s: &std::bstr::ByteStr".// Expected: "Requires --bounded-arguments" without the flag; a harness once it is// passed, and this one fails on the empty byte string.pubfnfirst(s:&ByteStr) -> u8{
s[0]}
A ByteStr is a [u8] with no further invariant, so it can be generated through the existing bounded slice model: ByteStr::new over any_slice_ref, with the slice bound.
Activity
Autoharness: support `&ByteStr` arguments under --bounded-arguments (m…