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 7dd170f commit 7ba8144Copy full SHA for 7ba8144
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