Commit dab3d5b
committed
Never say "
When a trait bound error occurs, we look for alternative types that
would have made the bound succeed. For some reason `{type error}`
sometimes would appear as a type that would do so.
We now remove `{type error}` from the list in every case to avoid
nonsensical `note`s.Trait is implemented for {type error}"1 parent c475e23 commit dab3d5b
File tree
2 files changed
+5
-3
lines changed- compiler/rustc_trait_selection/src/traits/error_reporting
- tests/ui/associated-consts
2 files changed
+5
-3
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1908 | 1908 | | |
1909 | 1909 | | |
1910 | 1910 | | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1911 | 1914 | | |
1912 | 1915 | | |
1913 | 1916 | | |
| |||
1932 | 1935 | | |
1933 | 1936 | | |
1934 | 1937 | | |
1935 | | - | |
| 1938 | + | |
| 1939 | + | |
1936 | 1940 | | |
1937 | 1941 | | |
1938 | 1942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
0 commit comments