about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-23 06:26:53 +0200
committerGitHub <noreply@github.com>2024-08-23 06:26:53 +0200
commit487b3d92cfc4e05bd2b7d4d9a4f7e53ea47aff14 (patch)
tree6ede2233693c211a40bd01b53875944d70edc7fd /src
parentfe87433e8a7dd2c041c93d15616041446f887cc0 (diff)
parentc51f2d24d1df7a797113b46def0d904d6c877055 (diff)
downloadrust-487b3d92cfc4e05bd2b7d4d9a4f7e53ea47aff14.tar.gz
rust-487b3d92cfc4e05bd2b7d4d9a4f7e53ea47aff14.zip
Rollup merge of #129386 - cjgillot:local-resolved-arg, r=compiler-errors
Use a LocalDefId in ResolvedArg.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index db81b4c4282..5260e363dd6 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -272,7 +272,7 @@ fn clean_lifetime<'tcx>(lifetime: &hir::Lifetime, cx: &mut DocContext<'tcx>) ->
         | rbv::ResolvedArg::LateBound(_, _, did)
         | rbv::ResolvedArg::Free(_, did),
     ) = cx.tcx.named_bound_var(lifetime.hir_id)
-        && let Some(lt) = cx.args.get(&did).and_then(|arg| arg.as_lt())
+        && let Some(lt) = cx.args.get(&did.to_def_id()).and_then(|arg| arg.as_lt())
     {
         return lt.clone();
     }