mirror of https://github.com/rust-lang/rust.git
Rollup merge of #78465 - est31:proc_macro_to_string, r=jyn514
Change as_str → to_string in proc_macro::Ident::span() docs There is no `as_str` function on Ident any more. Also change it to an intra doc link while we're at it.
This commit is contained in:
commit
6d7098f543
|
@ -882,7 +882,7 @@ impl Ident {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the span of this `Ident`, encompassing the entire string returned
|
/// Returns the span of this `Ident`, encompassing the entire string returned
|
||||||
/// by `as_str`.
|
/// by [`to_string`](Self::to_string).
|
||||||
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
|
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
|
||||||
pub fn span(&self) -> Span {
|
pub fn span(&self) -> Span {
|
||||||
Span(self.0.span())
|
Span(self.0.span())
|
||||||
|
|
Loading…
Reference in New Issue