Skip to content
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
7 changes: 3 additions & 4 deletions dropshot/tests/fail/bad_endpoint10.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ note: required by a bound in `validate_result_error_type`
| ^^^^^^ required by this bound in `validate_result_error_type`

error[E0277]: the trait bound `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<()>, String>> {<impl From<bad_error_type> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_error_type}: dropshot::handler::HttpHandlerFunc<_, _, _>` is not satisfied
--> tests/fail/bad_endpoint10.rs:14:10
--> tests/fail/bad_endpoint10.rs:10:1
|
10 | / #[endpoint {
11 | | method = GET,
12 | | path = "/test",
13 | | }]
| |__- required by a bound introduced by this call
14 | async fn bad_error_type(
| ^^^^^^^^^^^^^^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<()>, String>> {<impl From<bad_error_type> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_error_type}`
| |__^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<()>, String>> {<impl From<bad_error_type> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_error_type}`
|
note: required by a bound in `ApiEndpoint::<Context>::new`
--> src/api_description.rs
|
| HandlerType: HttpHandlerFunc<Context, FuncParams, ResponseType>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiEndpoint::<Context>::new`
= note: this error originates in the attribute macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)
14 changes: 8 additions & 6 deletions dropshot/tests/fail/bad_endpoint15.stderr
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
error[E0277]: the trait bound `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<i32>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}: dropshot::handler::HttpHandlerFunc<_, _, _>` is not satisfied
--> tests/fail/bad_endpoint15.rs:17:10
--> tests/fail/bad_endpoint15.rs:13:1
|
13 | / #[endpoint {
14 | | method = GET,
15 | | path = "/test",
16 | | }]
| |__- required by a bound introduced by this call
17 | async fn bad_endpoint(
| ^^^^^^^^^^^^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<i32>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}`
| |__^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>) -> impl Future<Output = Result<HttpResponseOk<i32>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}`
|
note: required by a bound in `ApiEndpoint::<Context>::new`
--> src/api_description.rs
|
| HandlerType: HttpHandlerFunc<Context, FuncParams, ResponseType>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiEndpoint::<Context>::new`
= note: this error originates in the attribute macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)

error: future cannot be sent between threads safely
--> tests/fail/bad_endpoint15.rs:13:1
|
13 | #[endpoint {
| ^^^^^^^^^^ future returned by `bad_endpoint` is not `Send`
13 | / #[endpoint {
14 | | method = GET,
15 | | path = "/test",
16 | | }]
| |__^ future returned by `bad_endpoint` is not `Send`
|
= help: within `impl Future<Output = Result<HttpResponseOk<i32>, HttpError>>`, the trait `Send` is not implemented for `Rc<i32>`
note: future is not `Send` as this value is used across an await
Expand Down
7 changes: 3 additions & 4 deletions dropshot/tests/fail/bad_endpoint3.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ note: required by a bound in `need_extractor`
= note: this error originates in the attribute macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `fn(Arc<RequestContext<()>>, String) -> impl Future<Output = Result<HttpResponseOk<()>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}: dropshot::handler::HttpHandlerFunc<_, _, _>` is not satisfied
--> tests/fail/bad_endpoint3.rs:15:10
--> tests/fail/bad_endpoint3.rs:11:1
|
11 | / #[endpoint {
12 | | method = GET,
13 | | path = "/test",
14 | | }]
| |__- required by a bound introduced by this call
15 | async fn bad_endpoint(
| ^^^^^^^^^^^^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>, String) -> impl Future<Output = Result<HttpResponseOk<()>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}`
| |__^ the trait `dropshot::handler::HttpHandlerFunc<_, _, _>` is not implemented for `fn(Arc<RequestContext<()>>, String) -> impl Future<Output = Result<HttpResponseOk<()>, HttpError>> {<impl From<bad_endpoint> for ApiEndpoint<<Arc<RequestContext<()>> as RequestContextArgument>::Context>>::from::bad_endpoint}`
|
note: required by a bound in `ApiEndpoint::<Context>::new`
--> src/api_description.rs
|
| HandlerType: HttpHandlerFunc<Context, FuncParams, ResponseType>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiEndpoint::<Context>::new`
= note: this error originates in the attribute macro `endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions dropshot/tests/fail/bad_endpoint4.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfi
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 146 others
and 144 others
note: required by a bound in `dropshot::Query`
--> src/handler.rs
|
Expand All @@ -35,7 +35,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and 325 others
and 220 others
= note: required because of the requirements on the impl of `serde::de::DeserializeOwned` for `QueryParams`
note: required by a bound in `dropshot::Query`
--> src/handler.rs
Expand Down
2 changes: 1 addition & 1 deletion dropshot/tests/fail/bad_endpoint5.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and 325 others
and 220 others
= note: required because of the requirements on the impl of `serde::de::DeserializeOwned` for `QueryParams`
note: required by a bound in `dropshot::Query`
--> src/handler.rs
Expand Down
2 changes: 1 addition & 1 deletion dropshot/tests/fail/bad_endpoint7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ error[E0277]: the trait bound `Ret: serde::ser::Serialize` is not satisfied
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 223 others
and 219 others
= note: required because of the requirements on the impl of `dropshot::handler::HttpResponseContent` for `Ret`
note: required by a bound in `HttpResponseOk`
--> src/handler.rs
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.63.0"
channel = "1.64.0"
profile = "default"