about summary refs log tree commit diff
path: root/src/test/ui/numeric/integer-literal-suffix-inference.rs
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2021-07-18 15:53:06 -0400
committerNika Layzell <nika@thelayzells.com>2021-11-12 15:41:40 -0500
commit3e4d3d2a295d87b2d7ac45a06a727605e8ea21db (patch)
tree61acbf038ef7994315ff507e7195b93aa0765a8f /src/test/ui/numeric/integer-literal-suffix-inference.rs
parent800a156c1ef0c16eb80f57536d96fbf6629fb3b1 (diff)
downloadrust-3e4d3d2a295d87b2d7ac45a06a727605e8ea21db.tar.gz
rust-3e4d3d2a295d87b2d7ac45a06a727605e8ea21db.zip
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.
Diffstat (limited to 'src/test/ui/numeric/integer-literal-suffix-inference.rs')
0 files changed, 0 insertions, 0 deletions