about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2025-04-30 15:09:34 +0200
committerMara Bos <m-ou.se@m-ou.se>2025-04-30 15:28:09 +0200
commitd6ae459af8da8f5c751ad5cd8765a48778e419bb (patch)
tree400aa79c812538ffba6d63dead2cc2cba9ee7c4d
parentd2eadb7a94ef8c9deb5137695df33cd1fc5aee92 (diff)
downloadrust-d6ae459af8da8f5c751ad5cd8765a48778e419bb.tar.gz
rust-d6ae459af8da8f5c751ad5cd8765a48778e419bb.zip
Stabilize proc_macro::Span::{file, local_file}.
-rw-r--r--library/proc_macro/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs
index 36a1c57b020..7dbb9dadd88 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -544,7 +544,7 @@ impl Span {
     ///
     /// This might not correspond to a valid file system path.
     /// It might be remapped, or might be an artificial path such as `"<macro expansion>"`.
-    #[unstable(feature = "proc_macro_span", issue = "54725")]
+    #[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
     pub fn file(&self) -> String {
         self.0.file()
     }
@@ -554,7 +554,7 @@ impl Span {
     /// This is the actual path on disk. It is unaffected by path remapping.
     ///
     /// This path should not be embedded in the output of the macro; prefer `file()` instead.
-    #[unstable(feature = "proc_macro_span", issue = "54725")]
+    #[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
     pub fn local_file(&self) -> Option<PathBuf> {
         self.0.local_file().map(|s| PathBuf::from(s))
     }