Add missiong variants in match binding
This commit is contained in:
parent
a2f8f62818
commit
08141a5a64
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user