Hrrrmm. I'm fine with this, but I think we should plan to revert it once we can, because now our API looks pretty different from str and OsStr. That is, I think we should leave const_str_as_bytes (or some other way of accomplishing the same goal) on our list of things we need from Rust upstream.
I don't think const_str_as_bytes is gonna be hard to stabilize (though maybe we should check?), so my personal feeling is that it would be fine to rely on the feature for now - we're on nightly for a while because of alloc, anyway.
Approving, I'll leave it up to you as to whether you want to merge it for now.
Hrrrmm. I'm fine with this, but I think we should plan to revert it once we can, because now our API looks pretty different from
str
andOsStr
. That is, I think we should leaveconst_str_as_bytes
(or some other way of accomplishing the same goal) on our list of things we need from Rust upstream.I don't think
const_str_as_bytes
is gonna be hard to stabilize (though maybe we should check?), so my personal feeling is that it would be fine to rely on the feature for now - we're on nightly for a while because of alloc, anyway.Approving, I'll leave it up to you as to whether you want to merge it for now.