This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -396,14 +396,14 @@ impl<'tcx> GenericArgs<'tcx> {
396396 InlineConstArgs { args : self }
397397 }
398398
399- /// Creates an `GenericArgs` that maps each generic parameter to itself.
399+ /// Creates a [ `GenericArgs`] that maps each generic parameter to itself.
400400 pub fn identity_for_item ( tcx : TyCtxt < ' tcx > , def_id : impl Into < DefId > ) -> GenericArgsRef < ' tcx > {
401401 Self :: for_item ( tcx, def_id. into ( ) , |param, _| tcx. mk_param_from_def ( param) )
402402 }
403403
404- /// Creates an `GenericArgs` for generic parameter definitions,
404+ /// Creates a [ `GenericArgs`] for generic parameter definitions,
405405 /// by calling closures to obtain each kind.
406- /// The closures get to observe the `GenericArgs` as they're
406+ /// The closures get to observe the [ `GenericArgs`] as they're
407407 /// being built, which can be used to correctly
408408 /// replace defaults of generic parameters.
409409 pub fn for_item < F > ( tcx : TyCtxt < ' tcx > , def_id : DefId , mut mk_kind : F ) -> GenericArgsRef < ' tcx >
You can’t perform that action at this time.
0 commit comments