File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -452,11 +452,11 @@ struct HandlerInner {
452
452
/// have been converted.
453
453
check_unstable_expect_diagnostics : bool ,
454
454
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
456
456
/// the lint level. [`LintExpectationId`]s created early during the compilation
457
457
/// (before `HirId`s have been defined) are not stable and can therefore not be
458
458
/// 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
460
460
/// submitted for storage and added to the list of fulfilled expectations.
461
461
unstable_expect_diagnostics : Vec < Diagnostic > ,
462
462
@@ -1384,7 +1384,7 @@ impl HandlerInner {
1384
1384
!self . emitted_diagnostics . insert ( diagnostic_hash)
1385
1385
} ;
1386
1386
1387
- diagnostic. children . extract_if ( already_emitted_sub) . for_each ( |_| { } ) ;
1387
+ diagnostic. children . extract_from ( already_emitted_sub) . for_each ( |_| { } ) ;
1388
1388
1389
1389
self . emitter . emit_diagnostic ( diagnostic) ;
1390
1390
if diagnostic. is_error ( ) {
Original file line number Diff line number Diff line change @@ -624,7 +624,7 @@ mod prim_pointer {}
624
624
/// array implementations) succeed if the input slice length is the same as the result
625
625
/// array length. They optimize especially well when the optimizer can easily determine
626
626
/// the slice length, e.g. `<[u8; 4]>::try_from(&slice[4..8]).unwrap()`. Array implements
627
- /// [TryFrom](crate::convert::TryFrom) returning:
627
+ /// [TryFrom] returning:
628
628
///
629
629
/// - `[T; N]` copies from the slice's elements
630
630
/// - `&[T; N]` references the original slice's elements
You can’t perform that action at this time.
0 commit comments