From 08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 29 Jan 2021 13:36:49 +0100 Subject: [PATCH] Add missiong variants in match binding --- src/librustdoc/clean/types.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 86bce8b8707a0..2c6500581fe39 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1437,8 +1437,7 @@ impl Type { Array(..) => PrimitiveType::Array, RawPointer(..) => PrimitiveType::RawPointer, QPath { ref self_type, .. } => return self_type.inner_def_id(cache), - // FIXME: remove this wildcard - _ => return None, + Generic(_) | Infer | ImplTrait(_) => return None, }; cache.and_then(|c| Primitive(t).def_id_full(c)) }