Skip to content

Commit d6ae459

Browse files
committed
Stabilize proc_macro::Span::{file, local_file}.
1 parent d2eadb7 commit d6ae459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/proc_macro/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl Span {
544544
///
545545
/// This might not correspond to a valid file system path.
546546
/// It might be remapped, or might be an artificial path such as `"<macro expansion>"`.
547-
#[unstable(feature = "proc_macro_span", issue = "54725")]
547+
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
548548
pub fn file(&self) -> String {
549549
self.0.file()
550550
}
@@ -554,7 +554,7 @@ impl Span {
554554
/// This is the actual path on disk. It is unaffected by path remapping.
555555
///
556556
/// This path should not be embedded in the output of the macro; prefer `file()` instead.
557-
#[unstable(feature = "proc_macro_span", issue = "54725")]
557+
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
558558
pub fn local_file(&self) -> Option<PathBuf> {
559559
self.0.local_file().map(|s| PathBuf::from(s))
560560
}

0 commit comments

Comments
 (0)