mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
324 B
Rust
13 lines
324 B
Rust
#![feature(proc_macro_tracked_env)]
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro]
|
|
pub fn access_env_vars(_: TokenStream) -> TokenStream {
|
|
let _ = tracked_env::var("EXISTING_PROC_MACRO_ENV");
|
|
let _ = tracked_env::var("NONEXISTENT_PROC_MACEO_ENV");
|
|
TokenStream::new()
|
|
}
|