Skip to content

Commit

Permalink
Update UI tests for latest rustc.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Aug 25, 2023
1 parent fc76bf7 commit 695cf3a
Show file tree
Hide file tree
Showing 8 changed files with 278 additions and 284 deletions.
2 changes: 1 addition & 1 deletion core/codegen/tests/ui-fail-nightly/catch.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ note: function defined here
|
30 | fn f3(_request: &Request, other: bool) { }
| ^^ ------------------ -----------
help: did you mean
help: provide the argument
|
29 | f3(bool, /* bool */)
|
64 changes: 32 additions & 32 deletions core/codegen/tests/ui-fail-stable/catch_type_errors.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
<Cow<'o, R> as Responder<'r, 'o>>
<rocket::tokio::fs::File as Responder<'r, 'static>>
<EventStream<S> as Responder<'r, 'r>>
<std::fs::File as Responder<'r, 'static>>
and $N others

error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
Expand All @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
<Cow<'o, R> as Responder<'r, 'o>>
<rocket::tokio::fs::File as Responder<'r, 'static>>
<EventStream<S> as Responder<'r, 'r>>
<std::fs::File as Responder<'r, 'static>>
and $N others

error[E0308]: mismatched types
Expand All @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
<Cow<'o, R> as Responder<'r, 'o>>
<rocket::tokio::fs::File as Responder<'r, 'static>>
<EventStream<S> as Responder<'r, 'r>>
<std::fs::File as Responder<'r, 'static>>
and $N others

error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
Expand All @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
<Cow<'o, R> as Responder<'r, 'o>>
<rocket::tokio::fs::File as Responder<'r, 'static>>
<EventStream<S> as Responder<'r, 'r>>
<std::fs::File as Responder<'r, 'static>>
and $N others
6 changes: 0 additions & 6 deletions core/codegen/tests/ui-fail-stable/from_form.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,6 @@ help: the type constructed contains `{integer}` due to the type of the argument
| ^^^ this argument influences the type of `Some`
note: tuple variant defined here
--> $RUST/core/src/option.rs
|
| Some(#[stable(feature = "rust1", since = "1.0.0")] T),
| ^^^^

error[E0308]: mismatched types
--> tests/ui-fail-stable/from_form.rs:203:33
Expand All @@ -545,9 +542,6 @@ help: the type constructed contains `&'static str` due to the type of the argume
| this argument influences the type of `Some`
note: tuple variant defined here
--> $RUST/core/src/option.rs
|
| Some(#[stable(feature = "rust1", since = "1.0.0")] T),
| ^^^^

error[E0277]: the trait bound `bool: From<&str>` is not satisfied
--> tests/ui-fail-stable/from_form.rs:209:23
Expand Down
32 changes: 16 additions & 16 deletions core/codegen/tests/ui-fail-stable/from_form_type_errors.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ error[E0277]: the trait bound `Unknown: FromFormField<'_>` is not satisfied
| ^^^^^^^ the trait `FromFormField<'_>` is not implemented for `Unknown`
|
= help: the following other types implement trait `FromFormField<'v>`:
&'v [u8]
&'v str
Capped<&'v [u8]>
Capped<&'v str>
Capped<Cow<'v, str>>
Capped<TempFile<'v>>
Capped<std::string::String>
Cow<'v, str>
bool
isize
i8
i16
i32
i64
i128
usize
and $N others
= note: required for `Unknown` to implement `FromForm<'r>`

Expand All @@ -23,13 +23,13 @@ error[E0277]: the trait bound `Foo<usize>: FromFormField<'_>` is not satisfied
| ^^^ the trait `FromFormField<'_>` is not implemented for `Foo<usize>`
|
= help: the following other types implement trait `FromFormField<'v>`:
&'v [u8]
&'v str
Capped<&'v [u8]>
Capped<&'v str>
Capped<Cow<'v, str>>
Capped<TempFile<'v>>
Capped<std::string::String>
Cow<'v, str>
bool
isize
i8
i16
i32
i64
i128
usize
and $N others
= note: required for `Foo<usize>` to implement `FromForm<'r>`
78 changes: 39 additions & 39 deletions core/codegen/tests/ui-fail-stable/responder-types.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<Thing1 as Responder<'r, 'o>>
<Thing2 as Responder<'r, 'o>>
<Thing3 as Responder<'r, 'o>>
<Thing4 as Responder<'r, 'o>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
and $N others

error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
Expand All @@ -22,14 +22,14 @@ error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
| ^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<Cookie<'_>>>
<Header<'static> as From<ContentType>>
<Header<'static> as From<rocket::http::Accept>>
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&Hsts>>
and $N others
= note: required for `u8` to implement `Into<Header<'_>>`
note: required by a bound in `rocket::Response::<'r>::set_header`
Expand All @@ -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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<Thing1 as Responder<'r, 'o>>
<Thing2 as Responder<'r, 'o>>
<Thing3 as Responder<'r, 'o>>
<Thing4 as Responder<'r, 'o>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
and $N others

error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
Expand All @@ -62,14 +62,14 @@ error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
| ^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<Cookie<'_>>>
<Header<'static> as From<ContentType>>
<Header<'static> as From<rocket::http::Accept>>
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&Hsts>>
and $N others
= note: required for `u8` to implement `Into<Header<'_>>`
note: required by a bound in `rocket::Response::<'r>::set_header`
Expand All @@ -85,14 +85,14 @@ error[E0277]: the trait bound `Header<'_>: From<std::string::String>` is not sat
| ^^^^ the trait `From<std::string::String>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<Cookie<'_>>>
<Header<'static> as From<ContentType>>
<Header<'static> as From<rocket::http::Accept>>
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
<Header<'static> as From<&Hsts>>
and $N others
= note: required for `std::string::String` to implement `Into<Header<'_>>`
note: required by a bound in `rocket::Response::<'r>::set_header`
Expand All @@ -108,14 +108,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>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
<Thing1 as Responder<'r, 'o>>
<Thing2 as Responder<'r, 'o>>
<Thing3 as Responder<'r, 'o>>
<Thing4 as Responder<'r, 'o>>
<rocket::Either<T, E> as Responder<'r, 'o>>
<Box<str> as Responder<'r, 'static>>
<Box<[u8]> as Responder<'r, 'static>>
<Box<T> as Responder<'r, 'o>>
and $N others
note: required by a bound in `route::handler::<impl Outcome<rocket::Response<'o>, Status, (rocket::Data<'o>, Status)>>::from`
--> $WORKSPACE/core/lib/src/route/handler.rs
Expand Down
Loading

0 comments on commit 695cf3a

Please sign in to comment.