about summary refs log tree commit diff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-07-30 20:16:04 +0200
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-07-30 20:21:32 +0200
commitfcce07d2d1b07cf4578af65b00a243e743a67f05 (patch)
treea6a9437d26f62040d62921eca2f7aafb5d1233f3 /xtask/src/codegen
parente28ea81b2b68a61b5c5eec3c815172b17256a25f (diff)
downloadrust-fcce07d2d1b07cf4578af65b00a243e743a67f05.tar.gz
rust-fcce07d2d1b07cf4578af65b00a243e743a67f05.zip
Finalize attribute grammar
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/rust.ungram5
1 files changed, 1 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index a97cc80e992..42ef2fb8284 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -182,10 +182,7 @@ Visibility =
   ')')?
 
 Attr =
-  '#' '!'? '[' Path ('=' input:AttrInput)? ']'
-
-AttrInput =
-  Literal | TokenTree
+  '#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
 
 ParenType =
   '(' TypeRef ')'