diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-30 13:37:00 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-30 13:37:00 +0900 |
| commit | 596b394d38d6445709f4418c234c4ec78c44c84f (patch) | |
| tree | 986800c7afc4f80a6f823ea4d273ad789030e2da | |
| parent | ba40cea48727a57b4c740ae769bb3d142659b503 (diff) | |
| parent | 08141a5a646555ed188cdbe9a9b4b57c6a4aa2f1 (diff) | |
| download | rust-596b394d38d6445709f4418c234c4ec78c44c84f.tar.gz rust-596b394d38d6445709f4418c234c4ec78c44c84f.zip | |
Rollup merge of #81512 - GuillaumeGomez:cleanup-fixme-rustdoc, r=bugadani
Add missing variants in match binding cc `````@bugadani````` `````@CraftSpider````` r? `````@camelid`````
| -rw-r--r-- | src/librustdoc/clean/types.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 18683f6809f..8a49fe0228c 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -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)) } |
