Commit f480a7e
Improve contracts intrisics and remove wrapper function
1. Document the new intrinsics.
2. Make the intrinsics actually check the contract if enabled, and
remove `contract::check_requires` function.
3. Use panic with no unwind in case contract is using to check for
safety, we probably don't want to unwind. Following the same
reasoning as UB checks.1 parent 3bbca3d commit f480a7e
2 files changed
+23
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 4 | + | |
19 | 5 | | |
20 | 6 | | |
21 | 7 | | |
22 | 8 | | |
23 | | - | |
24 | 9 | | |
25 | 10 | | |
26 | 11 | | |
27 | | - | |
| 12 | + | |
28 | 13 | | |
29 | | - | |
| 14 | + | |
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 18 | + | |
36 | 19 | | |
37 | 20 | | |
38 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4082 | 4082 | | |
4083 | 4083 | | |
4084 | 4084 | | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
4085 | 4089 | | |
4086 | 4090 | | |
| 4091 | + | |
4087 | 4092 | | |
4088 | | - | |
4089 | | - | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
4090 | 4098 | | |
4091 | 4099 | | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
4092 | 4104 | | |
4093 | 4105 | | |
4094 | 4106 | | |
4095 | | - | |
4096 | | - | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
4097 | 4111 | | |
4098 | 4112 | | |
4099 | 4113 | | |
| |||
0 commit comments