Skip to content

Commit 57f20c5

Browse files
committed
remove as_command_mut
1 parent ca275d7 commit 57f20c5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/bootstrap/src/utils/exec.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,6 @@ impl<'a> BootstrapCommand {
211211
exec_ctx.as_ref().start(self, OutputMode::Capture, OutputMode::Print)
212212
}
213213

214-
/// Provides access to the stdlib Command inside.
215-
/// FIXME: This function should be eventually removed from bootstrap.
216-
pub fn as_command_mut(&mut self) -> &mut Command {
217-
// We proactively mark this command as executed since we can't be certain how the returned
218-
// command will be handled. Caching must also be avoided here, as the inner command could be
219-
// modified externally without us being aware.
220-
self.mark_as_executed();
221-
self.do_not_cache();
222-
&mut self.command
223-
}
224-
225214
/// Mark the command as being executed, disarming the drop bomb.
226215
/// If this method is not called before the command is dropped, its drop will panic.
227216
pub fn mark_as_executed(&mut self) {

0 commit comments

Comments
 (0)