about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-29 13:36:49 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-29 13:36:49 +0100
commit08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1 (patch)
tree6791e2d9a2cfe3e98af230b7292f2a95603f6ccd
parenta2f8f6281817d430e20726128b739d3c6708561c (diff)
downloadrust-08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1.tar.gz
rust-08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1.zip
Add missiong variants in match binding
-rw-r--r--src/librustdoc/clean/types.rs3
1 files changed, 1 insertions, 2 deletions
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 @@ 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))
     }