diff --git a/core/codegen/tests/ui-fail-nightly/catch.stderr b/core/codegen/tests/ui-fail-nightly/catch.stderr index 0d02bebd..6e194fa4 100644 --- a/core/codegen/tests/ui-fail-nightly/catch.stderr +++ b/core/codegen/tests/ui-fail-nightly/catch.stderr @@ -66,9 +66,9 @@ error[E0308]: arguments to this function are incorrect --> tests/ui-fail-nightly/catch.rs:30:4 | 30 | fn f3(_request: &Request, _other: bool) { } - | ^^ -------- ---- an argument of type `bool` is missing + | ^^ -------- ---- argument #2 of type `bool` is missing | | - | unexpected argument of type `Status` + | unexpected argument #1 of type `Status` | note: function defined here --> tests/ui-fail-nightly/catch.rs:30:4 diff --git a/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr b/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr index 1f46c0f9..1467b6e1 100644 --- a/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr @@ -7,14 +7,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied @@ -26,14 +26,14 @@ error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied | ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others error[E0308]: mismatched types @@ -59,14 +59,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied @@ -78,12 +78,12 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others diff --git a/core/codegen/tests/ui-fail-nightly/from_form.stderr b/core/codegen/tests/ui-fail-nightly/from_form.stderr index 0432aedc..618faa87 100644 --- a/core/codegen/tests/ui-fail-nightly/from_form.stderr +++ b/core/codegen/tests/ui-fail-nightly/from_form.stderr @@ -543,13 +543,13 @@ error[E0277]: the trait bound `bool: From<&str>` is not satisfied | this tail expression is of type `&str` | = help: the following other types implement trait `From`: - > - > - > - > - > - > - > - > + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` + `bool` implements `From` = note: required for `&str` to implement `Into` = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/core/codegen/tests/ui-fail-nightly/from_form_type_errors.stderr b/core/codegen/tests/ui-fail-nightly/from_form_type_errors.stderr index 4775da11..abfc1b88 100644 --- a/core/codegen/tests/ui-fail-nightly/from_form_type_errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/from_form_type_errors.stderr @@ -131,15 +131,15 @@ error[E0277]: the trait bound `Unknown: FromForm<'r>` is not satisfied 7 | field: Unknown, | ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>` | - = help: the following other types implement trait `FromForm<'r>`: - <(A, B) as FromForm<'v>> - as FromForm<'v>> - as FromForm<'v>> - > - as FromForm<'v>> - as FromForm<'v>> - as FromForm<'v>> - > + = help: the following other types implement trait `FromFormField<'v>`: + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Unknown` to implement `FromForm<'r>` @@ -190,15 +190,15 @@ error[E0277]: the trait bound `Foo: FromForm<'r>` is not satisfied 14 | field: Foo, | ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `Foo: FromForm<'r>` | - = help: the following other types implement trait `FromForm<'r>`: - <(A, B) as FromForm<'v>> - as FromForm<'v>> - as FromForm<'v>> - > - as FromForm<'v>> - as FromForm<'v>> - as FromForm<'v>> - > + = help: the following other types implement trait `FromFormField<'v>`: + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Foo` to implement `FromForm<'r>` diff --git a/core/codegen/tests/ui-fail-nightly/responder-types.stderr b/core/codegen/tests/ui-fail-nightly/responder-types.stderr index 5305106b..a7cfdb13 100644 --- a/core/codegen/tests/ui-fail-nightly/responder-types.stderr +++ b/core/codegen/tests/ui-fail-nightly/responder-types.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied | ^^ the trait `Responder<'_, '_>` is not implemented for `u8` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others error[E0277]: the trait bound `Header<'_>: From` is not satisfied @@ -22,14 +22,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not satisfied | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `u8: Into>` | = help: the following other types implement trait `From`: - as From<&Cookie<'_>>> - as From<&ExpectCt>> - as From<&Frame>> - as From<&Hsts>> - as From<&NoSniff>> - as From<&Permission>> - as From<&Prefetch>> - as From<&Referrer>> + `Header<'static>` implements `From<&Cookie<'_>>` + `Header<'static>` implements `From<&ExpectCt>` + `Header<'static>` implements `From<&Frame>` + `Header<'static>` implements `From<&Hsts>` + `Header<'static>` implements `From<&NoSniff>` + `Header<'static>` implements `From<&Permission>` + `Header<'static>` implements `From<&Prefetch>` + `Header<'static>` implements `From<&Referrer>` and $N others = note: required for `u8` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -45,14 +45,14 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied | ^^ the trait `Responder<'_, '_>` is not implemented for `u8` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others error[E0277]: the trait bound `Header<'_>: From` is not satisfied @@ -62,14 +62,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not satisfied | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `u8: Into>` | = help: the following other types implement trait `From`: - as From<&Cookie<'_>>> - as From<&ExpectCt>> - as From<&Frame>> - as From<&Hsts>> - as From<&NoSniff>> - as From<&Permission>> - as From<&Prefetch>> - as From<&Referrer>> + `Header<'static>` implements `From<&Cookie<'_>>` + `Header<'static>` implements `From<&ExpectCt>` + `Header<'static>` implements `From<&Frame>` + `Header<'static>` implements `From<&Hsts>` + `Header<'static>` implements `From<&NoSniff>` + `Header<'static>` implements `From<&Permission>` + `Header<'static>` implements `From<&Prefetch>` + `Header<'static>` implements `From<&Referrer>` and $N others = note: required for `u8` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -85,14 +85,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not sat | ^^^^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `std::string::String: Into>` | = help: the following other types implement trait `From`: - as From<&Cookie<'_>>> - as From<&ExpectCt>> - as From<&Frame>> - as From<&Hsts>> - as From<&NoSniff>> - as From<&Permission>> - as From<&Prefetch>> - as From<&Referrer>> + `Header<'static>` implements `From<&Cookie<'_>>` + `Header<'static>` implements `From<&ExpectCt>` + `Header<'static>` implements `From<&Frame>` + `Header<'static>` implements `From<&Hsts>` + `Header<'static>` implements `From<&NoSniff>` + `Header<'static>` implements `From<&Permission>` + `Header<'static>` implements `From<&Prefetch>` + `Header<'static>` implements `From<&Referrer>` and $N others = note: required for `std::string::String` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -110,14 +110,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - <&'o [u8] as Responder<'r, 'o>> - <&'o str as Responder<'r, 'o>> - <() as Responder<'r, 'static>> - <(ContentType, R) as Responder<'r, 'o>> - <(Status, R) as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'static>> - as Responder<'r, 'static>> + `&'o [u8]` implements `Responder<'r, 'o>` + `&'o str` implements `Responder<'r, 'o>` + `()` implements `Responder<'r, 'static>` + `(ContentType, R)` implements `Responder<'r, 'o>` + `(Status, R)` implements `Responder<'r, 'o>` + `Accepted` implements `Responder<'r, 'o>` + `Arc<[u8]>` implements `Responder<'r, 'static>` + `Arc` implements `Responder<'r, 'static>` and $N others note: required by a bound in `route::handler::, Status, (rocket::Data<'o>, Status)>>::from` --> $WORKSPACE/core/lib/src/route/handler.rs diff --git a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr index d433134f..56f749e7 100644 --- a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - <&'a str as FromParam<'a>> - > - > - > - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> + `&'a str` implements `FromParam<'a>` + `IpAddr` implements `FromParam<'a>` + `Ipv4Addr` implements `FromParam<'a>` + `Ipv6Addr` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` and $N others error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied @@ -22,10 +22,10 @@ error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied | ^ the trait `FromSegments<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromSegments<'r>`: - > - >::Error> as FromSegments<'r>> - as FromSegments<'r>> - as FromSegments<'r>> + `PathBuf` implements `FromSegments<'_>` + `Result>::Error>` implements `FromSegments<'r>` + `Segments<'r, rocket::http::uri::fmt::Path>` implements `FromSegments<'r>` + `std::option::Option` implements `FromSegments<'r>` error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied --> tests/ui-fail-nightly/route-type-errors.rs:12:13 @@ -104,14 +104,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - <&'a str as FromParam<'a>> - > - > - > - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> + `&'a str` implements `FromParam<'a>` + `IpAddr` implements `FromParam<'a>` + `Ipv4Addr` implements `FromParam<'a>` + `Ipv6Addr` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` and $N others error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied @@ -138,14 +138,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - <&'a str as FromParam<'a>> - > - > - > - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> + `&'a str` implements `FromParam<'a>` + `IpAddr` implements `FromParam<'a>` + `Ipv4Addr` implements `FromParam<'a>` + `Ipv6Addr` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` and $N others error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied @@ -155,12 +155,12 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - <&'a str as FromParam<'a>> - > - > - > - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> - as FromParam<'a>> + `&'a str` implements `FromParam<'a>` + `IpAddr` implements `FromParam<'a>` + `Ipv4Addr` implements `FromParam<'a>` + `Ipv6Addr` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` + `NonZero` implements `FromParam<'a>` and $N others diff --git a/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr b/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr index f41127a9..ebd6ee76 100644 --- a/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr +++ b/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr @@ -14,9 +14,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -29,9 +29,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -44,9 +44,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `S: FromUriParam` is not satisfied @@ -59,14 +59,14 @@ error[E0277]: the trait bound `S: FromUriParam` | ---------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `rocket_uri_macro_not_uri_display` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -77,14 +77,14 @@ error[E0277]: the trait bound `S: FromUriParam` | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -98,9 +98,9 @@ error[E0277]: the trait bound `i32: FromUriParam`: - > - > - > + `i32` implements `FromUriParam` + `i32` implements `FromUriParam` + `i32` implements `FromUriParam` = note: required for `std::option::Option` to implement `FromUriParam>` = note: this error originates in the macro `rocket_uri_macro_optionals` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -114,12 +114,12 @@ error[E0277]: the trait bound `std::string::String: FromUriParam`: - > - > - > - > - > - > + `std::string::String` implements `FromUriParam` + `std::string::String` implements `FromUriParam` + `std::string::String` implements `FromUriParam` + `std::string::String` implements `FromUriParam` + `std::string::String` implements `FromUriParam` + `std::string::String` implements `FromUriParam` = note: required for `Result` to implement `FromUriParam>` = note: this error originates in the macro `rocket_uri_macro_optionals` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -133,9 +133,9 @@ error[E0277]: the trait bound `isize: FromUriParam`: - > - > - > + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `isize: FromUriParam` is not satisfied @@ -148,9 +148,9 @@ error[E0277]: the trait bound `isize: FromUriParam`: - > - > - > + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `S: FromUriParam` is not satisfied @@ -163,14 +163,14 @@ error[E0277]: the trait bound `S: FromUriParam | --------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -181,14 +181,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -202,14 +202,14 @@ error[E0277]: the trait bound `S: FromUriParam | --------------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -220,14 +220,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -271,14 +271,14 @@ error[E0277]: the trait bound `S: FromUriParam | ------------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -289,14 +289,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a [u8] as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> - <&'a std::path::Path as FromUriParam> + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a [u8]` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` + `&'a std::path::Path` implements `FromUriParam` and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -310,9 +310,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied @@ -343,9 +343,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied @@ -376,9 +376,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix>` is not satisfied @@ -391,10 +391,10 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix`: - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> + `rocket::http::uri::Absolute<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Absolute<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Reference<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Reference<'a>` implements `ValidRouteSuffix>` note: required by a bound in `RouteUriBuilder::with_suffix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -413,9 +413,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix>` is not satisfied @@ -428,10 +428,10 @@ error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix`: - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> + `rocket::http::uri::Absolute<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Absolute<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Reference<'a>` implements `ValidRouteSuffix>` + `rocket::http::uri::Reference<'a>` implements `ValidRouteSuffix>` note: required by a bound in `RouteUriBuilder::with_suffix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -447,9 +447,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -459,9 +459,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -471,9 +471,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `i32: FromUriParam>` is not satisfied @@ -483,9 +483,9 @@ error[E0277]: the trait bound `i32: FromUriParam>` is not implemented for `i32`, which is required by `std::option::Option: FromUriParam>` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `i32` implements `FromUriParam` + `i32` implements `FromUriParam` + `i32` implements `FromUriParam` = note: required for `std::option::Option` to implement `FromUriParam>` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -496,9 +496,9 @@ error[E0277]: the trait bound `isize: FromUriParam` is not implemented for `isize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `isize: FromUriParam` is not satisfied @@ -508,9 +508,9 @@ error[E0277]: the trait bound `isize: FromUriParam` is not implemented for `isize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` + `isize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -520,9 +520,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -532,9 +532,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -544,9 +544,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -556,7 +556,7 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > - > + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` + `usize` implements `FromUriParam` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/core/codegen/tests/ui-fail-nightly/uri_display_type_errors.stderr b/core/codegen/tests/ui-fail-nightly/uri_display_type_errors.stderr index a4cb38dd..abf7174a 100644 --- a/core/codegen/tests/ui-fail-nightly/uri_display_type_errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/uri_display_type_errors.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value` @@ -28,14 +28,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value` @@ -51,14 +51,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value` @@ -74,14 +74,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -99,14 +99,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -124,14 +124,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -149,14 +149,14 @@ error[E0277]: the trait bound `BadType: UriDisplay | ^^^^^^^ the trait `UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - <&T as UriDisplay

> - <&mut T as UriDisplay

> - as UriDisplay> - > - > - > - > - > + `&T` implements `UriDisplay

` + `&mut T` implements `UriDisplay

` + `BTreeMap` implements `UriDisplay` + `Bar1` implements `UriDisplay` + `Bar2` implements `UriDisplay` + `Bar3` implements `UriDisplay` + `Bar4` implements `UriDisplay` + `Bar5` implements `UriDisplay` and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value` diff --git a/core/codegen/tests/ui-fail-stable/async-entry.stderr b/core/codegen/tests/ui-fail-stable/async-entry.stderr index d955ada5..4078a0b3 100644 --- a/core/codegen/tests/ui-fail-stable/async-entry.stderr +++ b/core/codegen/tests/ui-fail-stable/async-entry.stderr @@ -103,7 +103,7 @@ error[E0728]: `await` is only allowed inside `async` functions and blocks --> tests/ui-fail-stable/async-entry.rs:73:42 | 72 | fn rocket() -> _ { - | ------ this is not `async` + | ---------------- this is not `async` 73 | let _ = rocket::build().launch().await; | ^^^^^ only allowed inside `async` functions and blocks diff --git a/core/codegen/tests/ui-fail-stable/catch_type_errors.stderr b/core/codegen/tests/ui-fail-stable/catch_type_errors.stderr index 844df3c8..c65b195b 100644 --- a/core/codegen/tests/ui-fail-stable/catch_type_errors.stderr +++ b/core/codegen/tests/ui-fail-stable/catch_type_errors.stderr @@ -7,14 +7,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - > - as Responder<'r, 'r>> - > + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied @@ -26,14 +26,14 @@ error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied | ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool` | = help: the following other types implement trait `Responder<'r, 'o>`: - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - > - as Responder<'r, 'r>> - > + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others error[E0308]: mismatched types @@ -59,14 +59,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - > - as Responder<'r, 'r>> - > + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied @@ -78,12 +78,12 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> - > - as Responder<'r, 'r>> - > + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others diff --git a/core/codegen/tests/ui-fail-stable/from_form_type_errors.stderr b/core/codegen/tests/ui-fail-stable/from_form_type_errors.stderr index c07b03d8..f3fa23ec 100644 --- a/core/codegen/tests/ui-fail-stable/from_form_type_errors.stderr +++ b/core/codegen/tests/ui-fail-stable/from_form_type_errors.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied | ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Unknown` to implement `FromForm<'r>` @@ -28,14 +28,14 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied | |_______________^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Unknown` to implement `FromForm<'r>` note: required because it appears within the type `_::FromFormGeneratedContext<'r>` @@ -59,14 +59,14 @@ error[E0277]: the trait bound `Foo: FromFormField<'_>` is not satisfied | ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `Foo: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Foo` to implement `FromForm<'r>` @@ -82,14 +82,14 @@ error[E0277]: the trait bound `Foo: FromFormField<'_>` is not satisfied | |____________^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `_::FromFormGeneratedContext<'r>: std::marker::Send` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Foo` to implement `FromForm<'r>` note: required because it appears within the type `_::FromFormGeneratedContext<'r>` @@ -113,14 +113,14 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied | ^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Unknown` to implement `FromForm<'r>` = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -132,14 +132,14 @@ error[E0277]: the trait bound `Unknown: FromForm<'r>` is not satisfied | ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>` | = help: the following other types implement trait `FromForm<'r>`: - > - > - as FromForm<'v>> - as FromForm<'v>> + <(A, B) as FromForm<'v>> as FromForm<'v>> - as FromForm<'v>> - as FromForm<'r>> - as FromForm<'r>> + as FromForm<'v>> + > + as FromForm<'v>> + as FromForm<'v>> + as FromForm<'v>> + > and $N others = note: required for `Unknown` to implement `FromForm<'r>` @@ -153,14 +153,14 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied | ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`, which is required by `Unknown: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Unknown` to implement `FromForm<'r>` = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -172,14 +172,14 @@ error[E0277]: the trait bound `Foo: FromFormField<'_>` is not satisfied | ^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `Foo: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Foo` to implement `FromForm<'r>` = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -191,14 +191,14 @@ error[E0277]: the trait bound `Foo: FromForm<'r>` is not satisfied | ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `Foo: FromForm<'r>` | = help: the following other types implement trait `FromForm<'r>`: - > - > - as FromForm<'v>> - as FromForm<'v>> + <(A, B) as FromForm<'v>> as FromForm<'v>> - as FromForm<'v>> - as FromForm<'r>> - as FromForm<'r>> + as FromForm<'v>> + > + as FromForm<'v>> + as FromForm<'v>> + as FromForm<'v>> + > and $N others = note: required for `Foo` to implement `FromForm<'r>` @@ -212,14 +212,14 @@ error[E0277]: the trait bound `Foo: FromFormField<'_>` is not satisfied | ^^^^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Foo`, which is required by `Foo: FromForm<'r>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Foo` to implement `FromForm<'r>` = note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/core/codegen/tests/ui-fail-stable/responder-types.stderr b/core/codegen/tests/ui-fail-stable/responder-types.stderr index 75b51985..162f0ea7 100644 --- a/core/codegen/tests/ui-fail-stable/responder-types.stderr +++ b/core/codegen/tests/ui-fail-stable/responder-types.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied | ^^ the trait `Responder<'_, '_>` is not implemented for `u8` | = help: the following other types implement trait `Responder<'r, 'o>`: - > - > - > - > - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others error[E0277]: the trait bound `Header<'_>: From` is not satisfied @@ -22,14 +22,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not satisfied | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `u8: Into>` | = help: the following other types implement trait `From`: - as From>> - as From> - as From> as From<&Cookie<'_>>> - as From<&Referrer>> as From<&ExpectCt>> - as From<&NoSniff>> + as From<&Frame>> as From<&Hsts>> + as From<&NoSniff>> + as From<&Permission>> + as From<&Prefetch>> + as From<&Referrer>> and $N others = note: required for `u8` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -45,14 +45,14 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied | ^^ the trait `Responder<'_, '_>` is not implemented for `u8` | = help: the following other types implement trait `Responder<'r, 'o>`: - > - > - > - > - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others error[E0277]: the trait bound `Header<'_>: From` is not satisfied @@ -62,14 +62,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not satisfied | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `u8: Into>` | = help: the following other types implement trait `From`: - as From>> - as From> - as From> as From<&Cookie<'_>>> - as From<&Referrer>> as From<&ExpectCt>> - as From<&NoSniff>> + as From<&Frame>> as From<&Hsts>> + as From<&NoSniff>> + as From<&Permission>> + as From<&Prefetch>> + as From<&Referrer>> and $N others = note: required for `u8` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -85,14 +85,14 @@ error[E0277]: the trait bound `Header<'_>: From` is not sat | ^^^^^^^^^^^^ the trait `From` is not implemented for `Header<'_>`, which is required by `std::string::String: Into>` | = help: the following other types implement trait `From`: - as From>> - as From> - as From> as From<&Cookie<'_>>> - as From<&Referrer>> as From<&ExpectCt>> - as From<&NoSniff>> + as From<&Frame>> as From<&Hsts>> + as From<&NoSniff>> + as From<&Permission>> + as From<&Prefetch>> + as From<&Referrer>> and $N others = note: required for `std::string::String` to implement `Into>` note: required by a bound in `Response::<'r>::set_header` @@ -110,14 +110,14 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | = help: the following other types implement trait `Responder<'r, 'o>`: - > - > - > - > - as Responder<'r, 'static>> - as Responder<'r, 'static>> - as Responder<'r, 'o>> - as Responder<'r, 'o>> + <&'o [u8] as Responder<'r, 'o>> + <&'o str as Responder<'r, 'o>> + <() as Responder<'r, 'static>> + <(ContentType, R) as Responder<'r, 'o>> + <(Status, R) as Responder<'r, 'o>> + as Responder<'r, 'o>> + as Responder<'r, 'static>> + as Responder<'r, 'static>> and $N others note: required by a bound in `route::handler::, Status, (rocket::Data<'o>, Status)>>::from` --> $WORKSPACE/core/lib/src/route/handler.rs diff --git a/core/codegen/tests/ui-fail-stable/route-type-errors.stderr b/core/codegen/tests/ui-fail-stable/route-type-errors.stderr index 0fdfc510..8990d7f2 100644 --- a/core/codegen/tests/ui-fail-stable/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail-stable/route-type-errors.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - > - > - > - > - > - > - > - > + <&'a str as FromParam<'a>> + > + > + > + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> and $N others error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied @@ -22,10 +22,10 @@ error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied | ^ the trait `FromSegments<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromSegments<'r>`: - as FromSegments<'r>> > - as FromSegments<'r>> >::Error> as FromSegments<'r>> + as FromSegments<'r>> + as FromSegments<'r>> error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied --> tests/ui-fail-stable/route-type-errors.rs:12:13 @@ -34,14 +34,14 @@ error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied | ^ the trait `FromFormField<'_>` is not implemented for `Q`, which is required by `Q: FromForm<'_>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Q` to implement `FromForm<'_>` @@ -52,14 +52,14 @@ error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied | ^ the trait `FromFormField<'_>` is not implemented for `Q`, which is required by `Q: FromForm<'_>` | = help: the following other types implement trait `FromFormField<'v>`: - bool - char - isize - i8 - i16 - i32 - i64 - i128 + &'v [u8] + &'v str + Capped<&'v [u8]> + Capped<&'v str> + Capped> + Capped> + Capped + Cow<'v, str> and $N others = note: required for `Q` to implement `FromForm<'_>` @@ -70,14 +70,14 @@ error[E0277]: the trait bound `Q: FromData<'_>` is not satisfied | ^ the trait `FromData<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromData<'r>`: - rocket::Data<'r> - Cow<'_, str> - Capped> - Capped> - Capped - Capped> - Capped<&'r str> + &'r RawStr + &'r [u8] + &'r str Capped<&'r RawStr> + Capped<&'r [u8]> + Capped<&'r str> + Capped> + Capped> and $N others error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied @@ -87,14 +87,14 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied | ^ the trait `FromRequest<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromRequest<'r>`: - ProxyProto<'r> - Method - Outcome>::Error), Status> - Flash<&'r CookieJar<'r>> - rocket::Shutdown - IpAddr - std::net::SocketAddr - std::option::Option + &'r Accept + &'r ContentType + &'r CookieJar<'r> + &'r Endpoint + &'r Host<'r> + &'r Limits + &'r Route + &'r rocket::Config and $N others error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied @@ -104,14 +104,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - > - > - > - > - > - > - > - > + <&'a str as FromParam<'a>> + > + > + > + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> and $N others error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied @@ -121,14 +121,14 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied | ^ the trait `FromRequest<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromRequest<'r>`: - ProxyProto<'r> - Method - Outcome>::Error), Status> - Flash<&'r CookieJar<'r>> - rocket::Shutdown - IpAddr - std::net::SocketAddr - std::option::Option + &'r Accept + &'r ContentType + &'r CookieJar<'r> + &'r Endpoint + &'r Host<'r> + &'r Limits + &'r Route + &'r rocket::Config and $N others error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied @@ -138,14 +138,14 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - > - > - > - > - > - > - > - > + <&'a str as FromParam<'a>> + > + > + > + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> and $N others error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied @@ -155,12 +155,12 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied | ^ the trait `FromParam<'_>` is not implemented for `Q` | = help: the following other types implement trait `FromParam<'a>`: - > - > - > - > - > - > - > - > + <&'a str as FromParam<'a>> + > + > + > + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> + as FromParam<'a>> and $N others diff --git a/core/codegen/tests/ui-fail-stable/typed-uri-bad-type.stderr b/core/codegen/tests/ui-fail-stable/typed-uri-bad-type.stderr index 6b349494..4722ff7e 100644 --- a/core/codegen/tests/ui-fail-stable/typed-uri-bad-type.stderr +++ b/core/codegen/tests/ui-fail-stable/typed-uri-bad-type.stderr @@ -14,9 +14,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -29,9 +29,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -44,9 +44,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `S: FromUriParam` is not satisfied @@ -59,14 +59,14 @@ error[E0277]: the trait bound `S: FromUriParam` | ---------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `rocket_uri_macro_not_uri_display` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -77,14 +77,14 @@ error[E0277]: the trait bound `S: FromUriParam` | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -98,9 +98,9 @@ error[E0277]: the trait bound `i32: FromUriParam`: - > > > + > = note: required for `std::option::Option` to implement `FromUriParam>` = note: this error originates in the macro `rocket_uri_macro_optionals` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -114,12 +114,12 @@ error[E0277]: the trait bound `std::string::String: FromUriParam`: - > - > - > > > > + > + > + > = note: required for `Result` to implement `FromUriParam>` = note: this error originates in the macro `rocket_uri_macro_optionals` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -133,9 +133,9 @@ error[E0277]: the trait bound `isize: FromUriParam`: - > > > + > = note: this error originates in the macro `rocket_uri_macro_simple_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `isize: FromUriParam` is not satisfied @@ -148,9 +148,9 @@ error[E0277]: the trait bound `isize: FromUriParam`: - > > > + > = note: this error originates in the macro `rocket_uri_macro_simple_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `S: FromUriParam` is not satisfied @@ -163,14 +163,14 @@ error[E0277]: the trait bound `S: FromUriParam | --------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -181,14 +181,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -202,14 +202,14 @@ error[E0277]: the trait bound `S: FromUriParam | --------------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -220,14 +220,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -238,8 +238,8 @@ error[E0277]: the trait bound `S: Ignorable` is n | ^ the trait `Ignorable` is not implemented for `S` | = help: the following other types implement trait `Ignorable

`: - std::option::Option Result + std::option::Option note: required by a bound in `assert_ignorable` --> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs | @@ -253,8 +253,8 @@ error[E0277]: the trait bound `usize: Ignorable` | ^ the trait `Ignorable` is not implemented for `usize` | = help: the following other types implement trait `Ignorable

`: - std::option::Option Result + std::option::Option note: required by a bound in `assert_ignorable` --> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs | @@ -271,14 +271,14 @@ error[E0277]: the trait bound `S: FromUriParam | ------------------------------- in this macro invocation | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `rocket_uri_macro_other_q` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -289,14 +289,14 @@ error[E0277]: the trait bound `S: FromUriParam | ^ the trait `FromUriParam` is not implemented for `S` | = help: the following other types implement trait `FromUriParam`: - > - > - > - > - > - > - > - > + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a [u8] as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> + <&'a std::path::Path as FromUriParam> and $N others = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -310,9 +310,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied @@ -325,8 +325,8 @@ error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefi | required by a bound introduced by this call | = help: the following other types implement trait `ValidRoutePrefix`: - rocket::http::uri::Origin<'a> rocket::http::uri::Absolute<'a> + rocket::http::uri::Origin<'a> note: required by a bound in `RouteUriBuilder::with_prefix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -343,9 +343,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied @@ -358,8 +358,8 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is | required by a bound introduced by this call | = help: the following other types implement trait `ValidRoutePrefix`: - rocket::http::uri::Origin<'a> rocket::http::uri::Absolute<'a> + rocket::http::uri::Origin<'a> note: required by a bound in `RouteUriBuilder::with_prefix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -376,9 +376,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix>` is not satisfied @@ -391,10 +391,10 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix`: - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> as ValidRouteSuffix>> + as ValidRouteSuffix>> + as ValidRouteSuffix>> + as ValidRouteSuffix>> note: required by a bound in `RouteUriBuilder::with_suffix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -413,9 +413,9 @@ error[E0277]: the trait bound `usize: FromUriParam`: - > - > > + > + > = note: this error originates in the macro `rocket_uri_macro_simple` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix>` is not satisfied @@ -428,10 +428,10 @@ error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix`: - as ValidRouteSuffix>> - as ValidRouteSuffix>> - as ValidRouteSuffix>> as ValidRouteSuffix>> + as ValidRouteSuffix>> + as ValidRouteSuffix>> + as ValidRouteSuffix>> note: required by a bound in `RouteUriBuilder::with_suffix` --> $WORKSPACE/core/http/src/uri/fmt/formatter.rs | @@ -447,9 +447,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -459,9 +459,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -471,9 +471,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `i32: FromUriParam>` is not satisfied @@ -483,9 +483,9 @@ error[E0277]: the trait bound `i32: FromUriParam>` is not implemented for `i32`, which is required by `std::option::Option: FromUriParam>` | = help: the following other types implement trait `FromUriParam`: - > > > + > = note: required for `std::option::Option` to implement `FromUriParam>` = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -496,9 +496,9 @@ error[E0277]: the trait bound `isize: FromUriParam` is not implemented for `isize` | = help: the following other types implement trait `FromUriParam`: - > > > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `isize: FromUriParam` is not satisfied @@ -508,9 +508,9 @@ error[E0277]: the trait bound `isize: FromUriParam` is not implemented for `isize` | = help: the following other types implement trait `FromUriParam`: - > > > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -520,9 +520,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -532,9 +532,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -544,9 +544,9 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `usize: FromUriParam` is not satisfied @@ -556,7 +556,7 @@ error[E0277]: the trait bound `usize: FromUriParam` is not implemented for `usize` | = help: the following other types implement trait `FromUriParam`: - > - > > + > + > = note: this error originates in the macro `::rocket::rocket_internal_uri` which comes from the expansion of the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/core/codegen/tests/ui-fail-stable/uri_display_type_errors.stderr b/core/codegen/tests/ui-fail-stable/uri_display_type_errors.stderr index 05f5b636..192dc514 100644 --- a/core/codegen/tests/ui-fail-stable/uri_display_type_errors.stderr +++ b/core/codegen/tests/ui-fail-stable/uri_display_type_errors.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value` @@ -28,14 +28,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value` @@ -51,14 +51,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value` @@ -74,14 +74,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -99,14 +99,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -124,14 +124,14 @@ error[E0277]: the trait bound `BadType: UriDisplay` is not implemented for `BadType`, which is required by `&&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` = note: 1 redundant requirement hidden @@ -149,14 +149,14 @@ error[E0277]: the trait bound `BadType: UriDisplay | ^^^^^^^ the trait `UriDisplay` is not implemented for `BadType`, which is required by `&BadType: UriDisplay` | = help: the following other types implement trait `UriDisplay

`: - > - > - > - > - > - > - > - > + <&T as UriDisplay

> + <&mut T as UriDisplay

> + as UriDisplay> + > + > + > + > + > and $N others = note: required for `&BadType` to implement `UriDisplay` note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`