File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/tools/unicode-table-generator/src Expand file tree Collapse file tree 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<
1616 let bucket_idx = ( needle / 64 ) as usize ;
1717 let chunk_map_idx = bucket_idx / CHUNK_SIZE ;
1818 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.
2120 let chunk_idx = if chunk_map_idx < chunk_idx_map. len ( ) {
2221 chunk_idx_map[ chunk_map_idx]
2322 } else {
2423 return false ;
2524 } ;
2625 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.
2927 let word = if idx < bitset_canonical. len ( ) {
3028 bitset_canonical[ idx]
3129 } else {
You can’t perform that action at this time.
0 commit comments