Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency rust to v1.81.0 #1105

Merged
merged 3 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dropshot/tests/fail/bad_endpoint12.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ error[E0277]: the trait bound `String: HttpResponse` is not satisfied
15 | ) -> Result<String, HttpError> {
| ^^^^^^ the trait `HttpCodedResponse` is not implemented for `String`, which is required by `Result<String, HttpError>: ResultTrait`
|
= help: the following other types implement trait `HttpResponse`:
HttpResponseHeaders<T, H>
http::response::Response<Body>
= help: the following other types implement trait `HttpCodedResponse`:
HttpResponseAccepted<T>
HttpResponseCreated<T>
HttpResponseDeleted
HttpResponseOk<T>
HttpResponseUpdatedNoContent
dropshot::handler::HttpResponseFoundStatus
dropshot::handler::HttpResponseSeeOtherStatus
dropshot::handler::HttpResponseTemporaryRedirectStatus
= note: required for `String` to implement `HttpResponse`
note: required for `Result<String, HttpError>` to implement `ResultTrait`
--> tests/fail/bad_endpoint12.rs:15:6
Expand Down
10 changes: 3 additions & 7 deletions dropshot/tests/fail/bad_endpoint3.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ error[E0277]: the trait bound `String: ExclusiveExtractor` is not satisfied
18 | _param: String,
| ^^^^^^ the trait `SharedExtractor` is not implemented for `String`, which is required by `String: ExclusiveExtractor`
|
= help: the following other types implement trait `ExclusiveExtractor`:
MultipartBody
RawRequest
StreamingBody
TypedBody<BodyType>
UntypedBody
WebsocketUpgrade
= help: the following other types implement trait `SharedExtractor`:
dropshot::Path<PathType>
dropshot::Query<QueryType>
= note: required for `String` to implement `ExclusiveExtractor`
note: required by a bound in `need_exclusive_extractor`
--> tests/fail/bad_endpoint3.rs:12:1
Expand Down
31 changes: 15 additions & 16 deletions dropshot/tests/fail/bad_endpoint7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied
--> tests/fail/bad_endpoint7.rs:24:6
|
24 | ) -> Result<HttpResponseOk<Ret>, HttpError> {
| ^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret`, which is required by `Result<HttpResponseOk<Ret>, HttpError>: ResultTrait`
| ^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret`, which is required by `Ret: dropshot::handler::HttpResponseContent`
|
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
Expand All @@ -17,19 +17,11 @@ error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
= note: required for `HttpResponseOk<Ret>` to implement `HttpCodedResponse`
= note: required for `HttpResponseOk<Ret>` to implement `HttpResponse`
note: required for `Result<HttpResponseOk<Ret>, HttpError>` to implement `ResultTrait`
--> tests/fail/bad_endpoint7.rs:24:6
note: required by a bound in `HttpResponseOk`
--> src/handler.rs
|
18 | / #[endpoint {
19 | | method = GET,
20 | | path = "/test",
21 | | }]
| |__- unsatisfied trait bound introduced here
...
24 | ) -> Result<HttpResponseOk<Ret>, HttpError> {
| ^^^^^^
| pub struct HttpResponseOk<T: HttpResponseContent + Send + Sync + 'static>(
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk`

error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied
--> tests/fail/bad_endpoint7.rs:24:13
Expand Down Expand Up @@ -68,9 +60,16 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n
28 | | }))
| |_____^ the trait `serde::ser::Serialize` is not implemented for `Ret`, which is required by `Ret: dropshot::handler::HttpResponseContent`
|
= help: the following other types implement trait `dropshot::handler::HttpResponseContent`:
FreeformBody
dropshot::handler::Empty
= help: the following other types implement trait `serde::ser::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
note: required by a bound in `HttpResponseOk`
--> src/handler.rs
Expand Down
4 changes: 2 additions & 2 deletions dropshot/tests/fail/bad_trait_channel21.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ error: endpoint `variadic_argument` must not have a variadic argument
32 | ...
| ^^^

error: only foreign or `unsafe extern "C"` functions may be C-variadic
error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind"` functions may have a C-variadic arg
--> tests/fail/bad_trait_channel21.rs:32:9
|
32 | ...
| ^^^

error: only foreign or `unsafe extern "C"` functions may be C-variadic
error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind"` functions may have a C-variadic arg
--> tests/fail/bad_trait_channel21.rs:45:9
|
45 | ...
Expand Down
4 changes: 2 additions & 2 deletions dropshot/tests/fail/bad_trait_endpoint21.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ error: endpoint `variadic_argument` must not have a variadic argument
33 | ...
| ^^^

error: only foreign or `unsafe extern "C"` functions may be C-variadic
error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind"` functions may have a C-variadic arg
--> tests/fail/bad_trait_endpoint21.rs:33:9
|
33 | ...
| ^^^

error: only foreign or `unsafe extern "C"` functions may be C-variadic
error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind"` functions may have a C-variadic arg
--> tests/fail/bad_trait_endpoint21.rs:46:9
|
46 | ...
Expand Down
26 changes: 20 additions & 6 deletions dropshot/tests/fail/bad_trait_endpoint7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `dropshot::handler::HttpResponseContent`:
FreeformBody
dropshot::handler::Empty
= help: the following other types implement trait `serde::ser::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
note: required by a bound in `dropshot::HttpResponseOk`
--> src/handler.rs
Expand Down Expand Up @@ -99,9 +106,16 @@ error[E0277]: the trait bound `Ret: dropshot::handler::HttpResponseContent` is n
28 | ) -> Result<HttpResponseOk<Ret>, HttpError>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Ret`, which is required by `Ret: dropshot::handler::HttpResponseContent`
|
= help: the following other types implement trait `dropshot::handler::HttpResponseContent`:
FreeformBody
dropshot::handler::Empty
= help: the following other types implement trait `serde::ser::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
note: required by a bound in `dropshot::HttpResponseOk`
--> src/handler.rs
Expand Down
4 changes: 2 additions & 2 deletions dropshot/tests/fail/bad_trait_only13.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ error: cannot find attribute `endpoint` in this scope
21 | #[endpoint {
| ^^^^^^^^
|
help: consider importing one of these items
help: consider importing one of these attribute macros
|
5 + use dropshot::endpoint;
|
Expand All @@ -33,7 +33,7 @@ error: cannot find attribute `channel` in this scope
29 | #[channel {
| ^^^^^^^
|
help: consider importing one of these items
help: consider importing one of these attribute macros
|
5 + use dropshot::channel;
|
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# The intent is to keep this updated as new stable versions are relased.

[toolchain]
channel = "1.80.0"
channel = "1.81.0"
profile = "default"
Loading