This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit dbd678b
authored
Unrolled build for rust-lang#121803
Rollup merge of rust-lang#121803 - estebank:dont-mention-type-error-e0277, r=compiler-errors
Never say "`Trait` is implemented for `{type error}`"
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.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 | |
|---|---|---|---|
| |||
1910 | 1910 | | |
1911 | 1911 | | |
1912 | 1912 | | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1913 | 1916 | | |
1914 | 1917 | | |
1915 | 1918 | | |
| |||
1934 | 1937 | | |
1935 | 1938 | | |
1936 | 1939 | | |
1937 | | - | |
| 1940 | + | |
| 1941 | + | |
1938 | 1942 | | |
1939 | 1943 | | |
1940 | 1944 | | |
| |||
| 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