mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
cb7f1eec04
Stabilize `const_caller_location` and `const_location_fields` Closes #102911. Closes #76156. tests: [library/core/tests/panic/location.rs](https://github.com/rust-lang/rust/blob/3521a2f2f317cb978063842485c7d1bc86ec82b6/library/core/tests/panic/location.rs) API: ```rust // core::panic::location impl Location { pub const fn caller() -> &'static Location<'static>; pub const fn file(&self) -> &str; pub const fn line(&self) -> u32; pub const fn column(&self) -> u32; } ```