-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Tracking issue for num_bits_bytes
stabilization
#27753
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
|
We've gotten this far without these being stable, let's just axe them. |
Does this include |
🔔 This issue is now entering its final comment period for deprecation 🔔 although ping @rust-lang/compiler, I hear claims that there were discussions of these constants at the work week, and there may be something we're interested of! @SimonSapin yeah this'd be those constants (they're unstable today anyway). |
Is there a replacement that works in |
A single |
There isn't a replacement that I currently know of, although if this is used widely throughout the nightly ecosystem we can leave them for now until there's a suitable replacement. |
I've been using |
Could |
@tari It can be, but it requires more work on constants (the actual computation only depends on the pointer size and target-specific alignments). |
The libs team discussed this in triage recently and the decision was to deprecate |
Closed by #30943 |
This was removed without any replacement :( |
To clarify, since the first message of this thread mentions |
The
BITS
andBYTES
constants for e.g.i32
are currently unstable, due to lack of clarity around:size_of
?cc @eddyb
The text was updated successfully, but these errors were encountered: