Commit 9f1aecd
committed
rustdoc: assoc const bounds from supertraits
When documenting code with associated const equality bounds where
the const is defined in a supertrait, `rustdoc` would panic
with "called `Option::unwrap()` on a `None` value" because it
only searched for the associated item in the immediate trait.
This can be fixed by adding a recursive helper function that
searched through the traits supertrait hierarchy to find the
associated item.1 parent db6bc0f commit 9f1aecd
File tree
3 files changed
+60
-5
lines changed- src/librustdoc/clean
- tests/rustdoc-ui
3 files changed
+60
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3147 | 3147 | | |
3148 | 3148 | | |
3149 | 3149 | | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
3150 | 3175 | | |
3151 | 3176 | | |
3152 | 3177 | | |
| |||
3163 | 3188 | | |
3164 | 3189 | | |
3165 | 3190 | | |
3166 | | - | |
3167 | | - | |
3168 | | - | |
3169 | | - | |
3170 | | - | |
| 3191 | + | |
| 3192 | + | |
3171 | 3193 | | |
3172 | 3194 | | |
3173 | 3195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments