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
jonas-schievink committed Jan 29, 2021
2 parents 85db39f + 08141a5 commit cf02fc0
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 cf02fc0

Please sign in to comment.