Skip to content

Commit

Permalink
Implement edition method on Rustdoc type as well
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 4, 2024
1 parent 7dd170f commit 7ba8144
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tools/run-make-support/src/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ impl Rustdoc {
}
}

/// Specify the edition year.
pub fn edition(&mut self, edition: &str) -> &mut Self {
self.cmd.arg("--edition");
self.cmd.arg(edition);
self
}

#[track_caller]
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
let caller_location = std::panic::Location::caller();
Expand Down

0 comments on commit 7ba8144

Please sign in to comment.