You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let def_id = tcx.require_lang_item(LangItem::DropInPlace,None);
549
549
let args = tcx.mk_args(&[ty.into()]);
@@ -642,7 +642,7 @@ impl<'tcx> Instance<'tcx> {
642
642
/// Instantiates a generic value `v`(like `Vec<T>`), substituting its generic arguments and turning it into a concrete one(like `i32`, or `Vec<f32>`).
643
643
/// If a value is not generic, this will do nothing.
644
644
/// 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`].
646
646
pubfninstantiate_mir<T>(&self,tcx:TyCtxt<'tcx>,v:EarlyBinder<&T>) -> T
647
647
where
648
648
T:TypeFoldable<TyCtxt<'tcx>> + Copy,
@@ -658,8 +658,8 @@ impl<'tcx> Instance<'tcx> {
658
658
/// Instantiates a generic value `v`(like `Vec<T>`), substituting its generic arguments and turning it into a concrete one(like `i32`, or `Vec<f32>`).
659
659
/// This function erases lifetimes, so a value like `&'a i32` will become `&ReErased i32`.
660
660
/// 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`]
/// 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.
Copy file name to clipboardExpand all lines: compiler/rustc_target/src/abi/call/mod.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -731,7 +731,7 @@ impl RiscvInterruptKind {
731
731
/// should be passed in order to respect the native ABI.
732
732
///
733
733
/// 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`.
735
735
/// This difference is not relevant in most cases, but should still be kept in mind.
736
736
///
737
737
/// I will do my best to describe this structure, but these
0 commit comments