@@ -288,16 +288,13 @@ pub(crate) mod parsing {
288288 use crate :: expr:: ExprBlock ;
289289 use crate :: expr:: { Expr , ExprPath } ;
290290 use crate :: ext:: IdentExt as _;
291- #[ cfg( feature = "full" ) ]
292291 use crate :: generics:: TypeParamBound ;
293292 use crate :: ident:: Ident ;
294293 use crate :: lifetime:: Lifetime ;
295294 use crate :: lit:: Lit ;
296295 use crate :: parse:: { Parse , ParseStream } ;
297- #[ cfg( feature = "full" ) ]
298- use crate :: path:: Constraint ;
299296 use crate :: path:: {
300- AngleBracketedGenericArguments , AssocConst , AssocType , GenericArgument ,
297+ AngleBracketedGenericArguments , AssocConst , AssocType , Constraint , GenericArgument ,
301298 ParenthesizedGenericArguments , Path , PathArguments , PathSegment , QSelf ,
302299 } ;
303300 use crate :: punctuated:: Punctuated ;
@@ -363,7 +360,6 @@ pub(crate) mod parsing {
363360 } ;
364361 }
365362
366- #[ cfg( feature = "full" ) ]
367363 if let Some ( colon_token) = input. parse :: < Option < Token ! [ : ] > > ( ) ? {
368364 let segment = ty. path . segments . pop ( ) . unwrap ( ) . into_value ( ) ;
369365 return Ok ( GenericArgument :: Constraint ( Constraint {
0 commit comments