Skip to content

Commit

Permalink
Add missiong variants in match binding
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 29, 2021
1 parent a2f8f62 commit 08141a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 08141a5

Please sign in to comment.