From: Guillaume Gomez Date: Fri, 29 Jan 2021 12:36:49 +0000 (+0100) Subject: Add missiong variants in match binding X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1;p=rust.git Add missiong variants in match binding --- diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 86bce8b8707..2c6500581fe 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1437,8 +1437,7 @@ fn inner_def_id(&self, cache: Option<&Cache>) -> Option { 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)) }