Skip to content

Commit 9b19cc0

Browse files
committed
Revert "Fix invalid bounds string generation in rustdoc"
This reverts commit ddd034a.
1 parent 6c1b220 commit 9b19cc0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,10 +2071,7 @@ fn explicit_predicates_of(
20712071
}
20722072
}
20732073

2074-
let hir_id = match tcx.hir().as_local_hir_id(def_id) {
2075-
Some(hir_id) => hir_id,
2076-
None => return tcx.predicates_of(def_id),
2077-
};
2074+
let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap();
20782075
let node = tcx.hir().get(hir_id);
20792076

20802077
let mut is_trait = None;

0 commit comments

Comments
 (0)