From de0afc8fc4f2f1f64586bff1644645b18ddb5778 Mon Sep 17 00:00:00 2001 From: Peter Lyons Kehl Date: Thu, 16 Apr 2026 12:27:14 -0700 Subject: [PATCH] Span::file and Span::local_file suggest to use Rust 1.88 when using stable --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 616c110..29236a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -516,6 +516,8 @@ impl Span { /// /// This might not correspond to a valid file system path. It might be /// remapped, or might be an artificial path such as `""`. + /// + /// With stable Rust suggest to use this with Rust 1.88 or newer. #[cfg(span_locations)] #[cfg_attr(docsrs, doc(cfg(feature = "span-locations")))] pub fn file(&self) -> String { @@ -528,6 +530,8 @@ impl Span { /// /// This path should not be embedded in the output of the macro; prefer /// `file()` instead. + /// + /// With stable Rust suggest to use this with Rust 1.88 or newer. #[cfg(span_locations)] #[cfg_attr(docsrs, doc(cfg(feature = "span-locations")))] pub fn local_file(&self) -> Option {