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.
tt
1 parent 08a98b4 commit 942c40eCopy full SHA for 942c40e
text/0000-macro-lifetimes.md
@@ -18,9 +18,11 @@ a macro is going to need to deal with lifetimes eventually. They're also
18
commonly needed for any macros that need to deal with types in a more granular
19
way than just `ty`.
20
21
-Since a lifetime is a single token, there is currently no way to accept one
22
-without an explicit matcher. Something like `'$lifetime:ident` will fail to
23
-compile.
+Since a lifetime is a single token, the only way to match against a lifetime is
+by capturing it as `tt`. Something like `'$lifetime:ident` would fail to
+compile. This is extremely limiting, as it becomes difficult to sanitize input,
24
+and `tt` is extremely difficult to use in a sequence without using awkward
25
+separators.
26
27
# Detailed design
28
[design]: #detailed-design
0 commit comments