-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
53 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 33 additions & 33 deletions
66
proc-macros/tests/ui/incorrect/rpc/rpc_empty_bounds.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
error[E0277]: the trait bound `<Conf as Config>::Hash: Serialize` is not satisfied | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:10:1 | ||
| | ||
10 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `std::result::Result<<Conf as Config>::Hash, jsonrpsee::jsonrpsee_core::Error>` to implement `IntoResponse` | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:9:1 | ||
| | ||
9 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `std::result::Result<<Conf as Config>::Hash, ErrorObject<'_>>` to implement `IntoResponse` | ||
note: required by a bound in `RpcModule::<Context>::register_method` | ||
--> $WORKSPACE/core/src/server/rpc_module.rs | ||
| | ||
| R: IntoResponse + 'static, | ||
| ^^^^^^^^^^^^ required by this bound in `RpcModule::<Context>::register_method` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> $WORKSPACE/core/src/server/rpc_module.rs | ||
| | ||
| R: IntoResponse + 'static, | ||
| ^^^^^^^^^^^^ required by this bound in `RpcModule::<Context>::register_method` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `<Conf as Config>::Hash: Clone` is not satisfied | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:10:1 | ||
| | ||
10 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `std::result::Result<<Conf as Config>::Hash, jsonrpsee::jsonrpsee_core::Error>` to implement `IntoResponse` | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:9:1 | ||
| | ||
9 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `std::result::Result<<Conf as Config>::Hash, ErrorObject<'_>>` to implement `IntoResponse` | ||
note: required by a bound in `RpcModule::<Context>::register_method` | ||
--> $WORKSPACE/core/src/server/rpc_module.rs | ||
| | ||
| R: IntoResponse + 'static, | ||
| ^^^^^^^^^^^^ required by this bound in `RpcModule::<Context>::register_method` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> $WORKSPACE/core/src/server/rpc_module.rs | ||
| | ||
| R: IntoResponse + 'static, | ||
| ^^^^^^^^^^^^ required by this bound in `RpcModule::<Context>::register_method` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `for<'de> <Conf as Config>::Hash: Deserialize<'de>` is not satisfied | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:10:1 | ||
| | ||
10 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `<Conf as Config>::Hash` to implement `DeserializeOwned` | ||
--> tests/ui/incorrect/rpc/rpc_empty_bounds.rs:9:1 | ||
| | ||
9 | #[rpc(server, client, namespace = "foo", client_bounds(), server_bounds())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `<Conf as Config>::Hash` | ||
| | ||
= note: required for `<Conf as Config>::Hash` to implement `DeserializeOwned` | ||
note: required by a bound in `request` | ||
--> $WORKSPACE/core/src/client/mod.rs | ||
| | ||
| R: DeserializeOwned, | ||
| ^^^^^^^^^^^^^^^^ required by this bound in `ClientT::request` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> $WORKSPACE/core/src/client/mod.rs | ||
| | ||
| R: DeserializeOwned, | ||
| ^^^^^^^^^^^^^^^^ required by this bound in `ClientT::request` | ||
= note: this error originates in the attribute macro `rpc` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters