Skip to content

Commit 4ebd78b

Browse files
Make edition method common to Rustc and Rustdoc
1 parent 7dd170f commit 4ebd78b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/tools/run-make-support/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ macro_rules! impl_common_helpers {
267267
self.cmd.current_dir(path);
268268
self
269269
}
270+
271+
/// Specify the edition year.
272+
pub fn edition(&mut self, edition: &str) -> &mut Self {
273+
self.cmd.arg("--edition");
274+
self.cmd.arg(edition);
275+
self
276+
}
270277
}
271278
};
272279
}

src/tools/run-make-support/src/rustc.rs

-7
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ impl Rustc {
143143
self
144144
}
145145

146-
/// Specify the edition year.
147-
pub fn edition(&mut self, edition: &str) -> &mut Self {
148-
self.cmd.arg("--edition");
149-
self.cmd.arg(edition);
150-
self
151-
}
152-
153146
/// Specify the print request.
154147
pub fn print(&mut self, request: &str) -> &mut Self {
155148
self.cmd.arg("--print");

0 commit comments

Comments
 (0)