about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-08 17:05:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-10 10:54:21 +1100
commit49908b4d90688bea6edb5ef811d78e61ba3aa5f3 (patch)
treee4ec7ad15d6cb4b3b0986b2d5ae19fe592ce95f7 /tests/rustdoc-js-std/parser-slice-array.js
parentfdaaaf9f923281ab98b865259aa40fbf93d72c7a (diff)
downloadrust-49908b4d90688bea6edb5ef811d78e61ba3aa5f3.tar.gz
rust-49908b4d90688bea6edb5ef811d78e61ba3aa5f3.zip
Simplify the `current_rustc_version` macro.
It currently has the syntax
`current_rustc_version!(env!("CFG_RELEASE"))` where the
`env!("CFG_RELEASE")` part looks like a normal expression but it is
actually parsed and processed by the `current_rustc_version` macro.

The documented rationale for this is that you'll find it if you grep for
`env!("CFG_RELEASE")`. But I think that's of very little use -- I would
personally grep for just "CFG_RELEASE" -- and it complicates the macro,
requiring the use of `syn`.

This commit simplifies the macro.
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions