We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
edition
Rustc
Rustdoc
1 parent 7dd170f commit 4ebd78bCopy full SHA for 4ebd78b
src/tools/run-make-support/src/lib.rs
@@ -267,6 +267,13 @@ macro_rules! impl_common_helpers {
267
self.cmd.current_dir(path);
268
self
269
}
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
+ }
277
278
};
279
src/tools/run-make-support/src/rustc.rs
@@ -143,13 +143,6 @@ impl Rustc {
143
144
145
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
-
153
/// Specify the print request.
154
pub fn print(&mut self, request: &str) -> &mut Self {
155
self.cmd.arg("--print");
0 commit comments