Skip to content

Commit

Permalink
Rollup merge of #81512 - GuillaumeGomez:cleanup-fixme-rustdoc, r=buga…
Browse files Browse the repository at this point in the history
…dani

Add missing variants in match binding

cc `````@bugadani````` `````@CraftSpider`````
r? `````@camelid`````
  • Loading branch information
JohnTitor committed Jan 30, 2021
2 parents ba40cea + 08141a5 commit 596b394
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 @@ -1436,8 +1436,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 596b394

Please sign in to comment.