Commit 7e6ad28
committed
Add missing const stability attributes for bool methods
This fixes compilation errors in bootstrap tests by adding:
- rustc_const_stable attribute for then_some method
- rustc_const_unstable attribute for then method
- [const] Destruct bound for const trait compatibility
- Required Destruct import
Resolves E0493 destructor evaluation errors and missing
const stability attribute errors during bootstrap.1 parent dba9cdf commit 7e6ad28
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments