-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Tracking issue for std::io::set_panic and set_print #31343
Copy link
Copy link
Closed
Labels
A-error-handlingArea: Error handlingArea: Error handlingA-fmtArea: `core::fmt`Area: `core::fmt`A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Description
Activity
Metadata
Metadata
Assignees
Labels
A-error-handlingArea: Error handlingArea: Error handlingA-fmtArea: `core::fmt`Area: `core::fmt`A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
std::iocontains these two public unstable functions:They both have
#[doc(hidden)]. Anyone knows why?The also both have:
Their functionality is evidently useful, since the
testcrate uses them to capture the output of tests on only show it when they fail. External test harnesses would likely want to have similar functionality.This issue is about eventually stabilizing either these functions or a more general mechanism.
For
set_panic, that mechanism might be panic handlers (#30449) though it would be nice to be able to not duplicate most of the work done in the default handler just to change the output stream. This still leavesset_print.