about summary refs log tree commit diff
path: root/src/test/ui/proc-macro/expand-expr.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-132/+0
2022-11-14Update src/test/ui/proc-macro/expand-expr.rsclubby789-2/+2
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
2022-11-14Fix using `include_bytes` in pattern positionclubby789-1/+7
2022-11-11Introduce `ExprKind::IncludedBytes`clubby789-1/+6
2022-06-02Revert #96682.Nicholas Nethercote-12/+12
The change was "Show invisible delimiters (within comments) when pretty printing". It's useful to show these delimiters, but is a breaking change for some proc macros. Fixes #97608.
2022-05-04Show invisible delimeters (within comments) when pretty printing.Nicholas Nethercote-12/+12
2021-11-12proc_macro: Add an expand_expr method to TokenStreamNika Layzell-0/+121
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.