about summary refs log tree commit diff
path: root/src/libsyntax_ext/deriving
diff options
context:
space:
mode:
authorJulien Cretin <cretin@google.com>2019-05-29 20:05:43 +0200
committerJulien Cretin <cretin@google.com>2019-06-23 01:30:41 +0200
commitb8106b59d2faaea57301ad000d7787b70c5b2985 (patch)
tree6d16b0a874d2fea0557cd3c5f62c2c45147f40e7 /src/libsyntax_ext/deriving
parent305930cffeac1da0fd73a08d9f5680e4a49bfb9f (diff)
downloadrust-b8106b59d2faaea57301ad000d7787b70c5b2985.tar.gz
rust-b8106b59d2faaea57301ad000d7787b70c5b2985.zip
Fix meta-variable binding errors in macros
The errors are either:
- The meta-variable used in the right-hand side is not bound (or defined) in the
  left-hand side.
- The meta-variable used in the right-hand side does not repeat with the same
  kleene operator as its binder in the left-hand side. Either it does not repeat
  enough, or it uses a different operator somewhere.

This change should have no semantic impact.
Diffstat (limited to 'src/libsyntax_ext/deriving')
-rw-r--r--src/libsyntax_ext/deriving/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs
index 1fe6094fca6..e75eff2e857 100644
--- a/src/libsyntax_ext/deriving/mod.rs
+++ b/src/libsyntax_ext/deriving/mod.rs
@@ -88,7 +88,7 @@ macro_rules! derive_traits {
                         )
                     }),
                 );
-            )*
+            )+
         }
     }
 }