Skip to content

Commit 2059a62

Browse files
committed
Update UI tests for latest nightly.
1 parent b53a906 commit 2059a62

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

core/codegen/tests/ui-fail/responder-types.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ error[E0277]: the trait bound `usize: Responder<'_>` is not satisfied
6565
::: $WORKSPACE/core/lib/src/handler.rs
6666
|
6767
| pub fn from<T: Responder<'r>>(req: &Request, responder: T) -> Outcome<'r> {
68-
| ------------- required by this bound in `handler::<impl rocket::Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::from`
68+
| ------------- required by this bound in `handler::<impl Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::from`

core/codegen/tests/ui-fail/typed-uri-bad-type.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::Path, Option
5555
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Option<{integer}>>` for `Option<i32>`
5656
= note: required by `from_uri_param`
5757

58-
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::Path, std::result::Result<_, _>>` is not satisfied
58+
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not satisfied
5959
--> $DIR/typed-uri-bad-type.rs:65:43
6060
|
6161
65 | uri!(optionals: id = Some(10), name = Ok("bob".into()));
62-
| ^^ the trait `FromUriParam<rocket::http::uri::Path, std::result::Result<_, _>>` is not implemented for `std::string::String`
62+
| ^^ the trait `FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not implemented for `std::string::String`
6363
|
6464
= help: the following implementations were found:
6565
<std::string::String as FromUriParam<P, &'a str>>
6666
<std::string::String as FromUriParam<P, &'x &'a str>>
6767
<std::string::String as FromUriParam<P, &'x mut &'a str>>
6868
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
6969
and 2 others
70-
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, std::result::Result<_, _>>` for `std::result::Result<std::string::String, &RawStr>`
70+
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Result<_, _>>` for `Result<std::string::String, &RawStr>`
7171
= note: required by `from_uri_param`
7272

7373
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied

core/codegen/tests/ui-fail/uri_display_type_errors.stderr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is
2929
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
3030
|
3131
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
32+
= note: 1 redundant requirements hidden
3233
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
3334

3435
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
@@ -38,6 +39,7 @@ error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is
3839
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
3940
|
4041
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
42+
= note: 1 redundant requirements hidden
4143
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
4244

4345
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
@@ -47,6 +49,7 @@ error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is
4749
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
4850
|
4951
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
52+
= note: 1 redundant requirements hidden
5053
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
5154

5255
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Path>` is not satisfied

0 commit comments

Comments
 (0)