Skip to content

Commit f0b2cca

Browse files
committed
lint links
1 parent ecb2637 commit f0b2cca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,11 @@ struct HandlerInner {
452452
/// have been converted.
453453
check_unstable_expect_diagnostics: bool,
454454

455-
/// Expected [`Diagnostic`][diagnostic::Diagnostic]s store a [`LintExpectationId`] as part of
455+
/// Expected [`Diagnostic`][struct@diagnostic::Diagnostic]s store a [`LintExpectationId`] as part of
456456
/// the lint level. [`LintExpectationId`]s created early during the compilation
457457
/// (before `HirId`s have been defined) are not stable and can therefore not be
458458
/// stored on disk. This buffer stores these diagnostics until the ID has been
459-
/// replaced by a stable [`LintExpectationId`]. The [`Diagnostic`][diagnostic::Diagnostic]s are the
459+
/// replaced by a stable [`LintExpectationId`]. The [`Diagnostic`][struct@diagnostic::Diagnostic]s are the
460460
/// submitted for storage and added to the list of fulfilled expectations.
461461
unstable_expect_diagnostics: Vec<Diagnostic>,
462462

@@ -1384,7 +1384,7 @@ impl HandlerInner {
13841384
!self.emitted_diagnostics.insert(diagnostic_hash)
13851385
};
13861386

1387-
diagnostic.children.extract_if(already_emitted_sub).for_each(|_| {});
1387+
diagnostic.children.extract_from(already_emitted_sub).for_each(|_| {});
13881388

13891389
self.emitter.emit_diagnostic(diagnostic);
13901390
if diagnostic.is_error() {

library/std/src/primitive_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ mod prim_pointer {}
624624
/// array implementations) succeed if the input slice length is the same as the result
625625
/// array length. They optimize especially well when the optimizer can easily determine
626626
/// the slice length, e.g. `<[u8; 4]>::try_from(&slice[4..8]).unwrap()`. Array implements
627-
/// [TryFrom](crate::convert::TryFrom) returning:
627+
/// [TryFrom] returning:
628628
///
629629
/// - `[T; N]` copies from the slice's elements
630630
/// - `&[T; N]` references the original slice's elements

0 commit comments

Comments
 (0)