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
{{ message }}
Repository navigation
Tracking issue for FromStr trait usage in const fn #59133
It looks like the const_int_from_str feature, gate-ing the constness of the {integer}::from_str_radix associated method, also points here. Would it be possible to have that stabilized as it (as far as I can see/tell) does not depend on const trait?, unlike the constness of the FromStr trait (impls) this is otherwise about.
This would allow parsing ints at complie-time, e.g. from env!(), which I belive would help alot as that is the primary thing I find myself wanting to parse at compile-time.
Activity
jonas-schievink commentedon Nov 22, 2020
Isn't this just #67792 / rust-lang/rfcs#2632?
Auto merge of rust-lang#99322 - GKFX:const-int-parse, r=Mark-Simulacrum
Skgland commentedon May 9, 2024
It looks like the
const_int_from_strfeature, gate-ing the constness of the{integer}::from_str_radixassociated method, also points here. Would it be possible to have that stabilized as it (as far as I can see/tell) does not depend on const trait?, unlike the constness of theFromStrtrait (impls) this is otherwise about.This would allow parsing ints at complie-time, e.g. from
env!(), which I belive would help alot as that is the primary thing I find myself wanting to parse at compile-time.Rollup merge of rust-lang#124941 - Skgland:stabilize-const-int-from-s…
Rollup merge of rust-lang#124941 - Skgland:stabilize-const-int-from-s…
Rollup merge of rust-lang#124941 - Skgland:stabilize-const-int-from-s…
Unrolled build for rust-lang#124941
Rollup merge of #124941 - Skgland:stabilize-const-int-from-str, r=dto…