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> {
396
396
InlineConstArgs { args : self }
397
397
}
398
398
399
- /// Creates an `GenericArgs` that maps each generic parameter to itself.
399
+ /// Creates a [ `GenericArgs`] that maps each generic parameter to itself.
400
400
pub fn identity_for_item ( tcx : TyCtxt < ' tcx > , def_id : impl Into < DefId > ) -> GenericArgsRef < ' tcx > {
401
401
Self :: for_item ( tcx, def_id. into ( ) , |param, _| tcx. mk_param_from_def ( param) )
402
402
}
403
403
404
- /// Creates an `GenericArgs` for generic parameter definitions,
404
+ /// Creates a [ `GenericArgs`] for generic parameter definitions,
405
405
/// 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
407
407
/// being built, which can be used to correctly
408
408
/// replace defaults of generic parameters.
409
409
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