Commit b5031dd
committed
lint: treat binders in improper_ctypes instead of ICE
This replaces the in the improper_ctypes
lint with a proper diagnostic. Previously, using an binder inside
an block caused an internal compiler error.
Now the lint emits an FFI-safe diagnostic explaining that binders
are not yet supported in FFI.
Includes a new UI test to ensure the behavior stays stable.1 parent ba86c04 commit b5031dd
File tree
3 files changed
+46
-2
lines changed- compiler/rustc_lint/src/types
- tests/ui/lint/improper-ctypes
3 files changed
+46
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
673 | 683 | | |
674 | 684 | | |
675 | 685 | | |
| |||
1016 | 1026 | | |
1017 | 1027 | | |
1018 | 1028 | | |
1019 | | - | |
1020 | 1029 | | |
1021 | 1030 | | |
1022 | 1031 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 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 | + | |
0 commit comments