@@ -460,7 +460,7 @@ impl Definition {
460460 syn:: GenericParam :: Const ( _) => return None ,
461461 } ;
462462 Some ( quote ! {
463- :: std :: marker:: PhantomData <:: std:: sync:: atomic:: AtomicPtr <Box <#ty>>>
463+ :: core :: marker:: PhantomData <:: std:: sync:: atomic:: AtomicPtr <std :: boxed :: Box <#ty>>>
464464 } )
465465 } ) ;
466466 quote ! { __Phantom( #( #phantom_params) , * ) }
@@ -487,7 +487,7 @@ impl Definition {
487487
488488 quote ! {
489489 #[ automatically_derived]
490- #[ derive( Clone , Copy , Debug ) ]
490+ #[ derive( :: std :: clone :: Clone , :: core :: marker :: Copy , :: std :: fmt :: Debug ) ]
491491 #[ doc = #enum_doc]
492492 #vis enum #enum_ident #enum_gens {
493493 #( #[ doc( hidden) ] #variants_idents( #variant_gens_pars) , ) *
@@ -523,12 +523,12 @@ impl Definition {
523523
524524 quote ! { {
525525 const SUPPRESS_DEAD_CODE : ( ) = {
526- let none = Option :: <#ident #const_gens>:: None ;
526+ let none = :: core :: option :: Option :: <#ident #const_gens>:: None ;
527527 match none {
528- Some ( unreachable) => {
528+ :: core :: option :: Option :: Some ( unreachable) => {
529529 #( let _ = unreachable. #fields; ) *
530530 }
531- None => { }
531+ :: core :: option :: Option :: None => { }
532532 }
533533 } ;
534534 let _ = SUPPRESS_DEAD_CODE ;
@@ -715,8 +715,8 @@ impl Definition {
715715 for #ty #ty_generics
716716 #where_clause
717717 {
718- fn name( _ : & Self :: TypeInfo ) -> Option <& ' static str > {
719- Some ( #name)
718+ fn name( _ : & Self :: TypeInfo ) -> :: core :: option :: Option <& ' static :: core :: primitive :: str > {
719+ :: std :: option :: Option :: Some ( #name)
720720 }
721721
722722 fn meta<' r>(
@@ -784,14 +784,14 @@ impl Definition {
784784 type Context = #context;
785785 type TypeInfo = ( ) ;
786786
787- fn type_name<' __i>( & self , info: & ' __i Self :: TypeInfo ) -> Option <& ' __i str > {
787+ fn type_name<' __i>( & self , info: & ' __i Self :: TypeInfo ) -> std :: option :: Option <& ' __i :: core :: primitive :: str > {
788788 <Self as :: juniper:: GraphQLType <#scalar>>:: name( info)
789789 }
790790
791791 fn resolve_field(
792792 & self ,
793793 info: & Self :: TypeInfo ,
794- field: & str ,
794+ field: & :: core :: primitive :: str ,
795795 args: & :: juniper:: Arguments <' _, #scalar>,
796796 executor: & :: juniper:: Executor <' _, ' _, Self :: Context , #scalar>,
797797 ) -> :: juniper:: ExecutionResult <#scalar> {
@@ -805,15 +805,15 @@ impl Definition {
805805 & self ,
806806 context: & Self :: Context ,
807807 info: & Self :: TypeInfo ,
808- ) -> String {
808+ ) -> :: std :: string :: String {
809809 #downcast_check
810810 }
811811
812812 fn resolve_into_type(
813813 & self ,
814814 info: & Self :: TypeInfo ,
815- type_name: & str ,
816- _: Option <& [ :: juniper:: Selection <' _, #scalar>] >,
815+ type_name: & :: core :: primitive :: str ,
816+ _: :: core :: option :: Option <& [ :: juniper:: Selection <' _, #scalar>] >,
817817 executor: & :: juniper:: Executor <' _, ' _, Self :: Context , #scalar>,
818818 ) -> :: juniper:: ExecutionResult <#scalar> {
819819 #downcast
@@ -862,21 +862,21 @@ impl Definition {
862862 fn resolve_field_async<' b>(
863863 & ' b self ,
864864 info: & ' b Self :: TypeInfo ,
865- field: & ' b str ,
865+ field: & ' b :: core :: primitive :: str ,
866866 args: & ' b :: juniper:: Arguments <' _, #scalar>,
867867 executor: & ' b :: juniper:: Executor <' _, ' _, Self :: Context , #scalar>,
868868 ) -> :: juniper:: BoxFuture <' b, :: juniper:: ExecutionResult <#scalar>> {
869869 match field {
870870 #( #fields_resolvers ) *
871- _ => Box :: pin( async move { #no_field_err } ) ,
871+ _ => :: std :: boxed :: Box :: pin( async move { #no_field_err } ) ,
872872 }
873873 }
874874
875875 fn resolve_into_type_async<' b>(
876876 & ' b self ,
877877 info: & ' b Self :: TypeInfo ,
878- type_name: & str ,
879- _: Option <& ' b [ :: juniper:: Selection <' b, #scalar>] >,
878+ type_name: & :: core :: primitive :: str ,
879+ _: :: core :: option :: Option <& ' b [ :: juniper:: Selection <' b, #scalar>] >,
880880 executor: & ' b :: juniper:: Executor <' b, ' b, Self :: Context , #scalar>
881881 ) -> :: juniper:: BoxFuture <' b, :: juniper:: ExecutionResult <#scalar>> {
882882 #downcast
@@ -1360,13 +1360,13 @@ impl Definition {
13601360 generics
13611361 . make_where_clause ( )
13621362 . predicates
1363- . push ( parse_quote ! { #self_ty: Sync } ) ;
1363+ . push ( parse_quote ! { #self_ty: :: core :: marker :: Sync } ) ;
13641364
13651365 if scalar. is_generic ( ) {
13661366 generics
13671367 . make_where_clause ( )
13681368 . predicates
1369- . push ( parse_quote ! { #scalar: Send + Sync } ) ;
1369+ . push ( parse_quote ! { #scalar: :: core :: marker :: Send + :: core :: marker :: Sync } ) ;
13701370 }
13711371 }
13721372
0 commit comments