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 {
75
75
/// sure that the closure does not violate library invariants by making
76
76
/// invalid use of these duplicates.
77
77
///
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
+ ///
78
84
/// When this closure is run, aspects such as the stdio file descriptors and
79
85
/// working directory have successfully been changed, so output to these
80
86
/// locations may not appear where intended.
You can’t perform that action at this time.
0 commit comments