about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/astconv/generics.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-02-01 14:23:51 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-01-18 16:07:10 +0000
commite532b0dd7e632fc017f9f66a1fb24c7183a40dff (patch)
tree07dcc08332c2acdfe757c03e86fcde781737e5f8 /compiler/rustc_hir_analysis/src/astconv/generics.rs
parentc485ee71477a29041895c47cc441b364670f3772 (diff)
downloadrust-e532b0dd7e632fc017f9f66a1fb24c7183a40dff.tar.gz
rust-e532b0dd7e632fc017f9f66a1fb24c7183a40dff.zip
Don't forget that the lifetime on hir types is `'tcx`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/astconv/generics.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/astconv/generics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/generics.rs b/compiler/rustc_hir_analysis/src/astconv/generics.rs
index e2cd4d5f21c..f9628d1d6f3 100644
--- a/compiler/rustc_hir_analysis/src/astconv/generics.rs
+++ b/compiler/rustc_hir_analysis/src/astconv/generics.rs
@@ -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>],