From 3eda1e466913a3de4c8955763a27eb897f088f08 Mon Sep 17 00:00:00 2001 From: Cosmic Horror Date: Thu, 2 May 2024 12:37:02 -0600 Subject: [PATCH] chore: Bump nightly version to fix the test suite --- tests/public_api.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/public_api.rs b/tests/public_api.rs index 6d1776c1..1568863c 100644 --- a/tests/public_api.rs +++ b/tests/public_api.rs @@ -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();