-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make nightly_error_messages feature compatible with latest nightly
- Loading branch information
Showing
18 changed files
with
86 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2023-09-23 | ||
nightly-2024-03-13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#![feature(diagnostic_namespace)] | ||
use axum_macros::debug_handler; | ||
|
||
#[debug_handler] | ||
|
30 changes: 15 additions & 15 deletions
30
axum-macros/tests/debug_handler/fail/argument_not_extractor.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
error[E0277]: the trait bound `bool: FromRequestParts<()>` is not satisfied | ||
--> tests/debug_handler/fail/argument_not_extractor.rs:5:24 | ||
error[E0277]: the trait bound `bool: FromRequest<(), axum_core::extract::private::ViaParts>` is not satisfied | ||
--> tests/debug_handler/fail/argument_not_extractor.rs:4:24 | ||
| | ||
5 | async fn handler(_foo: bool) {} | ||
| ^^^^ the trait `FromRequestParts<()>` is not implemented for `bool` | ||
4 | async fn handler(_foo: bool) {} | ||
| ^^^^ the trait `FromRequestParts<()>` is not implemented for `bool`, which is required by `bool: FromRequest<(), _>` | ||
| | ||
= note: Function argument is not a valid axum extractor. | ||
See `https://docs.rs/axum/0.7/axum/extract/index.html` for details | ||
= help: the following other types implement trait `FromRequestParts<S>`: | ||
<HeaderMap as FromRequestParts<S>> | ||
<Extension<T> as FromRequestParts<S>> | ||
<Method as FromRequestParts<S>> | ||
<axum::http::request::Parts as FromRequestParts<S>> | ||
<Uri as FromRequestParts<S>> | ||
<Version as FromRequestParts<S>> | ||
<Extensions as FromRequestParts<S>> | ||
<ConnectInfo<T> as FromRequestParts<S>> | ||
= help: the following other types implement trait `FromRequest<S, M>`: | ||
axum::body::Bytes | ||
Body | ||
Form<T> | ||
Json<T> | ||
axum::http::Request<Body> | ||
RawForm | ||
String | ||
Option<T> | ||
and $N others | ||
= note: required for `bool` to implement `FromRequest<(), axum_core::extract::private::ViaParts>` | ||
note: required by a bound in `__axum_macros_check_handler_0_from_request_check` | ||
--> tests/debug_handler/fail/argument_not_extractor.rs:5:24 | ||
--> tests/debug_handler/fail/argument_not_extractor.rs:4:24 | ||
| | ||
5 | async fn handler(_foo: bool) {} | ||
4 | async fn handler(_foo: bool) {} | ||
| ^^^^ required by this bound in `__axum_macros_check_handler_0_from_request_check` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#![feature(diagnostic_namespace)] | ||
use axum::{routing::get, Router}; | ||
use axum_macros::FromRequest; | ||
|
||
|
8 changes: 4 additions & 4 deletions
8
axum-macros/tests/from_request/fail/generic_without_via.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
axum-macros/tests/from_request/fail/generic_without_via_rejection.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#![feature(diagnostic_namespace)] | ||
use axum::{routing::get, Router}; | ||
use axum_macros::FromRequest; | ||
|
||
|
8 changes: 4 additions & 4 deletions
8
axum-macros/tests/from_request/fail/generic_without_via_rejection.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
axum-macros/tests/from_request/fail/override_rejection_on_enum_without_via.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
axum-macros/tests/from_request/fail/parts_extracting_body.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
error[E0277]: the trait bound `for<'de> MyPath: serde::de::Deserialize<'de>` is not satisfied | ||
error[E0277]: the trait bound `MyPath: serde::de::DeserializeOwned` is not satisfied | ||
--> tests/typed_path/fail/not_deserialize.rs:3:10 | ||
| | ||
3 | #[derive(TypedPath)] | ||
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `MyPath` | ||
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `MyPath`, which is required by `axum::extract::Path<MyPath>: FromRequestParts<S>` | ||
| | ||
= help: the following other types implement trait `serde::de::Deserialize<'de>`: | ||
bool | ||
char | ||
isize | ||
i8 | ||
i16 | ||
i32 | ||
i64 | ||
i128 | ||
and $N others | ||
= help: the trait `FromRequestParts<S>` is implemented for `axum::extract::Path<T>` | ||
= note: required for `MyPath` to implement `serde::de::DeserializeOwned` | ||
= note: required for `axum::extract::Path<MyPath>` to implement `FromRequestParts<S>` | ||
= note: this error originates in the derive macro `TypedPath` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters