We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e523c36 + ed8d784 commit 7e8358aCopy full SHA for 7e8358a
src/path.rs
@@ -368,7 +368,6 @@ pub(crate) mod parsing {
368
return Ok(Expr::Lit(lit));
369
}
370
371
- #[cfg(feature = "full")]
372
if input.peek(Ident) {
373
let ident: Ident = input.parse()?;
374
return Ok(Expr::Path(ExprPath {
@@ -694,6 +693,14 @@ pub(crate) mod printing {
694
693
GenericArgument::Const(expr) => match expr {
695
Expr::Lit(expr) => expr.to_tokens(tokens),
696
+ Expr::Path(expr)
697
+ if expr.attrs.is_empty()
698
+ && expr.qself.is_none()
699
+ && expr.path.get_ident().is_some() =>
700
+ {
701
+ expr.to_tokens(tokens);
702
+ }
703
+
704
#[cfg(feature = "full")]
705
Expr::Block(expr) => expr.to_tokens(tokens),
706
0 commit comments