Commit c20ee3e
committed
Add comments ensuring that generics are cleaned before args
Otherwise, rustdoc panics with messages like this:
thread 'rustc' panicked at 'assertion failed: cx.impl_trait_bounds.is_empty()',
src/librustdoc/clean/utils.rs:462:5
This ordering requirement is unrelated to the `clean_fn_decl_with_args`
refactoring, but the requirement was uncovered as part of that change.
I'm not sure if *all* of these places have the requirement, but I added
comments to them just in case.1 parent c615b11 commit c20ee3e
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| 768 | + | |
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
| |||
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
| 900 | + | |
899 | 901 | | |
900 | 902 | | |
901 | 903 | | |
| |||
1732 | 1734 | | |
1733 | 1735 | | |
1734 | 1736 | | |
| 1737 | + | |
1735 | 1738 | | |
1736 | 1739 | | |
1737 | 1740 | | |
| |||
2032 | 2035 | | |
2033 | 2036 | | |
2034 | 2037 | | |
| 2038 | + | |
2035 | 2039 | | |
2036 | 2040 | | |
2037 | 2041 | | |
| |||
0 commit comments