Skip to content

Commit 08141a5

Browse files
Add missiong variants in match binding
1 parent a2f8f62 commit 08141a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/clean/types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,7 @@ impl Type {
14371437
Array(..) => PrimitiveType::Array,
14381438
RawPointer(..) => PrimitiveType::RawPointer,
14391439
QPath { ref self_type, .. } => return self_type.inner_def_id(cache),
1440-
// FIXME: remove this wildcard
1441-
_ => return None,
1440+
Generic(_) | Infer | ImplTrait(_) => return None,
14421441
};
14431442
cache.and_then(|c| Primitive(t).def_id_full(c))
14441443
}

0 commit comments

Comments
 (0)