Commit b5c6524
Allow cast of any pointer to cast to a trait pointer (rust-lang#98)
* Allow cast of any pointer to cast to a trait pointer
Also:
* Add predicates `use_*_pointer(mir_type)` to use mir pointer metadata
to identify the correct type of pointer to a mir type.
* Use predicates `use_*_pointer(mir_type)` in fat pointer construction
Resolves model-checking/kani#83
Co-authored-by: Mark R. Tuttle <[email protected]>1 parent c967c07 commit b5c6524
3 files changed
+28
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
| 885 | + | |
890 | 886 | | |
891 | 887 | | |
892 | | - | |
| 888 | + | |
893 | 889 | | |
894 | 890 | | |
895 | 891 | | |
896 | 892 | | |
897 | 893 | | |
898 | 894 | | |
899 | 895 | | |
900 | | - | |
901 | | - | |
| 896 | + | |
902 | 897 | | |
903 | 898 | | |
904 | 899 | | |
905 | 900 | | |
906 | 901 | | |
907 | 902 | | |
908 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
909 | 908 | | |
910 | 909 | | |
911 | 910 | | |
| |||
1027 | 1026 | | |
1028 | 1027 | | |
1029 | 1028 | | |
1030 | | - | |
| 1029 | + | |
1031 | 1030 | | |
1032 | 1031 | | |
1033 | 1032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
15 | | - | |
16 | 10 | | |
17 | 11 | | |
18 | 12 | | |
| |||
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | | - | |
| 42 | + | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| |||
0 commit comments