From e1559ed6e34da6c18259143d77bc75f1627b82d8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 9 Nov 2021 14:41:59 +0100 Subject: [PATCH] Remove weird edge case for "Type::inner_def_id" --- src/librustdoc/clean/types.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 0dc1c24b16e19..05619bd2e07e7 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1538,7 +1538,6 @@ impl Type { ResolvedPath { did, .. } => return Some(did), DynTrait(ref bounds, _) => return Some(bounds[0].trait_.def_id()), Primitive(p) => return cache.and_then(|c| c.primitive_locations.get(&p).cloned()), - BorrowedRef { type_: box Generic(..), .. } => PrimitiveType::Reference, BorrowedRef { ref type_, .. } => return type_.inner_def_id(cache), Tuple(ref tys) => { if tys.is_empty() {