diff options
author | Joel Galenson <jgalenson@google.com> | 2021-05-19 17:24:08 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-05-19 17:24:08 -0700 |
commit | fdd477442016fa3579b7b97a42e52e2340149ba7 (patch) | |
tree | 55e4cdf9420132a0989e9bd5f7d78c533a2b95ec /src/path.rs | |
parent | 378cd52597b55bd262c21722d1c2639c7a4e21a2 (diff) | |
download | syn-fdd477442016fa3579b7b97a42e52e2340149ba7.tar.gz |
Upgrade rust/crates/syn to 1.0.72
Test: make
Change-Id: Ie700357fdff8bb1a8c760adb67274f6b91c42eb3
Diffstat (limited to 'src/path.rs')
-rw-r--r-- | src/path.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/path.rs b/src/path.rs index df1788db..37e41bc4 100644 --- a/src/path.rs +++ b/src/path.rs @@ -292,6 +292,18 @@ pub mod parsing { return Ok(Expr::Lit(lit)); } + #[cfg(feature = "full")] + { + if input.peek(Ident) { + let ident: Ident = input.parse()?; + return Ok(Expr::Path(ExprPath { + attrs: Vec::new(), + qself: None, + path: Path::from(ident), + })); + } + } + if input.peek(token::Brace) { #[cfg(feature = "full")] { |