File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ pub trait CommandExt: Sealed {
7575 /// sure that the closure does not violate library invariants by making
7676 /// invalid use of these duplicates.
7777 ///
78+ /// Panicking in the closure is safe only if all the format arguments for the
79+ /// panic message can be safely formatted; this is because although
80+ /// `Command` calls [`std::panic::always_abort`](crate::panic::always_abort)
81+ /// before calling the pre_exec hook, panic will still try to format the
82+ /// panic message.
83+ ///
7884 /// When this closure is run, aspects such as the stdio file descriptors and
7985 /// working directory have successfully been changed, so output to these
8086 /// locations may not appear where intended.
You can’t perform that action at this time.
0 commit comments