mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
57f64c67e0
[core/fmt] Replace checked slice indexing by unchecked to support panic-free code Fixes #126425 Replace the potentially panicking `[]` indexing with `get_unchecked()` to prevent linking with panic-related code.