Skip to content

Commit a56ba91

Browse files
Implement edition method on Rustdoc type as well
1 parent 02f7806 commit a56ba91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ impl Rustdoc {
9393
}
9494
}
9595

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+
96103
#[track_caller]
97104
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
98105
let caller_location = std::panic::Location::caller();

0 commit comments

Comments
 (0)