diff --git a/.github/workflows/pull-request-bot.yml b/.github/workflows/pull-request-bot.yml index fc5d0110c5293e08f02d51264193a1f759ed5982..313e8e8ee56dcf906176cd415380cc44f1b8149a 100644 --- a/.github/workflows/pull-request-bot.yml +++ b/.github/workflows/pull-request-bot.yml @@ -30,7 +30,7 @@ env: apt_dependencies: libssl-dev gnuplot jq java_version: 11 rust_toolchain_components: clippy,rustfmt - rust_nightly_version: nightly-2023-10-10 + rust_nightly_version: nightly-2024-02-07 jobs: generate-diff: diff --git a/rust-runtime/aws-smithy-async/src/test_util.rs b/rust-runtime/aws-smithy-async/src/test_util.rs index dd7eacfd89568c32a72b3aa2f800071263f8c56d..78b69d969fc99964efe0a652cc0b37b32765079f 100644 --- a/rust-runtime/aws-smithy-async/src/test_util.rs +++ b/rust-runtime/aws-smithy-async/src/test_util.rs @@ -189,6 +189,7 @@ impl InstantSleep { /// task.await.expect("successful completion"); /// # }; /// ``` +#[allow(dead_code)] // unused fields retained for their `Drop` impls pub struct CapturedSleep<'a>(oneshot::Sender<()>, &'a SleepGate, Duration); impl CapturedSleep<'_> { /// Allow the calling code to advance past the call to [`AsyncSleep::sleep`] diff --git a/rust-runtime/aws-smithy-checksums/Cargo.toml b/rust-runtime/aws-smithy-checksums/Cargo.toml index 46c912efd419d5299a89fda11f7ccbb289c47b61..985877fdf2275c4447865788bb9d9e42a4665d9e 100644 --- a/rust-runtime/aws-smithy-checksums/Cargo.toml +++ b/rust-runtime/aws-smithy-checksums/Cargo.toml @@ -16,7 +16,7 @@ repository = "https://github.com/smithy-lang/smithy-rs" aws-smithy-http = { path = "../aws-smithy-http" } aws-smithy-types = { path = "../aws-smithy-types" } bytes = "1" -crc32c = "0.6.2" +crc32c = "0.6.5" crc32fast = "1.3" hex = "0.4.3" http = "0.2.8" diff --git a/rust-runtime/aws-smithy-http-server/src/macros.rs b/rust-runtime/aws-smithy-http-server/src/macros.rs index 7f70ba55626222c2035ccd08b6ef1468f69c21a4..0bb2f4e352067658580b9fcb51fc9556238ce2fc 100644 --- a/rust-runtime/aws-smithy-http-server/src/macros.rs +++ b/rust-runtime/aws-smithy-http-server/src/macros.rs @@ -83,8 +83,6 @@ macro_rules! opaque_future { }; } -pub use opaque_future; - macro_rules! convert_to_request_rejection { ($from:ty, $to:ident) => { impl From<$from> for RequestRejection { diff --git a/rust-runtime/aws-smithy-runtime-api/src/shared.rs b/rust-runtime/aws-smithy-runtime-api/src/shared.rs index cd15a135062d77f3d458a5a0088ec98325190a41..19405451ce03fb38af183515d5e1fdf4f6952b9d 100644 --- a/rust-runtime/aws-smithy-runtime-api/src/shared.rs +++ b/rust-runtime/aws-smithy-runtime-api/src/shared.rs @@ -202,7 +202,7 @@ mod tests { impl Thing for Thingamajig {} #[derive(Debug)] - struct SharedThing(Arc); + struct SharedThing(#[allow(dead_code)] Arc); impl Thing for SharedThing {} impl SharedThing { fn new(thing: impl Thing + 'static) -> Self { diff --git a/rust-runtime/aws-smithy-runtime/src/test_util/capture_test_logs.rs b/rust-runtime/aws-smithy-runtime/src/test_util/capture_test_logs.rs index 86d31d43bbc972c643206e3baff35b916b2a885b..92b450c1151d55ef1cd6af3d8bedaa988ceac656 100644 --- a/rust-runtime/aws-smithy-runtime/src/test_util/capture_test_logs.rs +++ b/rust-runtime/aws-smithy-runtime/src/test_util/capture_test_logs.rs @@ -12,7 +12,7 @@ use tracing_subscriber::fmt::TestWriter; /// A guard that resets log capturing upon being dropped. #[derive(Debug)] -pub struct LogCaptureGuard(DefaultGuard); +pub struct LogCaptureGuard(#[allow(dead_code)] DefaultGuard); /// Capture logs from this test. /// diff --git a/rust-runtime/aws-smithy-types/src/type_erasure.rs b/rust-runtime/aws-smithy-types/src/type_erasure.rs index 86533cb9f3f0896bc44e4b6624e6bfdce9484122..f209008a5cf0291d78198e01435b7ee3a8a9633f 100644 --- a/rust-runtime/aws-smithy-types/src/type_erasure.rs +++ b/rust-runtime/aws-smithy-types/src/type_erasure.rs @@ -233,9 +233,9 @@ mod tests { use std::fmt; #[derive(Debug)] - struct Foo(&'static str); + struct Foo(#[allow(dead_code)] &'static str); #[derive(Debug)] - struct Bar(isize); + struct Bar(#[allow(dead_code)] isize); #[derive(Debug, Clone, PartialEq, Eq)] struct TestErr { diff --git a/tools/ci-build/Dockerfile b/tools/ci-build/Dockerfile index 0fe17e5c76306a6f2a6eb42d865f67160bdf4492..d6262863c7a79628682c9ccc36393eddcae84869 100644 --- a/tools/ci-build/Dockerfile +++ b/tools/ci-build/Dockerfile @@ -7,7 +7,7 @@ ARG base_image=public.ecr.aws/amazonlinux/amazonlinux:2023 ARG rust_stable_version=1.74.1 -ARG rust_nightly_version=nightly-2023-10-10 +ARG rust_nightly_version=nightly-2024-02-07 FROM ${base_image} AS bare_base_image RUN yum -y updateinfo @@ -96,7 +96,7 @@ ARG cargo_deny_version=0.13.5 RUN cargo install cargo-deny --locked --version ${cargo_deny_version} FROM install_rust AS cargo_udeps -ARG cargo_udeps_version=0.1.42 +ARG cargo_udeps_version=0.1.46 ARG rust_nightly_version RUN cargo +${rust_nightly_version} install cargo-udeps --locked --version ${cargo_udeps_version} @@ -109,7 +109,7 @@ ARG cargo_minimal_versions_version=0.1.19 RUN cargo install cargo-minimal-versions --locked --version ${cargo_minimal_versions_version} FROM install_rust AS cargo_check_external_types -ARG cargo_check_external_types_version=0.1.8 +ARG cargo_check_external_types_version=0.1.11 RUN cargo install cargo-check-external-types --locked --version ${cargo_check_external_types_version} FROM install_rust AS maturin