]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/clean/utils.rs
rustdoc: render `<Self as X>::Y` type casts properly
[rust.git] / src / librustdoc / clean / utils.rs
index 51a011cf1977364ec7081bac0e954156f8835b31..2c31a502565aaba84f340e59134d7308ac4164bd 100644 (file)
@@ -175,8 +175,9 @@ pub(super) fn external_path(
         Type::BorrowedRef { lifetime, mutability, type_ } => {
             Type::BorrowedRef { lifetime, mutability, type_: Box::new(strip_type(*type_)) }
         }
-        Type::QPath { name, self_type, trait_ } => Type::QPath {
+        Type::QPath { name, self_type, trait_, self_def_id } => Type::QPath {
             name,
+            self_def_id,
             self_type: Box::new(strip_type(*self_type)),
             trait_: Box::new(strip_type(*trait_)),
         },