diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-04-06 16:55:24 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-11-03 10:17:06 +0200 |
| commit | 9b19cc0c215217e2423173bf8ef346f882238f8c (patch) | |
| tree | 0fcd8fa2c39c508620637ba5ac5a874c25b9b104 | |
| parent | 6c1b220fd747bf244f04b380e4d4ae005068f706 (diff) | |
| download | rust-9b19cc0c215217e2423173bf8ef346f882238f8c.tar.gz rust-9b19cc0c215217e2423173bf8ef346f882238f8c.zip | |
Revert "Fix invalid bounds string generation in rustdoc"
This reverts commit ddd034aa6f04e7f452bca398e3982c4a5ef6c0bc.
| -rw-r--r-- | src/librustc_typeck/collect.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 001d98aece2..e07f0ffdc34 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -2071,10 +2071,7 @@ fn explicit_predicates_of( } } - let hir_id = match tcx.hir().as_local_hir_id(def_id) { - Some(hir_id) => hir_id, - None => return tcx.predicates_of(def_id), - }; + let hir_id = tcx.hir().as_local_hir_id(def_id).unwrap(); let node = tcx.hir().get(hir_id); let mut is_trait = None; |
