Parse rustc version at compile time

This commit is contained in:
David Tolnay 2023-10-26 17:18:21 -07:00
parent dab715641e
commit b7debe34e6
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
9 changed files with 124 additions and 61 deletions

View file

@ -15,6 +15,7 @@ use synstructure::decl_derive;
use proc_macro::TokenStream;
mod current_version;
mod diagnostics;
mod hash_stable;
mod lift;
@ -25,6 +26,11 @@ mod symbols;
mod type_foldable;
mod type_visitable;
#[proc_macro]
pub fn current_rustc_version(input: TokenStream) -> TokenStream {
current_version::current_version(input)
}
#[proc_macro]
pub fn rustc_queries(input: TokenStream) -> TokenStream {
query::rustc_queries(input)