Update UI tests for latest nightly.

This commit is contained in:
Sergio Benitez 2021-07-21 01:20:53 -07:00
parent 534f43c223
commit 7761911847
4 changed files with 318 additions and 210 deletions

View File

@ -4,7 +4,11 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
6 | fn f1(_request: &Request) -> usize {
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
--> $DIR/catch_type_errors.rs:11:30
@ -12,7 +16,11 @@ error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
11 | fn f2(_request: &Request) -> bool {
| ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> $DIR/catch_type_errors.rs:16:17
@ -26,7 +34,11 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
16 | fn f3(_request: bool) -> usize {
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
--> $DIR/catch_type_errors.rs:21:12
@ -34,4 +46,8 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
21 | fn f4() -> usize {
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -4,7 +4,11 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
5 | thing: u8,
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
--> $DIR/responder-types.rs:11:5
@ -26,7 +30,11 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
16 | thing: u8,
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
= note: required by `respond_to`
note: required by `respond_to`
--> $DIR/responder.rs:298:5
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
--> $DIR/responder-types.rs:17:5
@ -62,4 +70,8 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
28 | fn foo() -> usize { 0 }
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= note: required by `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
note: required by `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
--> $DIR/handler.rs:188:5
|
188 | pub fn from<R: Responder<'r, 'o>>(req: &'r Request<'_>, responder: R) -> Outcome<'r> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -4,7 +4,11 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
6 | fn f0(foo: Q) {}
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
= note: required by `from_param`
note: required by `from_param`
--> $DIR/from_param.rs:183:5
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied
--> $DIR/route-type-errors.rs:9:12
@ -12,7 +16,11 @@ error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied
9 | fn f1(foo: Q) {}
| ^ the trait `FromSegments<'_>` is not implemented for `Q`
|
= note: required by `from_segments`
note: required by `from_segments`
--> $DIR/from_param.rs:291:5
|
291 | fn from_segments(segments: Segments<'r, Path>) -> Result<Self, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied
--> $DIR/route-type-errors.rs:12:12
@ -58,7 +66,11 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
21 | fn f5(a: Q, foo: Q) {}
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
= note: required by `from_param`
note: required by `from_param`
--> $DIR/from_param.rs:183:5
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied
--> $DIR/route-type-errors.rs:24:10
@ -77,7 +89,11 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
= note: required by `from_param`
note: required by `from_param`
--> $DIR/from_param.rs:183:5
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
--> $DIR/route-type-errors.rs:24:39
@ -85,4 +101,8 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
= note: required by `from_param`
note: required by `from_param`
--> $DIR/from_param.rs:183:5
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -14,7 +14,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:47:17
@ -26,7 +30,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, i64>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:49:22
@ -38,7 +46,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:51:30
@ -46,7 +58,11 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>`
51 | uri!(not_uri_display(10, S));
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Path, _>` is not implemented for `S`
|
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:56:25
@ -59,7 +75,11 @@ error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, s
<i32 as FromUriParam<P, &'x mut i32>>
<i32 as FromUriParam<P, i32>>
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` for `std::option::Option<i32>`
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:56:42
@ -74,7 +94,11 @@ error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::u
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
and 2 others
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` for `Result<std::string::String, &str>`
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:58:19
@ -86,7 +110,11 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:60:24
@ -98,7 +126,11 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:62:23
@ -106,7 +138,11 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
62 | uri!(other_q(100, S));
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:64:25
@ -114,7 +150,11 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
64 | uri!(other_q(rest = S, id = 100));
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `S: Ignorable<rocket::http::uri::fmt::Query>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:66:25
@ -144,7 +184,11 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
68 | uri!(other_q(rest = S, id = _));
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:77:40
@ -156,7 +200,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied
--> $DIR/typed-uri-bad-type.rs:77:15
@ -174,7 +222,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied
--> $DIR/typed-uri-bad-type.rs:78:15
@ -192,7 +244,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:81:37
@ -210,7 +266,11 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
= note: required by `from_uri_param`
note: required by `from_uri_param`
--> $DIR/from_uri_param.rs:192:5
|
192 | fn from_uri_param(param: T) -> Self::Target;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:82:37