File tree 1 file changed +2
-4
lines changed
src/tools/unicode-table-generator/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,14 @@ const fn bitset_search<
16
16
let bucket_idx = ( needle / 64 ) as usize ;
17
17
let chunk_map_idx = bucket_idx / CHUNK_SIZE ;
18
18
let chunk_piece = bucket_idx % CHUNK_SIZE ;
19
- // FIXME: const-hack: Revert to `slice::get` after `const_slice_index`
20
- // feature stabilizes.
19
+ // FIXME(const-hack): Revert to `slice::get` when slice indexing becomes possible in const.
21
20
let chunk_idx = if chunk_map_idx < chunk_idx_map. len ( ) {
22
21
chunk_idx_map[ chunk_map_idx]
23
22
} else {
24
23
return false ;
25
24
} ;
26
25
let idx = bitset_chunk_idx[ chunk_idx as usize ] [ chunk_piece] as usize ;
27
- // FIXME: const-hack: Revert to `slice::get` after `const_slice_index`
28
- // feature stabilizes.
26
+ // FIXME(const-hack): Revert to `slice::get` when slice indexing becomes possible in const.
29
27
let word = if idx < bitset_canonical. len ( ) {
30
28
bitset_canonical[ idx]
31
29
} else {
You can’t perform that action at this time.
0 commit comments