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
as a subtask of #17307, once associated constants are implemented, we will want to update libstd to use them, rather than continuing to use methods to encode such constants.
A quick ack of the code base via ack --rust 'fn [^\(\)]*\(\) -> Self' shows the following candidate traits for being modified with associated constants:
core::default::Default (but this is probably not a great idea; we probably want to continue allowing arbitrary code to be associated with constructing a default value)
various numeric traits (but Gankro points out here that perhaps all of these numeric traits will be scrapped in our stdlib anyway)
core::num::Zero
core::num::One
core::num::Bounded
core::num::Float
core::ptr::RawPtr<T>
The text was updated successfully, but these errors were encountered:
as a subtask of #17307, once associated constants are implemented, we will want to update
libstd
to use them, rather than continuing to use methods to encode such constants.A quick
ack
of the code base viaack --rust 'fn [^\(\)]*\(\) -> Self'
shows the following candidate traits for being modified with associated constants:core::default::Default
(but this is probably not a great idea; we probably want to continue allowing arbitrary code to be associated with constructing a default value)core::num::Zero
core::num::One
core::num::Bounded
core::num::Float
core::ptr::RawPtr<T>
The text was updated successfully, but these errors were encountered: