Commit 6c244da
committed
Fix ICE when using return type notation through trait alias
Add DefKind::TraitAlias to two locations in resolve_bound_vars.rs that
only checked for DefKind::Trait, causing an ICE when RTN was used
through a trait alias.1 parent 8c5605e commit 6c244da
2 files changed
Lines changed: 21 additions & 2 deletions
File tree
- compiler/rustc_hir_analysis/src/collect
- tests/ui/associated-type-bounds/return-type-notation
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
| 1698 | + | |
| 1699 | + | |
1699 | 1700 | | |
1700 | 1701 | | |
1701 | 1702 | | |
| |||
1865 | 1866 | | |
1866 | 1867 | | |
1867 | 1868 | | |
1868 | | - | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1869 | 1873 | | |
1870 | 1874 | | |
1871 | 1875 | | |
| |||
Lines changed: 15 additions & 0 deletions
| 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 | + | |
0 commit comments