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:
Mara Bos 2020-11-05 10:29:42 +01:00 committed by GitHub
commit 6d7098f543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ impl Ident {
}
/// 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")]
pub fn span(&self) -> Span {
Span(self.0.span())