[src/main.rs:2:5] std::panic::Location::caller() = Location {
file: "src/main.rs",
line: 2,
col: 10,
}
[src/main.rs:2:5] std::panic::Location::caller() = Location {
file_bytes_with_nul: [
115,
114,
99,
47,
109,
97,
105,
110,
46,
114,
115,
0,
],
line: 2,
col: 10,
}
Since #135054, the
Debugimplementation forstd::panic::Locationjust prints the byte bag:Stable:
Nightly:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=698066c5427dd43cb12df0d2fb5b9300
Originally noticed at #142216.