diff --git a/contrib/codegen/tests/ui-fail-nightly/database-types.stderr b/contrib/codegen/tests/ui-fail-nightly/database-types.stderr index b5b4f130..61b7c741 100644 --- a/contrib/codegen/tests/ui-fail-nightly/database-types.stderr +++ b/contrib/codegen/tests/ui-fail-nightly/database-types.stderr @@ -1,11 +1,11 @@ -error[E0277]: the trait bound `Unknown: rocket_contrib::databases::Poolable` is not satisfied +error[E0277]: the trait bound `Unknown: Poolable` is not satisfied --> $DIR/database-types.rs:7:10 | 7 | struct A(Unknown); - | ^^^^^^^ the trait `rocket_contrib::databases::Poolable` is not implemented for `Unknown` + | ^^^^^^^ the trait `Poolable` is not implemented for `Unknown` -error[E0277]: the trait bound `std::vec::Vec: rocket_contrib::databases::Poolable` is not satisfied +error[E0277]: the trait bound `Vec: Poolable` is not satisfied --> $DIR/database-types.rs:10:10 | 10 | struct B(Vec); - | ^^^^^^^^ the trait `rocket_contrib::databases::Poolable` is not implemented for `std::vec::Vec` + | ^^^^^^^^ the trait `Poolable` is not implemented for `Vec` diff --git a/core/codegen/tests/ui-fail-nightly/async-entry.stderr b/core/codegen/tests/ui-fail-nightly/async-entry.stderr index 39a6956c..1fc746a2 100644 --- a/core/codegen/tests/ui-fail-nightly/async-entry.stderr +++ b/core/codegen/tests/ui-fail-nightly/async-entry.stderr @@ -117,13 +117,13 @@ error[E0308]: mismatched types --> $DIR/async-entry.rs:37:9 | 37 | rocket::ignite() - | ^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `rocket::Rocket` + | ^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `Rocket` error[E0308]: mismatched types --> $DIR/async-entry.rs:46:9 | 46 | "hi".to_string() - | ^^^^^^^^^^^^^^^^ expected struct `rocket::Rocket`, found struct `std::string::String` + | ^^^^^^^^^^^^^^^^ expected struct `Rocket`, found struct `std::string::String` error[E0308]: mismatched types --> $DIR/async-entry.rs:26:21 @@ -136,7 +136,7 @@ error[E0308]: mismatched types 28 | | } | | ^- help: try adding a semicolon: `;` | |_____| - | expected `()`, found struct `rocket::Rocket` + | expected `()`, found struct `Rocket` error[E0308]: mismatched types --> $DIR/async-entry.rs:35:26 @@ -144,13 +144,13 @@ error[E0308]: mismatched types 35 | async fn rocket() -> String { | ^^^^^^ | | - | expected struct `rocket::Rocket`, found struct `std::string::String` + | expected struct `Rocket`, found struct `std::string::String` | expected due to this -error[E0277]: `main` has invalid return type `rocket::Rocket` +error[E0277]: `main` has invalid return type `Rocket` --> $DIR/async-entry.rs:96:20 | 96 | async fn main() -> rocket::Rocket { - | ^^^^^^^^^^^^^^ `main` can only return types that implement `std::process::Termination` + | ^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` | = help: consider using `()`, or a `Result` diff --git a/core/codegen/tests/ui-fail-nightly/catch.stderr b/core/codegen/tests/ui-fail-nightly/catch.stderr index 017ac1d4..90eb691c 100644 --- a/core/codegen/tests/ui-fail-nightly/catch.stderr +++ b/core/codegen/tests/ui-fail-nightly/catch.stderr @@ -66,7 +66,7 @@ error[E0308]: mismatched types --> $DIR/catch.rs:30:17 | 30 | fn f3(_request: &Request, other: bool) { } - | ^^^^^^^^ expected `&rocket::Request<'_>`, found struct `rocket::http::Status` + | ^^^^^^^^ expected `&rocket::Request<'_>`, found struct `Status` error[E0308]: mismatched types --> $DIR/catch.rs:30:34 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 60379299..7d3a56a5 100644 --- a/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr @@ -1,18 +1,18 @@ -error[E0277]: the trait bound `usize: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied --> $DIR/catch_type_errors.rs:6:30 | 6 | fn f1(_request: &Request) -> usize { - | ^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `usize` + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` -error[E0277]: the trait bound `bool: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied --> $DIR/catch_type_errors.rs:11:30 | 11 | fn f2(_request: &Request) -> bool { - | ^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `bool` + | ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` error[E0308]: mismatched types --> $DIR/catch_type_errors.rs:16:17 @@ -20,18 +20,18 @@ error[E0308]: mismatched types 16 | fn f3(_request: bool) -> usize { | ^^^^ expected `bool`, found `&rocket::Request<'_>` -error[E0277]: the trait bound `usize: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied --> $DIR/catch_type_errors.rs:16:26 | 16 | fn f3(_request: bool) -> usize { - | ^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `usize` + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` -error[E0277]: the trait bound `usize: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied --> $DIR/catch_type_errors.rs:21:12 | 21 | fn f4() -> usize { - | ^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `usize` + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` 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 9b201ac3..8d19b25e 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 @@ -1,11 +1,11 @@ -error[E0277]: the trait bound `Unknown: rocket::request::FromFormValue<'_>` is not satisfied +error[E0277]: the trait bound `Unknown: FromFormValue<'_>` is not satisfied --> $DIR/from_form_type_errors.rs:7:5 | 7 | field: Unknown, - | ^^^^^^^^^^^^^^ the trait `rocket::request::FromFormValue<'_>` is not implemented for `Unknown` + | ^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Unknown` -error[E0277]: the trait bound `Foo: rocket::request::FromFormValue<'_>` is not satisfied +error[E0277]: the trait bound `Foo: FromFormValue<'_>` is not satisfied --> $DIR/from_form_type_errors.rs:14:5 | 14 | field: Foo, - | ^^^^^^^^^^^^^^^^^ the trait `rocket::request::FromFormValue<'_>` is not implemented for `Foo` + | ^^^^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Foo` diff --git a/core/codegen/tests/ui-fail-nightly/responder-types.stderr b/core/codegen/tests/ui-fail-nightly/responder-types.stderr index 8bc601ec..80b97b8c 100644 --- a/core/codegen/tests/ui-fail-nightly/responder-types.stderr +++ b/core/codegen/tests/ui-fail-nightly/responder-types.stderr @@ -1,62 +1,62 @@ -error[E0277]: the trait bound `u8: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied --> $DIR/responder-types.rs:5:5 | 5 | thing: u8, - | ^^^^^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `u8` + | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` -error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied +error[E0277]: the trait bound `Header<'_>: From` is not satisfied --> $DIR/responder-types.rs:11:5 | 11 | other: u8, - | ^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` + | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>` | = help: the following implementations were found: - as std::convert::From<&rocket::http::Cookie<'_>>> - as std::convert::From<&rocket::http::CookieCrumb>> - as std::convert::From>> - as std::convert::From> - = note: required because of the requirements on the impl of `std::convert::Into>` for `u8` + as From<&Cookie<'_>>> + as From<&CookieCrumb>> + as From>> + as From> + = note: required because of the requirements on the impl of `Into>` for `u8` -error[E0277]: the trait bound `u8: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied --> $DIR/responder-types.rs:16:5 | 16 | thing: u8, - | ^^^^^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `u8` + | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` | - = note: required by `rocket::response::Responder::respond_to` + = note: required by `respond_to` -error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied +error[E0277]: the trait bound `Header<'_>: From` is not satisfied --> $DIR/responder-types.rs:17:5 | 17 | other: u8, - | ^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` + | ^^^^^^^^^ the trait `From` is not implemented for `Header<'_>` | = help: the following implementations were found: - as std::convert::From<&rocket::http::Cookie<'_>>> - as std::convert::From<&rocket::http::CookieCrumb>> - as std::convert::From>> - as std::convert::From> - = note: required because of the requirements on the impl of `std::convert::Into>` for `u8` + as From<&Cookie<'_>>> + as From<&CookieCrumb>> + as From>> + as From> + = note: required because of the requirements on the impl of `Into>` for `u8` -error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied +error[E0277]: the trait bound `Header<'_>: From` is not satisfied --> $DIR/responder-types.rs:24:5 | 24 | then: String, - | ^^^^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` + | ^^^^^^^^^^^^ the trait `From` is not implemented for `Header<'_>` | = help: the following implementations were found: - as std::convert::From<&rocket::http::Cookie<'_>>> - as std::convert::From<&rocket::http::CookieCrumb>> - as std::convert::From>> - as std::convert::From> - = note: required because of the requirements on the impl of `std::convert::Into>` for `std::string::String` + as From<&Cookie<'_>>> + as From<&CookieCrumb>> + as From>> + as From> + = note: required because of the requirements on the impl of `Into>` for `std::string::String` -error[E0277]: the trait bound `usize: rocket::response::Responder<'_, '_>` is not satisfied +error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied --> $DIR/responder-types.rs:28:13 | 28 | fn foo() -> usize { 0 } - | ^^^^^ the trait `rocket::response::Responder<'_, '_>` is not implemented for `usize` + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` | - = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` + = note: required by `handler::, Status, rocket::Data>>::from` 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 1192dbd6..92056465 100644 --- a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr @@ -1,61 +1,61 @@ -error[E0277]: the trait bound `Q: rocket::request::FromParam<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:6:7 | 6 | fn f0(foo: Q) {} - | ^^^^^^ the trait `rocket::request::FromParam<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromSegments<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied --> $DIR/route-type-errors.rs:9:7 | 9 | fn f1(foo: Q) {} - | ^^^^^^ the trait `rocket::request::FromSegments<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromSegments<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromFormValue<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromFormValue<'_>` is not satisfied --> $DIR/route-type-errors.rs:12:7 | 12 | fn f2(foo: Q) {} - | ^^^^^^ the trait `rocket::request::FromFormValue<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromQuery<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromQuery<'_>` is not satisfied --> $DIR/route-type-errors.rs:15:7 | 15 | fn f3(foo: Q) {} - | ^^^^^^ the trait `rocket::request::FromQuery<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromQuery<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::data::FromData` is not satisfied +error[E0277]: the trait bound `Q: FromData` is not satisfied --> $DIR/route-type-errors.rs:18:7 | 18 | fn f4(foo: Q) {} - | ^^^^^^ the trait `rocket::data::FromData` is not implemented for `Q` + | ^^^^^^ the trait `FromData` is not implemented for `Q` | - = note: required because of the requirements on the impl of `rocket::data::FromTransformedData<'_>` for `Q` + = note: required because of the requirements on the impl of `FromTransformedData<'_>` for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromRequest<'_, '_>` is not satisfied +error[E0277]: the trait bound `Q: FromRequest<'_, '_>` is not satisfied --> $DIR/route-type-errors.rs:21:7 | 21 | fn f5(a: Q, foo: Q) {} - | ^^^^ the trait `rocket::request::FromRequest<'_, '_>` is not implemented for `Q` + | ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromParam<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:21:13 | 21 | fn f5(a: Q, foo: Q) {} - | ^^^^^^ the trait `rocket::request::FromParam<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromRequest<'_, '_>` is not satisfied +error[E0277]: the trait bound `Q: FromRequest<'_, '_>` is not satisfied --> $DIR/route-type-errors.rs:24:7 | 24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} - | ^^^^ the trait `rocket::request::FromRequest<'_, '_>` is not implemented for `Q` + | ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromParam<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:24:13 | 24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} - | ^^^^^^ the trait `rocket::request::FromParam<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q` -error[E0277]: the trait bound `Q: rocket::request::FromParam<'_>` is not satisfied +error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:24:34 | 24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} - | ^^^^^^ the trait `rocket::request::FromParam<'_>` is not implemented for `Q` + | ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q` 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 c9e88aee..6ed27926 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 @@ -1,141 +1,141 @@ -error[E0277]: the trait bound `usize: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `usize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:42:23 | 42 | uri!(simple: id = "hi"); - | ^^^^ the trait `rocket::http::uri::FromUriParam` is not implemented for `usize` + | ^^^^ the trait `FromUriParam` is not implemented for `usize` | = help: the following implementations were found: - > - > - > - = note: required by `rocket::http::uri::FromUriParam::from_uri_param` + > + > + > + = note: required by `from_uri_param` -error[E0277]: the trait bound `usize: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `usize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:44:18 | 44 | uri!(simple: "hello"); - | ^^^^^^^ the trait `rocket::http::uri::FromUriParam` is not implemented for `usize` + | ^^^^^^^ the trait `FromUriParam` is not implemented for `usize` | = help: the following implementations were found: - > - > - > - = note: required by `rocket::http::uri::FromUriParam::from_uri_param` + > + > + > + = note: required by `from_uri_param` -error[E0277]: the trait bound `usize: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `usize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:46:23 | 46 | uri!(simple: id = 239239i64); - | ^^^^^^^^^ the trait `rocket::http::uri::FromUriParam` is not implemented for `usize` + | ^^^^^^^^^ the trait `FromUriParam` is not implemented for `usize` | = help: the following implementations were found: - > - > - > - = note: required by `rocket::http::uri::FromUriParam::from_uri_param` + > + > + > + = note: required by `from_uri_param` -error[E0277]: the trait bound `S: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `S: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:48:31 | 48 | uri!(not_uri_display: 10, S); - | ^ the trait `rocket::http::uri::FromUriParam` is not implemented for `S` + | ^ the trait `FromUriParam` is not implemented for `S` -error[E0277]: the trait bound `i32: rocket::http::uri::FromUriParam>` is not satisfied +error[E0277]: the trait bound `i32: FromUriParam>` is not satisfied --> $DIR/typed-uri-bad-type.rs:53:26 | 53 | uri!(optionals: id = Some(10), name = Ok("bob".into())); - | ^^^^^^^^ the trait `rocket::http::uri::FromUriParam>` is not implemented for `i32` + | ^^^^^^^^ the trait `FromUriParam>` is not implemented for `i32` | = help: the following implementations were found: - > - > - > - = note: required because of the requirements on the impl of `rocket::http::uri::FromUriParam>` for `std::option::Option` + > + > + > + = note: required because of the requirements on the impl of `FromUriParam>` for `Option` -error[E0277]: the trait bound `std::string::String: rocket::http::uri::FromUriParam>` is not satisfied +error[E0277]: the trait bound `std::string::String: FromUriParam>` is not satisfied --> $DIR/typed-uri-bad-type.rs:53:43 | 53 | uri!(optionals: id = Some(10), name = Ok("bob".into())); - | ^^^^^^^^^^^^^^^^ the trait `rocket::http::uri::FromUriParam>` is not implemented for `std::string::String` + | ^^^^^^^^^^^^^^^^ the trait `FromUriParam>` is not implemented for `std::string::String` | = help: the following implementations were found: - > - > - > - > + > + > + > + > and 2 others - = note: required because of the requirements on the impl of `rocket::http::uri::FromUriParam>` for `std::result::Result` + = note: required because of the requirements on the impl of `FromUriParam>` for `std::result::Result` -error[E0277]: the trait bound `isize: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `isize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:55:20 | 55 | uri!(simple_q: "hi"); - | ^^^^ the trait `rocket::http::uri::FromUriParam` is not implemented for `isize` + | ^^^^ the trait `FromUriParam` is not implemented for `isize` | = help: the following implementations were found: - > - > - > - = note: required by `rocket::http::uri::FromUriParam::from_uri_param` + > + > + > + = note: required by `from_uri_param` -error[E0277]: the trait bound `isize: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `isize: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:57:25 | 57 | uri!(simple_q: id = "hi"); - | ^^^^ the trait `rocket::http::uri::FromUriParam` is not implemented for `isize` + | ^^^^ the trait `FromUriParam` is not implemented for `isize` | = help: the following implementations were found: - > - > - > - = note: required by `rocket::http::uri::FromUriParam::from_uri_param` + > + > + > + = note: required by `from_uri_param` -error[E0277]: the trait bound `S: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `S: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:59:24 | 59 | uri!(other_q: 100, S); - | ^ the trait `rocket::http::uri::FromUriParam` is not implemented for `S` + | ^ the trait `FromUriParam` is not implemented for `S` -error[E0277]: the trait bound `S: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `S: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:61:26 | 61 | uri!(other_q: rest = S, id = 100); - | ^ the trait `rocket::http::uri::FromUriParam` is not implemented for `S` + | ^ the trait `FromUriParam` is not implemented for `S` -error[E0277]: the trait bound `S: rocket::http::uri::Ignorable` is not satisfied +error[E0277]: the trait bound `S: Ignorable` is not satisfied --> $DIR/typed-uri-bad-type.rs:36:29 | 36 | fn other_q(id: usize, rest: S) { } - | ^ the trait `rocket::http::uri::Ignorable` is not implemented for `S` + | ^ the trait `Ignorable` is not implemented for `S` ... 63 | uri!(other_q: rest = _, id = 100); | ---------------------------------- in this macro invocation | - ::: $WORKSPACE/core/http/src/uri/uri_display.rs:465:40 + ::: $WORKSPACE/core/http/src/uri/uri_display.rs | -465 | pub fn assert_ignorable>() { } - | ------------ required by this bound in `rocket::http::uri::assert_ignorable` + | pub fn assert_ignorable>() { } + | ------------ required by this bound in `assert_ignorable` | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `usize: rocket::http::uri::Ignorable` is not satisfied +error[E0277]: the trait bound `usize: Ignorable` is not satisfied --> $DIR/typed-uri-bad-type.rs:36:16 | 36 | fn other_q(id: usize, rest: S) { } - | ^^^^^ the trait `rocket::http::uri::Ignorable` is not implemented for `usize` + | ^^^^^ the trait `Ignorable` is not implemented for `usize` ... 65 | uri!(other_q: rest = S, id = _); | -------------------------------- in this macro invocation | - ::: $WORKSPACE/core/http/src/uri/uri_display.rs:465:40 + ::: $WORKSPACE/core/http/src/uri/uri_display.rs | -465 | pub fn assert_ignorable>() { } - | ------------ required by this bound in `rocket::http::uri::assert_ignorable` + | pub fn assert_ignorable>() { } + | ------------ required by this bound in `assert_ignorable` | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0277]: the trait bound `S: rocket::http::uri::FromUriParam` is not satisfied +error[E0277]: the trait bound `S: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:65:26 | 65 | uri!(other_q: rest = S, id = _); - | ^ the trait `rocket::http::uri::FromUriParam` is not implemented for `S` + | ^ the trait `FromUriParam` is not implemented for `S` 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 bd58d0ee..52f811f0 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 @@ -1,58 +1,58 @@ -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:6:13 | 6 | struct Bar1(BadType); - | ^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:10:5 | 10 | field: BadType, - | ^^^^^^^^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:16:5 | 16 | bad: BadType, - | ^^^^^^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:21:11 | 21 | Inner(BadType), - | ^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:27:9 | 27 | field: BadType, - | ^^^^^^^^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:35:9 | 35 | other: BadType, - | ^^^^^^^^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&&BadType` -error[E0277]: the trait bound `BadType: rocket::http::uri::UriDisplay` is not satisfied +error[E0277]: the trait bound `BadType: UriDisplay` is not satisfied --> $DIR/uri_display_type_errors.rs:40:12 | 40 | struct Baz(BadType); - | ^^^^^^^ the trait `rocket::http::uri::UriDisplay` is not implemented for `BadType` + | ^^^^^^^ the trait `UriDisplay` is not implemented for `BadType` | - = note: required because of the requirements on the impl of `rocket::http::uri::UriDisplay` for `&BadType` + = note: required because of the requirements on the impl of `UriDisplay` for `&BadType`