1
Fork 0

Fix elided_named_lifetimes in code

This commit is contained in:
Pavel Grigorenko 2024-08-23 01:12:57 +03:00
parent f167efad2f
commit 53ce92770d
14 changed files with 18 additions and 15 deletions

View file

@ -269,7 +269,7 @@ impl<'tcx> Generics {
}
/// Returns the `GenericParamDef` associated with this `ParamConst`.
pub fn const_param(&'tcx self, param: ParamConst, tcx: TyCtxt<'tcx>) -> &GenericParamDef {
pub fn const_param(&'tcx self, param: ParamConst, tcx: TyCtxt<'tcx>) -> &'tcx GenericParamDef {
let param = self.param_at(param.index as usize, tcx);
match param.kind {
GenericParamDefKind::Const { .. } => param,