Fix elided_named_lifetimes
in code
This commit is contained in:
parent
f167efad2f
commit
53ce92770d
14 changed files with 18 additions and 15 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue