-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
Since #135054, the Debug
implementation for std::panic::Location
just prints the byte bag:
fn main() {
dbg!(std::panic::Location::caller());
}
Stable:
[src/main.rs:2:5] std::panic::Location::caller() = Location {
file: "src/main.rs",
line: 2,
col: 10,
}
Nightly:
[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,
}
Originally noticed at #142216.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.