Skip to content

Commit 2afc960

Browse files
committed
Auto merge of #143057 - matthiaskrgr:rollup-bulih8o, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - rust-lang/rust#124595 (Suggest cloning `Arc` moved into closure) - rust-lang/rust#139594 (Simplify `ObligationCauseCode::IfExpression`) - rust-lang/rust#141311 (make `tidy-alphabetical` use a natural sort) - rust-lang/rust#141648 ([rustdoc] Do not emit redundant_explicit_links lint if the doc comment comes from expansion) - rust-lang/rust#142285 (tests: Do not run afoul of asm.validity.non-exhaustive in input-stats) - rust-lang/rust#142393 (Don't give APITs names with macro expansion placeholder fragments in it) - rust-lang/rust#142884 (StableMIR: Add method to retrieve body of coroutine) - rust-lang/rust#142981 (Make missing lifetime suggestion verbose) r? `@ghost` `@rustbot` modify labels: rollup
2 parents a035628 + 7b821d6 commit 2afc960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/doc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ impl Fragments<'_> {
765765
/// get the span for the markdown range. Note that this function is not cheap, use it with
766766
/// caution.
767767
#[must_use]
768-
fn span(&self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
769-
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments)
768+
fn span(self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
769+
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments).map(|(sp, _)| sp)
770770
}
771771
}
772772

0 commit comments

Comments
 (0)