Unverified Commit c90da116 authored by Robin Freyler's avatar Robin Freyler Committed by GitHub
Browse files

Use edition 2021 (#977)

* update Rust edition 2018 -> 2021

* fix some doc tests due to Rust edition 2021 upgrade
parent ddf40e9c
Pipeline #163256 failed with stages
in 9 minutes and 56 seconds
......@@ -2,7 +2,7 @@
name = "ink_allocator"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_engine"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Michael Müller <michi@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_env"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_eth_compatibility"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_lang"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_lang_codegen"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_lang_ir"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_lang_macro"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_metadata"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_prelude"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_primitives"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_storage"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
......
......@@ -2,7 +2,7 @@
name = "ink_storage_derive"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
readme = "../README.md"
......
......@@ -225,7 +225,6 @@ where
///
/// let s: StorageVec<i32> = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
/// .into_iter()
/// .copied()
/// .collect();
///
/// assert_eq!(s.binary_search(&13), Ok(9));
......@@ -271,7 +270,6 @@ where
///
/// let s: StorageVec<i32> = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
/// .into_iter()
/// .copied()
/// .collect();
///
/// let seek = 13;
......@@ -359,7 +357,6 @@ where
/// (4, 55),
/// ]
/// .into_iter()
/// .copied()
/// .collect();
///
/// assert_eq!(s.binary_search_by_key(&13, |&(a, b)| b), Ok(9));
......
......@@ -2,7 +2,7 @@
name = "contract_terminate"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../crates/primitives", default-features = false }
......
......@@ -2,7 +2,7 @@
name = "contract_transfer"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../crates/primitives", default-features = false }
......
......@@ -2,7 +2,7 @@
name = "delegator"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../crates/primitives", default-features = false }
......
......@@ -2,7 +2,7 @@
name = "accumulator"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../../crates/primitives", default-features = false }
......
......@@ -2,7 +2,7 @@
name = "adder"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../../crates/primitives", default-features = false }
......
......@@ -2,7 +2,7 @@
name = "subber"
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
[dependencies]
ink_primitives = { version = "3.0.0-rc6", path = "../../../crates/primitives", default-features = false }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment