Commit cd9e5b5
authored
Rollup merge of rust-lang#121912 - fmease:diag-method-chains-gat, r=compiler-errors,estebank
Properly deal with GATs when looking for method chains to point at
Fixes rust-lang#121898.
~~While it prevents an ICE and the structured suggestion is correct, the method chain diagnostic notes are weird / useless / incorrect judging by a quick look. I guess I should improve that in this PR.~~ Sufficiently taken care of.
r? estebank or compiler-errors (rust-lang#105332, rust-lang#105674).File tree
4 files changed
+63
-16
lines changed- compiler/rustc_trait_selection/src
- traits/error_reporting
- tests/ui/typeck
4 files changed
+63
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
4219 | 4220 | | |
4220 | 4221 | | |
4221 | 4222 | | |
4222 | | - | |
4223 | 4223 | | |
4224 | 4224 | | |
4225 | 4225 | | |
4226 | | - | |
4227 | | - | |
4228 | | - | |
4229 | | - | |
4230 | | - | |
4231 | | - | |
4232 | | - | |
4233 | | - | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
4234 | 4230 | | |
4235 | 4231 | | |
4236 | 4232 | | |
4237 | 4233 | | |
4238 | 4234 | | |
4239 | 4235 | | |
4240 | | - | |
| 4236 | + | |
4241 | 4237 | | |
4242 | 4238 | | |
4243 | 4239 | | |
4244 | 4240 | | |
4245 | | - | |
| 4241 | + | |
4246 | 4242 | | |
4247 | 4243 | | |
4248 | 4244 | | |
| |||
4254 | 4250 | | |
4255 | 4251 | | |
4256 | 4252 | | |
4257 | | - | |
4258 | | - | |
4259 | | - | |
4260 | | - | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
4261 | 4258 | | |
4262 | 4259 | | |
4263 | 4260 | | |
4264 | | - | |
| 4261 | + | |
4265 | 4262 | | |
4266 | 4263 | | |
4267 | 4264 | | |
| |||
| 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 | + | |
| 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 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments