-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from pkhry running command 'update-ui'
- Loading branch information
command-bot
committed
Jan 10, 2025
1 parent
a104ae0
commit 4960ecc
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
29 changes: 17 additions & 12 deletions
29
substrate/primitives/api/test/tests/ui/incorrect_extension_import.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,21 +1,26 @@ | ||
error: Unsupported syntax used to import api implementaions from an extension module. Try using `pub use <path>::*` or `use <path>::*` | ||
--> tests/ui/incorrect_extension_import.rs:48:15 | ||
error: expected `external_impls` | ||
--> tests/ui/incorrect_extension_import.rs:48:2 | ||
| | ||
48 | use example::{api, *}; | ||
| ^^^^^^^^ | ||
48 | extension_impls!{ api } | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
error[E0412]: cannot find type `RuntimeApiImpl` in this scope | ||
--> tests/ui/incorrect_extension_import.rs:51:1 | ||
error: expected `external_impls` | ||
--> tests/ui/incorrect_extension_import.rs:54:2 | ||
| | ||
51 | #[sp_api::impl_runtime_apis_ext] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope | ||
54 | extension_impls! { super } | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
error: unused import: `substrate_test_runtime_client::runtime::Block` | ||
--> tests/ui/incorrect_extension_import.rs:19:5 | ||
| | ||
19 | use substrate_test_runtime_client::runtime::Block; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the attribute macro `sp_api::impl_runtime_apis_ext` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: `-D unused-imports` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(unused_imports)]` | ||
|
||
warning: unused import: `sp_runtime::traits::Block` | ||
error: unused import: `sp_runtime::traits::Block` | ||
--> tests/ui/incorrect_extension_import.rs:18:5 | ||
| | ||
18 | use sp_runtime::traits::Block as BlockT; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(unused_imports)]` on by default |