]> git.lizzy.rs Git - rust.git/commitdiff
Add missiong variants in match binding
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 29 Jan 2021 12:36:49 +0000 (13:36 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 29 Jan 2021 12:36:49 +0000 (13:36 +0100)
src/librustdoc/clean/types.rs

index 86bce8b8707a01b77d2a32280e8706e05dfab601..2c6500581fe399ae2e34639f924baa606fa1279a 100644 (file)
@@ -1437,8 +1437,7 @@ fn inner_def_id(&self, cache: Option<&Cache>) -> Option<DefId> {
             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))
     }