rust/library/proc_macro/src
Nika Layzell 3e4d3d2a29 proc_macro: Add an expand_expr method to TokenStream
This feature is aimed at giving proc macros access to powers similar to
those used by builtin macros such as `format_args!` or `concat!`. These
macros are able to accept macros in place of string literal parameters,
such as the format string, as they perform recursive macro expansion
while being expanded.

This can be especially useful in many cases thanks to helper macros like
`concat!`, `stringify!` and `include_str!` which are often used to
construct string literals at compile-time in user code.

For now, this method only allows expanding macros which produce
literals, although more expresisons will be supported before the method
is stabilized.
2021-11-12 15:41:40 -05:00
..
bridge proc_macro: Add an expand_expr method to TokenStream 2021-11-12 15:41:40 -05:00
diagnostic.rs Change proc_macro::Diagnostics docs 2021-08-07 23:54:34 +10:00
lib.rs proc_macro: Add an expand_expr method to TokenStream 2021-11-12 15:41:40 -05:00
quote.rs Implement span quoting for proc-macros 2021-05-12 00:51:31 -04:00