Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/proc-macro-srv/build.rs2
-rw-r--r--crates/proc-macro-srv/proc-macro-test/build.rs3
-rw-r--r--crates/proc-macro-srv/proc-macro-test/src/lib.rs3
3 files changed, 3 insertions, 5 deletions
diff --git a/crates/proc-macro-srv/build.rs b/crates/proc-macro-srv/build.rs
index 44511d44b3..9a17cfc9f3 100644
--- a/crates/proc-macro-srv/build.rs
+++ b/crates/proc-macro-srv/build.rs
@@ -1,7 +1,7 @@
//! Determine rustc version `proc-macro-srv` (and thus the sysroot ABI) is
//! build with and make it accessible at runtime for ABI selection.
-use std::{env, fs::File, io::Write, path::PathBuf, process::Command};
+use std::{env, process::Command};
fn main() {
println!("cargo::rustc-check-cfg=cfg(rust_analyzer)");
diff --git a/crates/proc-macro-srv/proc-macro-test/build.rs b/crates/proc-macro-srv/proc-macro-test/build.rs
index 6a0ae362d8..fe1fce3da7 100644
--- a/crates/proc-macro-srv/proc-macro-test/build.rs
+++ b/crates/proc-macro-srv/proc-macro-test/build.rs
@@ -121,6 +121,5 @@ fn main() {
// This file is under `target_dir` and is already under `OUT_DIR`.
let artifact_path = artifact_path.expect("no dylib for proc-macro-test-impl found");
- let info_path = out_dir.join("proc_macro_test_location.txt");
- fs::write(info_path, artifact_path.to_str().unwrap()).unwrap();
+ println!("cargo::rustc-env=PROC_MACRO_TEST_LOCATION={}", artifact_path.display());
}
diff --git a/crates/proc-macro-srv/proc-macro-test/src/lib.rs b/crates/proc-macro-srv/proc-macro-test/src/lib.rs
index 2edf23a634..6464adb2ca 100644
--- a/crates/proc-macro-srv/proc-macro-test/src/lib.rs
+++ b/crates/proc-macro-srv/proc-macro-test/src/lib.rs
@@ -1,4 +1,3 @@
//! Exports a few trivial procedural macros for testing.
-pub static PROC_MACRO_TEST_LOCATION: &str =
- include_str!(concat!(env!("OUT_DIR"), "/proc_macro_test_location.txt"));
+pub static PROC_MACRO_TEST_LOCATION: &str = env!("PROC_MACRO_TEST_LOCATION");