Add missiong variants in match binding

This commit is contained in:
Guillaume Gomez 2021-01-29 13:36:49 +01:00
parent a2f8f62818
commit 08141a5a64

View File

@ -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))
}