You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making this const currently depends on const_eval_select, which unstable. If const_eval_select becomes internally usable, we will be able to stabilize this.
The other currently available option is to always use a const strlen, but this would come with a performance hit.
Alternatively, whenever CStr becomes a thin pointer this can be const stabilized since it will have no internal operations.
Activity
Update the tracking issue for `const_cstr_from_ptr`
Rollup merge of rust-lang#113252 - tgross35:const-cstr-from-ptr-track…
Rollup merge of rust-lang#113252 - tgross35:const-cstr-from-ptr-track…
Rollup merge of rust-lang#113252 - tgross35:const-cstr-from-ptr-track…
tgross35 commentedon Aug 3, 2023
I gated
CStr::count_bytes()'s constness under this same flag since it depends on the same decision. See #11444328 remaining items
rfcbot commentedon Jul 6, 2024
The final comment period, with a disposition to merge, as per the review above, is now complete.
As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.
This will be merged soon.
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Unrolled build for rust-lang#127433
Rename the internal `const_strlen` to just `strlen`
Rollup merge of rust-lang#127660 - tgross35:const_strlen-rename, r=dt…
Unrolled build for rust-lang#127660