@@ -341,7 +341,7 @@ fn construct(
341
341
fn construct_take_rest ( fields : & Fields ) -> Result < TokenStream > {
342
342
construct ( fields, |idx, field| {
343
343
determine_field_constructor ( field) . map ( |field_constructor| match field_constructor {
344
- FieldConstructor :: Default => quote ! ( Default :: default ( ) ) ,
344
+ FieldConstructor :: Default => quote ! ( :: core :: default :: Default :: default ( ) ) ,
345
345
FieldConstructor :: Arbitrary => {
346
346
if idx + 1 == fields. len ( ) {
347
347
quote ! { arbitrary:: Arbitrary :: arbitrary_take_rest( u) ? }
@@ -392,7 +392,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> {
392
392
size_hint_fields ( fields) . map ( |hint| {
393
393
quote ! {
394
394
#[ inline]
395
- fn size_hint( depth: usize ) -> ( usize , Option <usize >) {
395
+ fn size_hint( depth: usize ) -> ( usize , :: core :: option :: Option <usize >) {
396
396
arbitrary:: size_hint:: recursion_guard( depth, |depth| #hint)
397
397
}
398
398
}
@@ -414,7 +414,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> {
414
414
. map ( |variants| {
415
415
quote ! {
416
416
#[ inline]
417
- fn size_hint( depth: usize ) -> ( usize , Option <usize >) {
417
+ fn size_hint( depth: usize ) -> ( usize , :: core :: option :: Option <usize >) {
418
418
arbitrary:: size_hint:: and(
419
419
<u32 as arbitrary:: Arbitrary >:: size_hint( depth) ,
420
420
arbitrary:: size_hint:: recursion_guard( depth, |depth| {
@@ -429,7 +429,7 @@ fn gen_size_hint_method(input: &DeriveInput) -> Result<TokenStream> {
429
429
430
430
fn gen_constructor_for_field ( field : & Field ) -> Result < TokenStream > {
431
431
let ctor = match determine_field_constructor ( field) ? {
432
- FieldConstructor :: Default => quote ! ( Default :: default ( ) ) ,
432
+ FieldConstructor :: Default => quote ! ( :: core :: default :: Default :: default ( ) ) ,
433
433
FieldConstructor :: Arbitrary => quote ! ( arbitrary:: Arbitrary :: arbitrary( u) ?) ,
434
434
FieldConstructor :: With ( function_or_closure) => quote ! ( ( #function_or_closure) ( u) ?) ,
435
435
FieldConstructor :: Value ( value) => quote ! ( #value) ,
0 commit comments