Skip to content

Commit

Permalink
Make edition method common to Rustc and Rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 4, 2024
1 parent 7dd170f commit 4ebd78b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/tools/run-make-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ macro_rules! impl_common_helpers {
self.cmd.current_dir(path);
self
}

/// Specify the edition year.
pub fn edition(&mut self, edition: &str) -> &mut Self {
self.cmd.arg("--edition");
self.cmd.arg(edition);
self
}
}
};
}
Expand Down
7 changes: 0 additions & 7 deletions src/tools/run-make-support/src/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ impl Rustc {
self
}

/// Specify the edition year.
pub fn edition(&mut self, edition: &str) -> &mut Self {
self.cmd.arg("--edition");
self.cmd.arg(edition);
self
}

/// Specify the print request.
pub fn print(&mut self, request: &str) -> &mut Self {
self.cmd.arg("--print");
Expand Down

0 comments on commit 4ebd78b

Please sign in to comment.