Skip to content

Commit 3c420c0

Browse files
committed
Revert "Fix invalid bounds string generation in rustdoc"
This reverts commit ddd034a.
1 parent 209b0b4 commit 3c420c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_typeck/collect.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1918,10 +1918,7 @@ fn explicit_predicates_of<'a, 'tcx>(
19181918
}
19191919
}
19201920

1921-
let hir_id = match tcx.hir().as_local_hir_id(def_id) {
1922-
Some(hir_id) => hir_id,
1923-
None => return tcx.predicates_of(def_id),
1924-
};
1921+
let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap();
19251922
let node = tcx.hir().get_by_hir_id(hir_id);
19261923

19271924
let mut is_trait = None;

0 commit comments

Comments
 (0)