rust/library/proc_macro/src/bridge
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
..
buffer.rs proc_macro/bridge: Remove dead code Slice type 2021-07-01 10:20:57 -07:00
client.rs Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
closure.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
handle.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
mod.rs proc_macro: Add an expand_expr method to TokenStream 2021-11-12 15:41:40 -05:00
rpc.rs Fix a few misspellings. 2021-06-25 13:18:56 -07:00
scoped_cell.rs Bump bootstrap compiler version 2020-11-19 19:23:36 -05:00
server.rs Add -Z proc-macro-backtrace to allow showing proc-macro panics 2020-08-30 22:17:24 -04:00