Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for `num_bits_bytes` stabilization #27753
Comments
aturon
added
T-libs
B-unstable
labels
Aug 12, 2015
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
added
the
E-easy
label
Aug 13, 2015
Manishearth
removed
the
E-easy
label
Oct 2, 2015
This comment has been minimized.
This comment has been minimized.
|
We've gotten this far without these being stable, let's just axe them. |
alexcrichton
added
the
I-nominated
label
Dec 16, 2015
This comment has been minimized.
This comment has been minimized.
|
Does this include |
This comment has been minimized.
This comment has been minimized.
|
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). |
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Dec 17, 2015
This comment has been minimized.
This comment has been minimized.
|
Is there a replacement that works in |
This comment has been minimized.
This comment has been minimized.
|
A single |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
andrewtj
commented
Dec 18, 2015
|
I've been using |
This comment has been minimized.
This comment has been minimized.
|
Could |
This comment has been minimized.
This comment has been minimized.
|
@tari It can be, but it requires more work on constants (the actual computation only depends on the pointer size and target-specific alignments). |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this in triage recently and the decision was to deprecate |
This comment has been minimized.
This comment has been minimized.
|
Closed by #30943 |
alexcrichton
closed this
Jan 21, 2016
digama0
referenced this issue
Jul 3, 2016
Merged
replace bits_per_word with an actual constant function #21
This comment has been minimized.
This comment has been minimized.
|
This was removed without any replacement :( |
This comment has been minimized.
This comment has been minimized.
|
To clarify, since the first message of this thread mentions |
aturon commentedAug 12, 2015
The
BITSandBYTESconstants for e.g.i32are currently unstable, due to lack of clarity around:size_of?cc @eddyb