![]() This stabilization does not yet include the full formatting infrastructure, so the panic! macro must be called with either a static string ( panic!(".")), or with a single &str interpolated value ( panic!(" (no format specifiers or other traits). Together with the stabilization of panic!, several other standard library APIs are now usable in const, such as assert!. With previous versions of Rust, the panic! macro was not usable in const fn and other compile-time contexts. Rust 1.57 brings panic! to const contexts, adds support for custom profiles to Cargo, and stabilizes fallible reservation APIs. If you don't have it already, you can get rustupįrom the appropriate page on our website, and check out theĭetailed release notes for 1.57.0 on GitHub. If you have a previous version of Rust installed via rustup, getting Rust 1.57.0 is as easy as: rustup update stable ![]() Rust is a programming language empowering everyone to build reliable and efficient software.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |