Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 7e0f9a3

Browse files
committed
Document limitation of passing local variables
1 parent 727987f commit 7e0f9a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,16 @@ fn main() {
146146
- Your macro must expand to either an expression or zero-or-more items, cannot
147147
sometimes be one or the other depending on input ([#9]).
148148
- Type macros are not supported ([#10]).
149+
- Input to an expression macro may not refer to hygienic identifiers of local
150+
variables ([#15]).
149151
- An item macro cannot be used as an item in an impl block ([#18]).
150152

151153
[#2]: https://github.com/dtolnay/proc-macro-hack/issues/2
152154
[#4]: https://github.com/dtolnay/proc-macro-hack/issues/4
153155
[#8]: https://github.com/dtolnay/proc-macro-hack/issues/8
154156
[#9]: https://github.com/dtolnay/proc-macro-hack/issues/9
155157
[#10]: https://github.com/dtolnay/proc-macro-hack/issues/10
158+
[#15]: https://github.com/dtolnay/proc-macro-hack/issues/15
156159
[#18]: https://github.com/dtolnay/proc-macro-hack/issues/18
157160

158161
## License

0 commit comments

Comments
 (0)