about summary refs log tree commit diff
path: root/src/librustdoc/clean/auto_trait.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-02-13 11:52:27 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-02-15 01:40:38 +0100
commita8d869e1d151d70137af8e7a03155cb6ac93139c (patch)
tree00cfd2899efe26e94b1d682e96b6a69ec9e1766e /src/librustdoc/clean/auto_trait.rs
parent0a5b998c57a8681acc13206b5917340b053b3a30 (diff)
downloadrust-a8d869e1d151d70137af8e7a03155cb6ac93139c.tar.gz
rust-a8d869e1d151d70137af8e7a03155cb6ac93139c.zip
rustdoc: cross-crate re-exports: correctly render late-bound params in source order even if early-bound params are present
Diffstat (limited to 'src/librustdoc/clean/auto_trait.rs')
-rw-r--r--src/librustdoc/clean/auto_trait.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs
index 9de547ba6dc..8cc4201c3fc 100644
--- a/src/librustdoc/clean/auto_trait.rs
+++ b/src/librustdoc/clean/auto_trait.rs
@@ -334,7 +334,7 @@ where
                 match br {
                     // We only care about named late bound regions, as we need to add them
                     // to the 'for<>' section
-                    ty::BrNamed(_, name) => Some(GenericParamDef::lifetime(name)),
+                    ty::BrNamed(def_id, name) => Some(GenericParamDef::lifetime(def_id, name)),
                     _ => None,
                 }
             })