about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/current_version.rs
AgeCommit message (Collapse)AuthorLines
2023-11-10Simplify the `current_rustc_version` macro.Nicholas Nethercote-29/+8
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.
2023-10-26Parse rustc version at compile timeDavid Tolnay-0/+59