diff --git a/contrib/db_pools/codegen/tests/ui-fail-nightly/database-types.stderr b/contrib/db_pools/codegen/tests/ui-fail-nightly/database-types.stderr index 7ab774e4..3574666b 100644 --- a/contrib/db_pools/codegen/tests/ui-fail-nightly/database-types.stderr +++ b/contrib/db_pools/codegen/tests/ui-fail-nightly/database-types.stderr @@ -4,10 +4,11 @@ error[E0277]: the trait bound `Unknown: Pool` is not satisfied 7 | struct A(Unknown); | ^^^^^^^ the trait `Pool` is not implemented for `Unknown` | - ::: $WORKSPACE/contrib/db_pools/lib/src/database.rs +note: required by a bound in `rocket_db_pools::Database::Pool` + --> $DIR/database.rs:41:16 | - | type Pool: Pool; - | ---- required by this bound in `rocket_db_pools::Database::Pool` +41 | type Pool: Pool; + | ^^^^ required by this bound in `rocket_db_pools::Database::Pool` error[E0277]: the trait bound `Vec: Pool` is not satisfied --> $DIR/database-types.rs:11:10 @@ -15,7 +16,8 @@ error[E0277]: the trait bound `Vec: Pool` is not satisfied 11 | struct B(Vec); | ^^^^^^^^ the trait `Pool` is not implemented for `Vec` | - ::: $WORKSPACE/contrib/db_pools/lib/src/database.rs +note: required by a bound in `rocket_db_pools::Database::Pool` + --> $DIR/database.rs:41:16 | - | type Pool: Pool; - | ---- required by this bound in `rocket_db_pools::Database::Pool` +41 | type Pool: Pool; + | ^^^^ required by this bound in `rocket_db_pools::Database::Pool` diff --git a/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-types.stderr b/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-types.stderr index 371fb001..7143b4a8 100644 --- a/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-types.stderr +++ b/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-types.stderr @@ -4,10 +4,11 @@ error[E0277]: the trait bound `Unknown: Poolable` is not satisfied 6 | struct A(Unknown); | ^^^^^^^ the trait `Poolable` is not implemented for `Unknown` | - ::: $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs +note: required by a bound in `rocket_sync_db_pools::Connection` + --> $DIR/connection.rs:44:29 | - | pub struct Connection { - | -------- required by this bound in `rocket_sync_db_pools::Connection` +44 | pub struct Connection { + | ^^^^^^^^ required by this bound in `rocket_sync_db_pools::Connection` error[E0277]: the trait bound `Vec: Poolable` is not satisfied --> $DIR/database-types.rs:9:10 @@ -15,7 +16,8 @@ error[E0277]: the trait bound `Vec: Poolable` is not satisfied 9 | struct B(Vec); | ^^^^^^^^ the trait `Poolable` is not implemented for `Vec` | - ::: $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs +note: required by a bound in `rocket_sync_db_pools::Connection` + --> $DIR/connection.rs:44:29 | - | pub struct Connection { - | -------- required by this bound in `rocket_sync_db_pools::Connection` +44 | pub struct Connection { + | ^^^^^^^^ required by this bound in `rocket_sync_db_pools::Connection` diff --git a/core/codegen/tests/ui-fail-nightly/from_form.stderr b/core/codegen/tests/ui-fail-nightly/from_form.stderr index 11ec159c..508ace0f 100644 --- a/core/codegen/tests/ui-fail-nightly/from_form.stderr +++ b/core/codegen/tests/ui-fail-nightly/from_form.stderr @@ -492,6 +492,6 @@ error[E0308]: mismatched types help: try using a conversion method | 203 | #[field(default_with = Some("hi".to_string()))] - | ^^^^^^^^^^^^ + | ++++++++++++ 203 | #[field(default_with = Some("hi".to_string()))] - | ^^^^^^^^^^^^ + | ++++++++++++ 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 1ed7f2f3..3bf72a28 100644 --- a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr @@ -44,10 +44,11 @@ error[E0277]: the trait bound `Q: FromData<'_>` is not satisfied 18 | fn f4(foo: Q) {} | ^ the trait `FromData<'_>` is not implemented for `Q` | - ::: $WORKSPACE/core/lib/src/data/from_data.rs +note: required by a bound in `rocket::data::FromData::from_data` + --> $DIR/from_data.rs:194:41 | - | async fn from_data(req: &'r Request<'_>, data: Data<'r>) -> Outcome<'r, Self>; - | -- required by this bound in `rocket::data::FromData::from_data` +194 | async fn from_data(req: &'r Request<'_>, data: Data<'r>) -> Outcome<'r, Self>; + | ^^ required by this bound in `rocket::data::FromData::from_data` error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied --> $DIR/route-type-errors.rs:21:10 @@ -55,10 +56,11 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied 21 | fn f5(a: Q, foo: Q) {} | ^ the trait `FromRequest<'_>` is not implemented for `Q` | - ::: $WORKSPACE/core/lib/src/request/from_request.rs +note: required by a bound in `from_request` + --> $DIR/from_request.rs:388:48 | - | async fn from_request(request: &'r Request<'_>) -> Outcome; - | -- required by this bound in `from_request` +388 | async fn from_request(request: &'r Request<'_>) -> Outcome; + | ^^ required by this bound in `from_request` error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:21:18 @@ -78,10 +80,11 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied 24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} | ^ the trait `FromRequest<'_>` is not implemented for `Q` | - ::: $WORKSPACE/core/lib/src/request/from_request.rs +note: required by a bound in `from_request` + --> $DIR/from_request.rs:388:48 | - | async fn from_request(request: &'r Request<'_>) -> Outcome; - | -- required by this bound in `from_request` +388 | async fn from_request(request: &'r Request<'_>) -> Outcome; + | ^^ required by this bound in `from_request` error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied --> $DIR/route-type-errors.rs:24:18 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 848461e4..d0f3135a 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 @@ -162,10 +162,11 @@ error[E0277]: the trait bound `S: Ignorable` is n 66 | uri!(other_q(rest = _, id = 100)); | ^ the trait `Ignorable` is not implemented for `S` | - ::: $WORKSPACE/core/http/src/uri/fmt/uri_display.rs +note: required by a bound in `assert_ignorable` + --> $DIR/uri_display.rs:544:37 | - | pub fn assert_ignorable>() { } - | ------------ required by this bound in `assert_ignorable` +544 | pub fn assert_ignorable>() { } + | ^^^^^^^^^^^^ required by this bound in `assert_ignorable` error[E0277]: the trait bound `usize: Ignorable` is not satisfied --> $DIR/typed-uri-bad-type.rs:68:33 @@ -173,10 +174,11 @@ error[E0277]: the trait bound `usize: Ignorable` 68 | uri!(other_q(rest = S, id = _)); | ^ the trait `Ignorable` is not implemented for `usize` | - ::: $WORKSPACE/core/http/src/uri/fmt/uri_display.rs +note: required by a bound in `assert_ignorable` + --> $DIR/uri_display.rs:544:37 | - | pub fn assert_ignorable>() { } - | ------------ required by this bound in `assert_ignorable` +544 | pub fn assert_ignorable>() { } + | ^^^^^^^^^^^^ required by this bound in `assert_ignorable` error[E0277]: the trait bound `S: FromUriParam` is not satisfied --> $DIR/typed-uri-bad-type.rs:68:25