Skip to content

Commit

Permalink
Merge pull request #542 from CosmicHorrorDev/nightly-pain
Browse files Browse the repository at this point in the history
chore: Bump nightly version to fix the test suite
  • Loading branch information
Enselic committed May 2, 2024
2 parents de715e5 + 3eda1e4 commit b2a8ebe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/public_api.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#[test]
fn public_api() {
// NOTE: consider switching back to using `public_api::MINIMUM_NIGHTLY_RUST_VERSION` after the
// version is newer than the one set here
let nightly_version = "nightly-2023-09-18";
assert_eq!(
public_api::MINIMUM_NIGHTLY_RUST_VERSION,
"nightly-2023-08-25"
);

// Install a compatible nightly toolchain if it is missing
rustup_toolchain::install(public_api::MINIMUM_NIGHTLY_RUST_VERSION).unwrap();
rustup_toolchain::install(nightly_version).unwrap();

// Build rustdoc JSON
let rustdoc_json = rustdoc_json::Builder::default()
.toolchain(public_api::MINIMUM_NIGHTLY_RUST_VERSION)
.toolchain(nightly_version)
.build()
.unwrap();

Expand Down

0 comments on commit b2a8ebe

Please sign in to comment.