From c853e44ffce77b771069b6df6bd5adc1b78f1b2f Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 5 May 2026 13:57:13 +0200 Subject: [PATCH] chore: use a more recent nightly for axum-macros tests --- axum-macros/rust-toolchain | 2 +- .../debug_handler/fail/json_not_deserialize.stderr | 1 - .../debug_handler/fail/wrong_return_tuple.stderr | 1 - .../from_request/fail/generic_without_via.stderr | 7 +++++-- .../fail/generic_without_via_rejection.stderr | 7 +++++-- .../override_rejection_on_enum_without_via.stderr | 14 ++++++++++---- .../from_request/fail/parts_extracting_body.stderr | 6 ------ 7 files changed, 21 insertions(+), 17 deletions(-) diff --git a/axum-macros/rust-toolchain b/axum-macros/rust-toolchain index c55fe8ed..4dfbaabd 100644 --- a/axum-macros/rust-toolchain +++ b/axum-macros/rust-toolchain @@ -1 +1 @@ -nightly-2025-09-28 +nightly-2026-05-04 diff --git a/axum-macros/tests/debug_handler/fail/json_not_deserialize.stderr b/axum-macros/tests/debug_handler/fail/json_not_deserialize.stderr index d50c8c3a..bf3b8b3f 100644 --- a/axum-macros/tests/debug_handler/fail/json_not_deserialize.stderr +++ b/axum-macros/tests/debug_handler/fail/json_not_deserialize.stderr @@ -23,7 +23,6 @@ help: the trait `for<'de> serde_core::de::Deserialize<'de>` is not implemented f and $N others = note: required for `Struct` to implement `serde_core::de::DeserializeOwned` = note: required for `Json` to implement `FromRequest<()>` - = help: see issue #48214 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 1 + #![feature(trivial_bounds)] diff --git a/axum-macros/tests/debug_handler/fail/wrong_return_tuple.stderr b/axum-macros/tests/debug_handler/fail/wrong_return_tuple.stderr index 75fe5c1f..cae0249c 100644 --- a/axum-macros/tests/debug_handler/fail/wrong_return_tuple.stderr +++ b/axum-macros/tests/debug_handler/fail/wrong_return_tuple.stderr @@ -26,7 +26,6 @@ help: the trait `IntoResponseParts` is not implemented for `CustomIntoResponse` (T1, T2, T3, T4, T5, T6, T7) (T1, T2, T3, T4, T5, T6, T7, T8) and $N others - = help: see issue #48214 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 3 + #![feature(trivial_bounds)] diff --git a/axum-macros/tests/from_request/fail/generic_without_via.stderr b/axum-macros/tests/from_request/fail/generic_without_via.stderr index ecb18877..918b42a4 100644 --- a/axum-macros/tests/from_request/fail/generic_without_via.stderr +++ b/axum-macros/tests/from_request/fail/generic_without_via.stderr @@ -16,9 +16,12 @@ error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future {fo note: required by a bound in `axum::routing::get` --> $WORKSPACE/axum/src/routing/method_routing.rs | + | H: Handler, + | ^^^^^^^^^^^^^ required by this bound in `get` +... | top_level_handler_fn!(get, GET); - | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ + | ------------------------------- | | | | | required by a bound in this function - | required by this bound in `get` + | in this macro invocation = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/axum-macros/tests/from_request/fail/generic_without_via_rejection.stderr b/axum-macros/tests/from_request/fail/generic_without_via_rejection.stderr index c162a915..75738ed0 100644 --- a/axum-macros/tests/from_request/fail/generic_without_via_rejection.stderr +++ b/axum-macros/tests/from_request/fail/generic_without_via_rejection.stderr @@ -16,9 +16,12 @@ error[E0277]: the trait bound `fn(Extractor<()>) -> impl Future {fo note: required by a bound in `axum::routing::get` --> $WORKSPACE/axum/src/routing/method_routing.rs | + | H: Handler, + | ^^^^^^^^^^^^^ required by this bound in `get` +... | top_level_handler_fn!(get, GET); - | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ + | ------------------------------- | | | | | required by a bound in this function - | required by this bound in `get` + | in this macro invocation = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/axum-macros/tests/from_request/fail/override_rejection_on_enum_without_via.stderr b/axum-macros/tests/from_request/fail/override_rejection_on_enum_without_via.stderr index 418b5a05..055d13ea 100644 --- a/axum-macros/tests/from_request/fail/override_rejection_on_enum_without_via.stderr +++ b/axum-macros/tests/from_request/fail/override_rejection_on_enum_without_via.stderr @@ -16,11 +16,14 @@ error[E0277]: the trait bound `fn(MyExtractor) -> impl Future {hand note: required by a bound in `axum::routing::get` --> $WORKSPACE/axum/src/routing/method_routing.rs | + | H: Handler, + | ^^^^^^^^^^^^^ required by this bound in `get` +... | top_level_handler_fn!(get, GET); - | ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^ + | ------------------------------- | | | | | required by a bound in this function - | required by this bound in `get` + | in this macro invocation = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `fn(Result) -> impl Future {handler_result}: Handler<_, _>` is not satisfied @@ -35,9 +38,12 @@ error[E0277]: the trait bound `fn(Result) -> impl Futu note: required by a bound in `MethodRouter::::post` --> $WORKSPACE/axum/src/routing/method_routing.rs | + | H: Handler, + | ^^^^^^^^^^^^^ required by this bound in `MethodRouter::::post` +... | chained_handler_fn!(post, POST); - | ^^^^^^^^^^^^^^^^^^^^----^^^^^^^ + | ------------------------------- | | | | | required by a bound in this associated function - | required by this bound in `MethodRouter::::post` + | in this macro invocation = note: this error originates in the macro `chained_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/axum-macros/tests/from_request/fail/parts_extracting_body.stderr b/axum-macros/tests/from_request/fail/parts_extracting_body.stderr index e97be258..10a832be 100644 --- a/axum-macros/tests/from_request/fail/parts_extracting_body.stderr +++ b/axum-macros/tests/from_request/fail/parts_extracting_body.stderr @@ -16,9 +16,3 @@ error[E0277]: the trait bound `String: FromRequestParts<_>` is not satisfied `OriginalUri` implements `FromRequestParts` `Query` implements `FromRequestParts` and $N others - -error[E0282]: type annotations needed - --> tests/from_request/fail/parts_extracting_body.rs:5:11 - | -5 | body: String, - | ^^^^^^ cannot infer type