We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
edition
Rustdoc
1 parent 02f7806 commit a56ba91Copy full SHA for a56ba91
src/tools/run-make-support/src/rustdoc.rs
@@ -93,6 +93,13 @@ impl Rustdoc {
93
}
94
95
96
+ /// Specify the edition year.
97
+ pub fn edition(&mut self, edition: &str) -> &mut Self {
98
+ self.cmd.arg("--edition");
99
+ self.cmd.arg(edition);
100
+ self
101
+ }
102
+
103
#[track_caller]
104
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
105
let caller_location = std::panic::Location::caller();
0 commit comments