-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 608d49a
committed
Check for bound variables when reporting type error
`can_eq` ICEs if it's passed types with escaping bound variables, so we
need to handle for them, even in error reporting.1 parent 8365fcb commit 608d49a
File tree
3 files changed
+69
-9
lines changed- compiler/rustc_trait_selection/src/error_reporting/traits
- tests/ui/mismatched_types
3 files changed
+69
-9
lines changedLines changed: 16 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4076 | 4076 |
| |
4077 | 4077 |
| |
4078 | 4078 |
| |
4079 | - | ||
4080 | 4079 |
| |
4081 | - | ||
4082 | - | ||
4083 | - | ||
4084 | - | ||
4085 | - | ||
4086 | - | ||
4087 | - | ||
4088 | - | ||
4080 | + | ||
4081 | + | ||
4082 | + | ||
4083 | + | ||
4084 | + | ||
4085 | + | ||
4086 | + | ||
4087 | + | ||
4088 | + | ||
4089 | + | ||
4090 | + | ||
4091 | + | ||
4092 | + | ||
4093 | + | ||
4094 | + | ||
4095 | + | ||
4089 | 4096 |
| |
4090 | 4097 |
| |
4091 | 4098 |
| |
|
Lines changed: 22 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 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + |
Lines changed: 31 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 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + |
0 commit comments