Skip to content

Commit b61c1d6

Browse files
committed
Fixed item links
1 parent 1a376cc commit b61c1d6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compiler/rustc_middle/src/ty/instance.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl<'tcx> Instance<'tcx> {
411411
tcx.resolve_instance(tcx.erase_regions(param_env.and((def_id, args))))
412412
}
413413

414-
/// Behaves exactly like [`resolve`], but panics on error.
414+
/// Behaves exactly like [`Self::resolve`], but panics on error.
415415
pub fn expect_resolve(
416416
tcx: TyCtxt<'tcx>,
417417
param_env: ty::ParamEnv<'tcx>,
@@ -543,7 +543,7 @@ impl<'tcx> Instance<'tcx> {
543543
}
544544
}
545545

546-
/// Returns an instance representing the function [`drop_in_place`] with its generic argument set to `ty`.
546+
/// Returns an instance representing the function [`core::ptr::drop_in_place`] with its generic argument set to `ty`.
547547
pub fn resolve_drop_in_place(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> ty::Instance<'tcx> {
548548
let def_id = tcx.require_lang_item(LangItem::DropInPlace, None);
549549
let args = tcx.mk_args(&[ty.into()]);
@@ -642,7 +642,7 @@ impl<'tcx> Instance<'tcx> {
642642
/// Instantiates a generic value `v`(like `Vec<T>`), substituting its generic arguments and turning it into a concrete one(like `i32`, or `Vec<f32>`).
643643
/// If a value is not generic, this will do nothing.
644644
/// This function does not erase lifetimes, so a value like `&'a i32` will remain unchanged.
645-
/// For monomorphizing generics while also erasing lifetimes, try using [`instantiate_mir_and_normalize_erasing_regions`].
645+
/// For monomorphizing generics while also erasing lifetimes, try using [`Self::instantiate_mir_and_normalize_erasing_regions`].
646646
pub fn instantiate_mir<T>(&self, tcx: TyCtxt<'tcx>, v: EarlyBinder<&T>) -> T
647647
where
648648
T: TypeFoldable<TyCtxt<'tcx>> + Copy,
@@ -658,8 +658,8 @@ impl<'tcx> Instance<'tcx> {
658658
/// Instantiates a generic value `v`(like `Vec<T>`), substituting its generic arguments and turning it into a concrete one(like `i32`, or `Vec<f32>`).
659659
/// This function erases lifetimes, so a value like `&'a i32` will become `&ReErased i32`.
660660
/// If a value is not generic and has no lifetime info, this will do nothing.
661-
/// For monomorphizing generics while preserving lifetimes, use [`instantiate_mir`].
662-
/// This function will panic if normalization fails. If you want to handle normalization errors, use [`try_instantiate_mir_and_normalize_erasing_regions`]
661+
/// For monomorphizing generics while preserving lifetimes, use [`Self::instantiate_mir`].
662+
/// This function will panic if normalization fails. If you want to handle normalization errors, use [`Self::try_instantiate_mir_and_normalize_erasing_regions`]
663663
#[inline(always)]
664664
pub fn instantiate_mir_and_normalize_erasing_regions<T>(
665665
&self,
@@ -677,7 +677,7 @@ impl<'tcx> Instance<'tcx> {
677677
}
678678
}
679679

680-
/// A version of [`instantiate_mir_and_normalize_erasing_regions`] which will returns a [`NormalizationError`] on normalization failure instead of panicking.
680+
/// A version of [`Self::instantiate_mir_and_normalize_erasing_regions`] which will returns a [`NormalizationError`] on normalization failure instead of panicking.
681681
#[inline(always)]
682682
pub fn try_instantiate_mir_and_normalize_erasing_regions<T>(
683683
&self,

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ impl<'tcx> Ty<'tcx> {
24472447
self.is_ref() || self.is_unsafe_ptr() || self.is_fn_ptr()
24482448
}
24492449

2450-
/// Checks if this type is an [`alloc::boxed::Box`].
2450+
/// Checks if this type is an [`Box`].
24512451
#[inline]
24522452
pub fn is_box(self) -> bool {
24532453
match self.kind() {

compiler/rustc_target/src/abi/call/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ impl RiscvInterruptKind {
731731
/// should be passed in order to respect the native ABI.
732732
///
733733
/// Signature contained within this function does not have to match the one present in MIR.
734-
/// Certain attributtes, like `#[track_caller]` can introduce addtional arguments, which are present in [`FnAbi`], but not in [`rustc_middle::ty::FnSig`].
734+
/// Certain attributtes, like `#[track_caller]` can introduce addtional arguments, which are present in [`FnAbi`], but not in[`rustc_middle::ty::FnSig`.
735735
/// This difference is not relevant in most cases, but should still be kept in mind.
736736
///
737737
/// I will do my best to describe this structure, but these

0 commit comments

Comments
 (0)