Skip to content

Commit

Permalink
update trybuild stderr, updating serde has changed the compiler output
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Jan 17, 2025
1 parent 21d3827 commit ca76f60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ui/endpoint/invalid_body_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ error[E0277]: the trait bound `FooBody: RequestBody` is not satisfied
&'a [u8]
&'a str
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `FooBody` to implement `serde::de::DeserializeOwned`
= note: required for `FooBody` to implement `RequestBody`
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/endpoint/invalid_params_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@ error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>`
15 | fn endpoint(_: FooParams) {
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooParams` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `serde::de::Deserialize<'de>`:
&'a Path
&'a [u8]
&'a str
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params` to implement `QueryStringExtractor<Body>`
note: required by a bound in `gotham_restful::EndpointWithSchema::Params`
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/endpoint/invalid_placeholders_ty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@ error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<
15 | fn endpoint(_: FooPlaceholders) {
| ^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
|
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooPlaceholders` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `serde::de::Deserialize<'de>`:
&'a Path
&'a [u8]
&'a str
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders` to implement `PathExtractor<Body>`
note: required by a bound in `gotham_restful::EndpointWithSchema::Placeholders`
Expand Down

0 comments on commit ca76f60

Please sign in to comment.