diff options
| author | est31 <MTest31@outlook.com> | 2022-10-18 17:10:09 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-10-18 17:13:41 +0200 |
| commit | d89fb1dee5bf47ae9bd9051b296da379e01f1755 (patch) | |
| tree | d598b256b2f87e514f0471dee6adaad48a0ead17 | |
| parent | bf286a82e236e065c67909657e3a35d1511d1864 (diff) | |
| download | rust-d89fb1dee5bf47ae9bd9051b296da379e01f1755.tar.gz rust-d89fb1dee5bf47ae9bd9051b296da379e01f1755.zip | |
Stabilize proc_macro::Span::source_text
Splits proc_macro::Span::source_text into a new feature gate and stabilizes it.
| -rw-r--r-- | library/proc_macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index f9c7d3e172c..8001fcff648 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -546,7 +546,7 @@ impl Span { /// Note: The observable result of a macro should only rely on the tokens and /// not on this source text. The result of this function is a best effort to /// be used for diagnostics only. - #[unstable(feature = "proc_macro_span", issue = "54725")] + #[stable(feature = "proc_macro_source_text", since = "CURRENT_RUSTC_VERSION")] pub fn source_text(&self) -> Option<String> { self.0.source_text() } |
