-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
P-mediumMedium priorityMedium priority
Description
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::Zerocore::num::Onecore::num::Boundedcore::num::Float
core::ptr::RawPtr<T>
Metadata
Metadata
Assignees
Labels
P-mediumMedium priorityMedium priority