Rollup merge of #71574 - jplatte:patch-2, r=petrochenkov
proc_macro: Fix since attributes for new Span methods Added in #69041, took a while to merge so the since attributes went out of date.
This commit is contained in:
commit
aa89e91de6
@ -351,14 +351,14 @@ impl Span {
|
|||||||
|
|
||||||
/// Creates a new span with the same line/column information as `self` but
|
/// Creates a new span with the same line/column information as `self` but
|
||||||
/// that resolves symbols as though it were at `other`.
|
/// that resolves symbols as though it were at `other`.
|
||||||
#[stable(feature = "proc_macro_span_resolved_at", since = "1.43.0")]
|
#[stable(feature = "proc_macro_span_resolved_at", since = "1.45.0")]
|
||||||
pub fn resolved_at(&self, other: Span) -> Span {
|
pub fn resolved_at(&self, other: Span) -> Span {
|
||||||
Span(self.0.resolved_at(other.0))
|
Span(self.0.resolved_at(other.0))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a new span with the same name resolution behavior as `self` but
|
/// Creates a new span with the same name resolution behavior as `self` but
|
||||||
/// with the line/column information of `other`.
|
/// with the line/column information of `other`.
|
||||||
#[stable(feature = "proc_macro_span_located_at", since = "1.43.0")]
|
#[stable(feature = "proc_macro_span_located_at", since = "1.45.0")]
|
||||||
pub fn located_at(&self, other: Span) -> Span {
|
pub fn located_at(&self, other: Span) -> Span {
|
||||||
other.resolved_at(*self)
|
other.resolved_at(*self)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user