Don't forget that the lifetime on hir types is 'tcx

This commit is contained in:
Oli Scherer
2023-02-01 14:23:51 +00:00
parent c485ee7147
commit e532b0dd7e
26 changed files with 105 additions and 98 deletions

View File

@@ -168,7 +168,7 @@ fn generic_arg_mismatch_err(
/// instantiate a `GenericArg`.
/// - `inferred_kind`: if no parameter was provided, and inference is enabled, then
/// creates a suitable inference variable.
pub fn create_args_for_parent_generic_args<'tcx, 'a>(
pub fn create_args_for_parent_generic_args<'tcx: 'a, 'a>(
tcx: TyCtxt<'tcx>,
def_id: DefId,
parent_args: &[ty::GenericArg<'tcx>],