Rollup merge of #106064 - lukas-code:outlives-macro, r=cjgillot
Partially fix `explicit_outlives_requirements` lint in macros Show the suggestion if and only if the bounds are from the same source context. fixes https://github.com/rust-lang/rust/issues/106044 fixes https://github.com/rust-lang/rust/issues/106063
This commit is contained in:
commit
18bf19c3a9
7 changed files with 458 additions and 88 deletions
|
@ -796,6 +796,9 @@ impl Span {
|
|||
|
||||
/// Returns a `Span` that would enclose both `self` and `end`.
|
||||
///
|
||||
/// Note that this can also be used to extend the span "backwards":
|
||||
/// `start.to(end)` and `end.to(start)` return the same `Span`.
|
||||
///
|
||||
/// ```text
|
||||
/// ____ ___
|
||||
/// self lorem ipsum end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue