Skip to content

Commit a3faba7

Browse files
committed
Enable GenericArgument::Constraint parsing in non-full mode
1 parent 9065157 commit a3faba7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/path.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)