rust/library/core
bors 8df7e723ea Auto merge of #99322 - GKFX:const-int-parse, r=Mark-Simulacrum
Make {integer}::from_str_radix constant

This commit makes FromStr on integers constant so that `const x: u32 = "23".parse();` works. More practical use-case is with environment variables at build time as discussed in https://github.com/rust-lang/rfcs/issues/1907.

Tracking issue #59133.

ACP: https://github.com/rust-lang/libs-team/issues/74
2024-03-30 19:56:58 +00:00
..
benches Add benches for net parsing 2024-03-04 18:46:24 -05:00
src Auto merge of #99322 - GKFX:const-int-parse, r=Mark-Simulacrum 2024-03-30 19:56:58 +00:00
tests Make {integer}::from_str_radix constant 2024-03-30 12:43:58 +00:00
Cargo.toml Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00