Move proc-macro-srv RUSTC_VERSION fetching from include to env var

This commit is contained in:
Lukas Wirth 2024-06-30 15:28:31 +02:00
parent 21a3d01875
commit 23b043a622
2 changed files with 3 additions and 16 deletions

View file

@ -48,8 +48,7 @@ use span::Span;
use crate::server::TokenStream;
// see `build.rs`
include!(concat!(env!("OUT_DIR"), "/rustc_version.rs"));
pub const RUSTC_VERSION_STRING: &str = env!("RUSTC_VERSION");
trait ProcMacroSrvSpan: Copy {
type Server: proc_macro::bridge::server::Server<TokenStream = TokenStream<Self>>;