Rollup merge of #139414 - Adamkob12:fix_typo_raw_list, r=Nadrieril

Fix typo in `RawList`'s documentation
This commit is contained in:
Guillaume Gomez 2025-04-06 18:08:11 +02:00 committed by GitHub
commit b3e051aced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -396,14 +396,14 @@ impl<'tcx> GenericArgs<'tcx> {
InlineConstArgs { args: self }
}
/// Creates an `GenericArgs` that maps each generic parameter to itself.
/// Creates a [`GenericArgs`] that maps each generic parameter to itself.
pub fn identity_for_item(tcx: TyCtxt<'tcx>, def_id: impl Into<DefId>) -> GenericArgsRef<'tcx> {
Self::for_item(tcx, def_id.into(), |param, _| tcx.mk_param_from_def(param))
}
/// Creates an `GenericArgs` for generic parameter definitions,
/// Creates a [`GenericArgs`] for generic parameter definitions,
/// by calling closures to obtain each kind.
/// The closures get to observe the `GenericArgs` as they're
/// The closures get to observe the [`GenericArgs`] as they're
/// being built, which can be used to correctly
/// replace defaults of generic parameters.
pub fn for_item<F>(tcx: TyCtxt<'tcx>, def_id: DefId, mut mk_kind: F) -> GenericArgsRef<'tcx>