File tree 1 file changed +2
-6
lines changed
crates/std_detect/src/detect
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ impl Default for Initializer {
43
43
}
44
44
}
45
45
46
+ // NOTE: the `debug_assert!` would catch that we do not add more Features than
47
+ // the one fitting our cache.
46
48
impl Initializer {
47
49
/// Tests the `bit` of the cache.
48
50
#[ allow( dead_code) ]
49
51
#[ inline]
50
52
pub ( crate ) fn test ( self , bit : u32 ) -> bool {
51
- // FIXME: this way of making sure that the cache is large enough is
52
- // brittle.
53
53
debug_assert ! (
54
54
bit < CACHE_CAPACITY ,
55
55
"too many features, time to increase the cache size!"
@@ -60,8 +60,6 @@ impl Initializer {
60
60
/// Sets the `bit` of the cache.
61
61
#[ inline]
62
62
pub ( crate ) fn set ( & mut self , bit : u32 ) {
63
- // FIXME: this way of making sure that the cache is large enough is
64
- // brittle.
65
63
debug_assert ! (
66
64
bit < CACHE_CAPACITY ,
67
65
"too many features, time to increase the cache size!"
@@ -73,8 +71,6 @@ impl Initializer {
73
71
/// Unsets the `bit` of the cache.
74
72
#[ inline]
75
73
pub ( crate ) fn unset ( & mut self , bit : u32 ) {
76
- // FIXME: this way of making sure that the cache is large enough is
77
- // brittle.
78
74
debug_assert ! (
79
75
bit < CACHE_CAPACITY ,
80
76
"too many features, time to increase the cache size!"
You can’t perform that action at this time.
0 commit comments