Commit d6abc20
committed
Do not ICE on non-ADT rcvr type when looking for crate version collision
When looking for multiple versions of the same crate, do not blindly construct the receiver type.
Follow up to rust-lang#128786. Fix rust-lang#129205.1 parent 6de928d commit d6abc20
File tree
3 files changed
+36
-4
lines changed- compiler/rustc_hir_typeck/src/method
- tests/ui/methods
3 files changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3498 | 3498 | | |
3499 | 3499 | | |
3500 | 3500 | | |
3501 | | - | |
| 3501 | + | |
3502 | 3502 | | |
3503 | 3503 | | |
3504 | 3504 | | |
| |||
3700 | 3700 | | |
3701 | 3701 | | |
3702 | 3702 | | |
3703 | | - | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
3704 | 3710 | | |
3705 | 3711 | | |
3706 | 3712 | | |
| |||
4080 | 4086 | | |
4081 | 4087 | | |
4082 | 4088 | | |
4083 | | - | |
| 4089 | + | |
4084 | 4090 | | |
4085 | 4091 | | |
4086 | 4092 | | |
| |||
4110 | 4116 | | |
4111 | 4117 | | |
4112 | 4118 | | |
| 4119 | + | |
| 4120 | + | |
4113 | 4121 | | |
4114 | | - | |
| 4122 | + | |
4115 | 4123 | | |
4116 | 4124 | | |
4117 | 4125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 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 | + | |
0 commit comments