mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Add missing licenses and tune the scanning workflow (#1288)
* Add missing Cumulus licenses * Typo * Add missing Substrate licenses * Single job checking the sub-repos in steps * Remove dates * Remove dates * Add missing (C) * Update FRAME UI tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update more UI tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
|
||||
--> tests/benchmark_ui/bad_param_name.rs:10:11
|
||||
--> tests/benchmark_ui/bad_param_name.rs:27:11
|
||||
|
|
||||
10 | fn bench(winton: Linear<1, 2>) {
|
||||
27 | fn bench(winton: Linear<1, 2>) {
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
|
||||
--> tests/benchmark_ui/bad_param_name_too_long.rs:8:11
|
||||
|
|
||||
8 | fn bench(xx: Linear<1, 2>) {
|
||||
| ^^
|
||||
--> tests/benchmark_ui/bad_param_name_too_long.rs:25:11
|
||||
|
|
||||
25 | fn bench(xx: Linear<1, 2>) {
|
||||
| ^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Benchmark parameter names must consist of a single lowercase letter (a-z) and no other characters.
|
||||
--> tests/benchmark_ui/bad_param_name_upper_case.rs:8:11
|
||||
|
|
||||
8 | fn bench(D: Linear<1, 2>) {
|
||||
| ^
|
||||
--> tests/benchmark_ui/bad_param_name_upper_case.rs:25:11
|
||||
|
|
||||
25 | fn bench(D: Linear<1, 2>) {
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Invalid benchmark function param. A valid example would be `x: Linear<5, 10>`.
|
||||
--> tests/benchmark_ui/bad_params.rs:10:31
|
||||
--> tests/benchmark_ui/bad_params.rs:27:31
|
||||
|
|
||||
10 | fn bench(y: Linear<1, 2>, x: u32) {
|
||||
27 | fn bench(y: Linear<1, 2>, x: u32) {
|
||||
| ^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `BenchmarkError`
|
||||
--> tests/benchmark_ui/bad_return_non_benchmark_err.rs:10:27
|
||||
--> tests/benchmark_ui/bad_return_non_benchmark_err.rs:27:27
|
||||
|
|
||||
10 | fn bench() -> Result<(), BenchmarkException> {
|
||||
27 | fn bench() -> Result<(), BenchmarkException> {
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Only `Result<(), BenchmarkError>` or a blank return type is allowed on benchmark function definitions
|
||||
--> tests/benchmark_ui/bad_return_non_type_path.rs:10:16
|
||||
--> tests/benchmark_ui/bad_return_non_type_path.rs:27:16
|
||||
|
|
||||
10 | fn bench() -> (String, u32) {
|
||||
27 | fn bench() -> (String, u32) {
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `()`
|
||||
--> tests/benchmark_ui/bad_return_non_unit_t.rs:8:23
|
||||
|
|
||||
8 | fn bench() -> Result<u32, BenchmarkError> {
|
||||
| ^^^
|
||||
--> tests/benchmark_ui/bad_return_non_unit_t.rs:25:23
|
||||
|
|
||||
25 | fn bench() -> Result<u32, BenchmarkError> {
|
||||
| ^^^
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
|
||||
--> tests/benchmark_ui/bad_return_type_blank_with_question.rs:15:14
|
||||
--> tests/benchmark_ui/bad_return_type_blank_with_question.rs:32:14
|
||||
|
|
||||
5 | #[benchmarks]
|
||||
22 | #[benchmarks]
|
||||
| ------------- this function should return `Result` or `Option` to accept `?`
|
||||
...
|
||||
15 | something()?;
|
||||
32 | something()?;
|
||||
| ^ cannot use the `?` operator in a function that returns `()`
|
||||
|
|
||||
= help: the trait `FromResidual<Result<Infallible, frame_benchmarking::BenchmarkError>>` is not implemented for `()`
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
error: Benchmark `#[block]` or `#[extrinsic_call]` item cannot be the last statement of your benchmark function definition if you have defined a return type. You should return something compatible with Result<(), BenchmarkError> (i.e. `Ok(())`) as the last statement or change your signature to a blank return type.
|
||||
--> tests/benchmark_ui/bad_return_type_no_last_stmt.rs:10:43
|
||||
--> tests/benchmark_ui/bad_return_type_no_last_stmt.rs:27:43
|
||||
|
|
||||
10 | fn bench() -> Result<(), BenchmarkError> {
|
||||
27 | fn bench() -> Result<(), BenchmarkError> {
|
||||
| ______________________________________________^
|
||||
11 | | #[block]
|
||||
12 | | {}
|
||||
13 | | }
|
||||
28 | | #[block]
|
||||
29 | | {}
|
||||
30 | | }
|
||||
| |_____^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `Result`
|
||||
--> tests/benchmark_ui/bad_return_type_non_result.rs:10:31
|
||||
--> tests/benchmark_ui/bad_return_type_non_result.rs:27:31
|
||||
|
|
||||
10 | fn bench(y: Linear<1, 2>) -> String {
|
||||
27 | fn bench(y: Linear<1, 2>) -> String {
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `Result`
|
||||
--> tests/benchmark_ui/bad_return_type_option.rs:10:16
|
||||
--> tests/benchmark_ui/bad_return_type_option.rs:27:16
|
||||
|
|
||||
10 | fn bench() -> Option<BenchmarkError> {
|
||||
27 | fn bench() -> Option<BenchmarkError> {
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Only one #[extrinsic_call] or #[block] attribute is allowed per benchmark.
|
||||
--> tests/benchmark_ui/dup_block.rs:14:3
|
||||
--> tests/benchmark_ui/dup_block.rs:31:3
|
||||
|
|
||||
14 | #[block]
|
||||
31 | #[block]
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Only one #[extrinsic_call] or #[block] attribute is allowed per benchmark.
|
||||
--> tests/benchmark_ui/dup_extrinsic_call.rs:14:3
|
||||
--> tests/benchmark_ui/dup_extrinsic_call.rs:31:3
|
||||
|
|
||||
14 | #[extrinsic_call]
|
||||
31 | #[extrinsic_call]
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: No valid #[extrinsic_call] or #[block] annotation could be found in benchmark function body.
|
||||
--> tests/benchmark_ui/empty_function.rs:10:13
|
||||
--> tests/benchmark_ui/empty_function.rs:27:13
|
||||
|
|
||||
10 | fn bench() {}
|
||||
27 | fn bench() {}
|
||||
| ^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: unexpected end of input, `extra` can only be specified once
|
||||
--> tests/benchmark_ui/extra_extra.rs:9:26
|
||||
|
|
||||
9 | #[benchmark(extra, extra)]
|
||||
| ^
|
||||
--> tests/benchmark_ui/extra_extra.rs:26:26
|
||||
|
|
||||
26 | #[benchmark(extra, extra)]
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: unexpected end of input, `skip_meta` can only be specified once
|
||||
--> tests/benchmark_ui/extra_skip_meta.rs:9:34
|
||||
|
|
||||
9 | #[benchmark(skip_meta, skip_meta)]
|
||||
| ^
|
||||
--> tests/benchmark_ui/extra_skip_meta.rs:26:34
|
||||
|
|
||||
26 | #[benchmark(skip_meta, skip_meta)]
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
|
||||
#[extrinsic_call]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error: `#[extrinsic_call]` must be in a benchmark function definition labeled with `#[benchmark]`.
|
||||
--> tests/benchmark_ui/extrinsic_call_out_of_fn.rs:3:1
|
||||
|
|
||||
3 | #[extrinsic_call]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the attribute macro `extrinsic_call` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
--> tests/benchmark_ui/extrinsic_call_out_of_fn.rs:20:1
|
||||
|
|
||||
20 | #[extrinsic_call]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the attribute macro `extrinsic_call` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
error[E0277]: the trait bound `<T as frame_support_test::Config>::RuntimeOrigin: From<{integer}>` is not satisfied
|
||||
--> tests/benchmark_ui/invalid_origin.rs:6:1
|
||||
|
|
||||
6 | #[benchmarks]
|
||||
| ^^^^^^^^^^^^^ the trait `From<{integer}>` is not implemented for `<T as frame_support_test::Config>::RuntimeOrigin`
|
||||
|
|
||||
= note: required for `{integer}` to implement `Into<<T as frame_support_test::Config>::RuntimeOrigin>`
|
||||
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
--> tests/benchmark_ui/invalid_origin.rs:23:1
|
||||
|
|
||||
23 | #[benchmarks]
|
||||
| ^^^^^^^^^^^^^ the trait `From<{integer}>` is not implemented for `<T as frame_support_test::Config>::RuntimeOrigin`
|
||||
|
|
||||
= note: required for `{integer}` to implement `Into<<T as frame_support_test::Config>::RuntimeOrigin>`
|
||||
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
error: No valid #[extrinsic_call] or #[block] annotation could be found in benchmark function body.
|
||||
--> tests/benchmark_ui/missing_call.rs:10:13
|
||||
--> tests/benchmark_ui/missing_call.rs:27:13
|
||||
|
|
||||
10 | fn bench() {
|
||||
27 | fn bench() {
|
||||
| ________________^
|
||||
11 | | assert_eq!(2 + 2, 4);
|
||||
12 | | }
|
||||
28 | | assert_eq!(2 + 2, 4);
|
||||
29 | | }
|
||||
| |_____^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Single-item extrinsic calls must specify their origin as the first argument.
|
||||
--> tests/benchmark_ui/missing_origin.rs:12:3
|
||||
--> tests/benchmark_ui/missing_origin.rs:29:3
|
||||
|
|
||||
12 | thing();
|
||||
29 | thing();
|
||||
| ^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_support_test::Config;
|
||||
use frame_support::parameter_types;
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `extra` or `skip_meta`
|
||||
--> tests/benchmark_ui/unrecognized_option.rs:9:32
|
||||
|
|
||||
9 | #[benchmark(skip_meta, extra, bad)]
|
||||
| ^^^
|
||||
--> tests/benchmark_ui/unrecognized_option.rs:26:32
|
||||
|
|
||||
26 | #[benchmark(skip_meta, extra, bad)]
|
||||
| ^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: `Block` was declared above. Please use exactly one declaration for `Block`.
|
||||
--> $DIR/abundant_where_param.rs:7:3
|
||||
|
|
||||
7 | Block = Block1,
|
||||
| ^^^^^
|
||||
--> tests/construct_runtime_ui/abundant_where_param.rs:24:3
|
||||
|
|
||||
24 | Block = Block1,
|
||||
| ^^^^^
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
use sp_runtime::{generic, traits::BlakeTwo256};
|
||||
use sp_core::sr25519;
|
||||
|
||||
+7
-7
@@ -1,22 +1,22 @@
|
||||
error: Unexpected tokens, expected one of `=`, `,`
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:26:43
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:43:43
|
||||
|
|
||||
26 | Pallet: pallet exclude_parts { Pallet } use_parts { Pallet },
|
||||
43 | Pallet: pallet exclude_parts { Pallet } use_parts { Pallet },
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:18:64
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:35:64
|
||||
|
|
||||
18 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
35 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
help: you might be missing a type parameter
|
||||
|
|
||||
18 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
35 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| +++++++++++++
|
||||
|
||||
error[E0412]: cannot find type `Runtime` in this scope
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:20:25
|
||||
--> tests/construct_runtime_ui/both_use_and_excluded_parts.rs:37:25
|
||||
|
|
||||
20 | impl pallet::Config for Runtime {}
|
||||
37 | impl pallet::Config for Runtime {}
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error: Pallet indices are conflicting: Both pallets System and Pallet1 are at index 0
|
||||
--> $DIR/conflicting_index.rs:9:3
|
||||
|
|
||||
9 | System: system::{},
|
||||
| ^^^^^^
|
||||
--> tests/construct_runtime_ui/conflicting_index.rs:26:3
|
||||
|
|
||||
26 | System: system::{},
|
||||
| ^^^^^^
|
||||
|
||||
error: Pallet indices are conflicting: Both pallets System and Pallet1 are at index 0
|
||||
--> $DIR/conflicting_index.rs:10:3
|
||||
--> tests/construct_runtime_ui/conflicting_index.rs:27:3
|
||||
|
|
||||
10 | Pallet1: pallet1::{} = 0,
|
||||
27 | Pallet1: pallet1::{} = 0,
|
||||
| ^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error: Pallet indices are conflicting: Both pallets System and Pallet3 are at index 5
|
||||
--> $DIR/conflicting_index_2.rs:9:3
|
||||
|
|
||||
9 | System: system::{} = 5,
|
||||
| ^^^^^^
|
||||
--> tests/construct_runtime_ui/conflicting_index_2.rs:26:3
|
||||
|
|
||||
26 | System: system::{} = 5,
|
||||
| ^^^^^^
|
||||
|
||||
error: Pallet indices are conflicting: Both pallets System and Pallet3 are at index 5
|
||||
--> $DIR/conflicting_index_2.rs:12:3
|
||||
--> tests/construct_runtime_ui/conflicting_index_2.rs:29:3
|
||||
|
|
||||
12 | Pallet3: pallet3::{},
|
||||
29 | Pallet3: pallet3::{},
|
||||
| ^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
error: Two pallets with the same name!
|
||||
--> tests/construct_runtime_ui/conflicting_module_name.rs:7:3
|
||||
|
|
||||
7 | Balance: balances::{Pallet},
|
||||
| ^^^^^^^
|
||||
--> tests/construct_runtime_ui/conflicting_module_name.rs:24:3
|
||||
|
|
||||
24 | Balance: balances::{Pallet},
|
||||
| ^^^^^^^
|
||||
|
||||
error: Two pallets with the same name!
|
||||
--> tests/construct_runtime_ui/conflicting_module_name.rs:8:3
|
||||
|
|
||||
8 | Balance: balances::{Pallet},
|
||||
| ^^^^^^^
|
||||
--> tests/construct_runtime_ui/conflicting_module_name.rs:25:3
|
||||
|
|
||||
25 | Balance: balances::{Pallet},
|
||||
| ^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+190
-190
@@ -5,30 +5,30 @@ error: use of deprecated constant `WhereSection::_w`:
|
||||
|
||||
For more info see:
|
||||
<https://github.com/paritytech/substrate/pull/14437>
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | / construct_runtime! {
|
||||
4 | | pub struct Runtime where
|
||||
5 | | Block = Block,
|
||||
6 | | NodeBlock = Block,
|
||||
20 | / construct_runtime! {
|
||||
21 | | pub struct Runtime where
|
||||
22 | | Block = Block,
|
||||
23 | | NodeBlock = Block,
|
||||
... |
|
||||
10 | | }
|
||||
11 | | }
|
||||
27 | | }
|
||||
28 | | }
|
||||
| |_^
|
||||
|
|
||||
= note: `-D deprecated` implied by `-D warnings`
|
||||
= note: this error originates in the macro `frame_support::match_and_insert` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
@@ -40,28 +40,28 @@ note: required by a bound in `frame_system::Event`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
note: required because it appears within the type `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Clone`
|
||||
@@ -72,28 +72,28 @@ note: required by a bound in `Clone`
|
||||
= note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
note: required because it appears within the type `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `EncodeLike`
|
||||
@@ -104,28 +104,28 @@ note: required by a bound in `EncodeLike`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
note: required because it appears within the type `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Decode`
|
||||
@@ -136,15 +136,15 @@ note: required by a bound in `Decode`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `frame_system::Event<Runtime>`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
@@ -157,15 +157,15 @@ note: required by a bound in `From`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `frame_system::Event<Runtime>`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
@@ -178,38 +178,38 @@ note: required by a bound in `TryInto`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
|
|
||||
3 | construct_runtime! {
|
||||
| ^ the trait `Config` is not implemented for `Runtime`
|
||||
|
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
20 | construct_runtime! {
|
||||
| ^ the trait `Config` is not implemented for `Runtime`
|
||||
|
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `RawOrigin<_>: TryFrom<OriginCaller>` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
@@ -217,15 +217,15 @@ error[E0277]: the trait bound `RawOrigin<_>: TryFrom<OriginCaller>` is not satis
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
@@ -234,29 +234,29 @@ error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
= note: required for `Pallet<Runtime>` to implement `Callable<Runtime>`
|
||||
note: required because it appears within the type `RuntimeCall`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Clone`
|
||||
@@ -267,29 +267,29 @@ note: required by a bound in `Clone`
|
||||
= note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
= note: required for `Pallet<Runtime>` to implement `Callable<Runtime>`
|
||||
note: required because it appears within the type `RuntimeCall`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `EncodeLike`
|
||||
@@ -300,29 +300,29 @@ note: required by a bound in `EncodeLike`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
= note: required for `Pallet<Runtime>` to implement `Callable<Runtime>`
|
||||
note: required because it appears within the type `RuntimeCall`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Decode`
|
||||
@@ -333,40 +333,40 @@ note: required by a bound in `Decode`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:9:3
|
||||
|
|
||||
9 | System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
| ^^^^^^ the trait `Config` is not implemented for `Runtime`
|
||||
|
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:26:3
|
||||
|
|
||||
26 | System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
| ^^^^^^ the trait `Config` is not implemented for `Runtime`
|
||||
|
|
||||
note: required by a bound in `frame_system::GenesisConfig`
|
||||
--> $WORKSPACE/substrate/frame/system/src/lib.rs
|
||||
|
|
||||
| pub struct GenesisConfig<T: Config> {
|
||||
| ^^^^^^ required by this bound in `GenesisConfig`
|
||||
--> $WORKSPACE/substrate/frame/system/src/lib.rs
|
||||
|
|
||||
| pub struct GenesisConfig<T: Config> {
|
||||
| ^^^^^^ required by this bound in `GenesisConfig`
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
note: required because it appears within the type `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Result`
|
||||
@@ -377,28 +377,28 @@ note: required by a bound in `Result`
|
||||
= note: this error originates in the derive macro `self::sp_api_hidden_includes_construct_runtime::hidden_include::__private::codec::Decode` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
note: required because it appears within the type `RuntimeEvent`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `TryInto`
|
||||
@@ -409,29 +409,29 @@ note: required by a bound in `TryInto`
|
||||
= note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `Runtime: Config` is not satisfied
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
|
|
||||
= note: required for `Pallet<Runtime>` to implement `Callable<Runtime>`
|
||||
note: required because it appears within the type `RuntimeCall`
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
||||
--> tests/construct_runtime_ui/deprecated_where_block.rs:20:1
|
||||
|
|
||||
3 | // construct_runtime! {
|
||||
4 | || pub struct Runtime where
|
||||
5 | || Block = Block,
|
||||
6 | || NodeBlock = Block,
|
||||
20 | // construct_runtime! {
|
||||
21 | || pub struct Runtime where
|
||||
22 | || Block = Block,
|
||||
23 | || NodeBlock = Block,
|
||||
... ||
|
||||
10 | || }
|
||||
11 | || }
|
||||
27 | || }
|
||||
28 | || }
|
||||
| ||_- in this macro invocation
|
||||
... |
|
||||
note: required by a bound in `Result`
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: `Config` was already declared before. Please remove the duplicate declaration
|
||||
--> tests/construct_runtime_ui/double_module_parts.rs:7:37
|
||||
|
|
||||
7 | Balance: balances::{Config, Call, Config<T>, Origin<T>},
|
||||
| ^^^^^^
|
||||
--> tests/construct_runtime_ui/double_module_parts.rs:24:37
|
||||
|
|
||||
24 | Balance: balances::{Config, Call, Config<T>, Origin<T>},
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: `Call` was already declared before. Please remove the duplicate declaration
|
||||
--> $DIR/duplicate_exclude.rs:9:46
|
||||
|
|
||||
9 | System: frame_system exclude_parts { Call, Call },
|
||||
| ^^^^
|
||||
--> tests/construct_runtime_ui/duplicate_exclude.rs:26:46
|
||||
|
|
||||
26 | System: frame_system exclude_parts { Call, Call },
|
||||
| ^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected one of: `crate`, `self`, `super`, identifier
|
||||
--> tests/construct_runtime_ui/empty_pallet_path.rs:6:11
|
||||
|
|
||||
6 | system: ,
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/empty_pallet_path.rs:23:11
|
||||
|
|
||||
23 | system: ,
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,`
|
||||
--> $DIR/exclude_missspell.rs:9:24
|
||||
|
|
||||
9 | System: frame_system exclude_part { Call },
|
||||
| ^^^^^^^^^^^^
|
||||
--> tests/construct_runtime_ui/exclude_missspell.rs:26:24
|
||||
|
|
||||
26 | System: frame_system exclude_part { Call },
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
use sp_runtime::{generic, traits::BlakeTwo256};
|
||||
use sp_core::sr25519;
|
||||
|
||||
+7
-7
@@ -1,22 +1,22 @@
|
||||
error: Invalid pallet part specified, the pallet `Pallet` doesn't have the `Call` part. Available parts are: `Pallet`, `Storage`.
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:31:34
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:48:34
|
||||
|
|
||||
31 | Pallet: pallet exclude_parts { Call },
|
||||
48 | Pallet: pallet exclude_parts { Call },
|
||||
| ^^^^
|
||||
|
||||
error[E0412]: cannot find type `RuntimeCall` in this scope
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:23:64
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:40:64
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
40 | pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
|
||||
help: you might be missing a type parameter
|
||||
|
|
||||
23 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
40 | pub type UncheckedExtrinsic<RuntimeCall> = generic::UncheckedExtrinsic<u32, RuntimeCall, Signature, ()>;
|
||||
| +++++++++++++
|
||||
|
||||
error[E0412]: cannot find type `Runtime` in this scope
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:25:25
|
||||
--> tests/construct_runtime_ui/exclude_undefined_part.rs:42:25
|
||||
|
|
||||
25 | impl pallet::Config for Runtime {}
|
||||
42 | impl pallet::Config for Runtime {}
|
||||
| ^^^^^^^ not found in this scope
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: `System` pallet declaration is feature gated, please remove any `#[cfg]` attributes
|
||||
--> tests/construct_runtime_ui/feature_gated_system_pallet.rs:7:3
|
||||
|
|
||||
7 | System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
| ^^^^^^
|
||||
--> tests/construct_runtime_ui/feature_gated_system_pallet.rs:24:3
|
||||
|
|
||||
24 | System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: `Call` is not allowed to have generics. Only the following pallets are allowed to have generics: `Event`, `Error`, `Origin`, `Config`.
|
||||
--> tests/construct_runtime_ui/generics_in_invalid_module.rs:7:36
|
||||
|
|
||||
7 | Balance: balances::<Instance1>::{Call<T>, Origin<T>},
|
||||
| ^^^^
|
||||
--> tests/construct_runtime_ui/generics_in_invalid_module.rs:24:36
|
||||
|
|
||||
24 | Balance: balances::<Instance1>::{Call<T>, Origin<T>},
|
||||
| ^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
error: feature = 1
|
||||
^ expected one of `<key>`, `all`, `any`, `not` here
|
||||
--> tests/construct_runtime_ui/invalid_meta_literal.rs:7:3
|
||||
|
|
||||
7 | #[cfg(feature = 1)]
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/invalid_meta_literal.rs:24:3
|
||||
|
|
||||
24 | #[cfg(feature = 1)]
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,`
|
||||
--> tests/construct_runtime_ui/invalid_module_details.rs:6:17
|
||||
|
|
||||
6 | system: System::(),
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/invalid_module_details.rs:23:17
|
||||
|
|
||||
23 | system: System::(),
|
||||
| ^
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: expected one of: `Pallet`, `Call`, `Storage`, `Event`, `Error`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`, `FreezeReason`, `HoldReason`, `LockId`, `SlashReason`
|
||||
--> tests/construct_runtime_ui/invalid_module_details_keyword.rs:6:20
|
||||
|
|
||||
6 | system: System::{enum},
|
||||
| ^^^^
|
||||
--> tests/construct_runtime_ui/invalid_module_details_keyword.rs:23:20
|
||||
|
|
||||
23 | system: System::{enum},
|
||||
| ^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected one of: `Pallet`, `Call`, `Storage`, `Event`, `Error`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`, `FreezeReason`, `HoldReason`, `LockId`, `SlashReason`
|
||||
--> tests/construct_runtime_ui/invalid_module_entry.rs:7:23
|
||||
|
|
||||
7 | Balance: balances::{Unexpected},
|
||||
| ^^^^^^^^^^
|
||||
--> tests/construct_runtime_ui/invalid_module_entry.rs:24:23
|
||||
|
|
||||
24 | Balance: balances::{Unexpected},
|
||||
| ^^^^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,`
|
||||
--> tests/construct_runtime_ui/invalid_token_after_module.rs:6:18
|
||||
|
|
||||
6 | system: System ?
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/invalid_token_after_module.rs:23:18
|
||||
|
|
||||
23 | system: System ?
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: expected `:`
|
||||
--> tests/construct_runtime_ui/invalid_token_after_name.rs:6:10
|
||||
|
|
||||
6 | system ?
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/invalid_token_after_name.rs:23:10
|
||||
|
|
||||
23 | system ?
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected one of: `Block`, `NodeBlock`, `UncheckedExtrinsic`
|
||||
--> $DIR/invalid_where_param.rs:7:3
|
||||
|
|
||||
7 | TypeX = Block,
|
||||
| ^^^^^
|
||||
--> tests/construct_runtime_ui/invalid_where_param.rs:24:3
|
||||
|
|
||||
24 | TypeX = Block,
|
||||
| ^^^^^
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: Instantiable pallet with no generic `Event` cannot be constructed: pallet `Balance` must have generic `Event`
|
||||
--> tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.rs:7:3
|
||||
|
|
||||
7 | Balance: balances::<Instance1> expanded::{}::{Event},
|
||||
| ^^^^^^^
|
||||
--> tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.rs:24:3
|
||||
|
|
||||
24 | Balance: balances::<Instance1> expanded::{}::{Event},
|
||||
| ^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: expected identifier
|
||||
--> tests/construct_runtime_ui/missing_module_instance.rs:6:20
|
||||
|
|
||||
6 | system: System::<>,
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/missing_module_instance.rs:23:20
|
||||
|
|
||||
23 | system: System::<>,
|
||||
| ^
|
||||
|
||||
+17
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
error: Instantiable pallet with no generic `Origin` cannot be constructed: pallet `Balance` must have generic `Origin`
|
||||
--> tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.rs:7:3
|
||||
|
|
||||
7 | Balance: balances::<Instance1> expanded::{}::{Origin},
|
||||
| ^^^^^^^
|
||||
--> tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.rs:24:3
|
||||
|
|
||||
24 | Balance: balances::<Instance1> expanded::{}::{Origin},
|
||||
| ^^^^^^^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
error: `System` pallet declaration is missing. Please add this line: `System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},`
|
||||
--> tests/construct_runtime_ui/missing_system_module.rs:5:2
|
||||
|
|
||||
5 | / {
|
||||
6 | | }
|
||||
| |_____^
|
||||
--> tests/construct_runtime_ui/missing_system_module.rs:22:2
|
||||
|
|
||||
22 | / {
|
||||
23 | | }
|
||||
| |_____^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: Missing associated type for `UncheckedExtrinsic`. Add `UncheckedExtrinsic` = ... to where section.
|
||||
--> tests/construct_runtime_ui/missing_where_param.rs:7:2
|
||||
|
|
||||
7 | {}
|
||||
| ^
|
||||
--> tests/construct_runtime_ui/missing_where_param.rs:24:2
|
||||
|
|
||||
24 | {}
|
||||
| ^
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
error: Pallet index doesn't fit into u8, index is 256
|
||||
--> $DIR/more_than_256_modules.rs:10:3
|
||||
--> tests/construct_runtime_ui/more_than_256_modules.rs:27:3
|
||||
|
|
||||
10 | Pallet256: pallet256::{},
|
||||
27 | Pallet256: pallet256::{},
|
||||
| ^^^^^^^^^
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user