File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ mod sealed {
52
52
53
53
impl Context for $context {
54
54
const KNOWN_FEATURE_FLAGS : & ' static [ u8 ] = & [
55
+ // For each byte, use bitwise-OR to compute the applicable flags for known
56
+ // required features `r_i` and optional features `o_j` for all `i` and `j` such
57
+ // that the following slice is formed:
58
+ //
59
+ // [
60
+ // `r_0` | `r_1` | ... | `o_0` | `o_1` | ...,
61
+ // ...,
62
+ // ]
55
63
$(
56
64
0b00_00_00_00 $( |
57
65
<Self as $required_feature>:: REQUIRED_MASK ) *
@@ -61,6 +69,8 @@ mod sealed {
61
69
] ;
62
70
63
71
const KNOWN_FEATURE_MASK : & ' static [ u8 ] = & [
72
+ // Similar as above, but set both flags for each feature regardless of whether
73
+ // the feature is required or optional.
64
74
$(
65
75
0b00_00_00_00 $( |
66
76
<Self as $required_feature>:: REQUIRED_MASK |
You can’t perform that action at this time.
0 commit comments