Skip to content

Commit ee8b11f

Browse files
committed
Migrate to 2021 edition
1 parent dc4d269 commit ee8b11f

File tree

16 files changed

+18
-21
lines changed

16 files changed

+18
-21
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rustpython"
33
version = "0.1.2"
44
authors = ["RustPython Team"]
5-
edition = "2018"
5+
edition = "2021"
66
description = "A python interpreter written in rust."
77
repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"

ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rustpython-ast"
33
version = "0.1.0"
44
authors = ["RustPython Team"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[features]
88
default = ["constant-optimization", "fold"]

bytecode/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "rustpython-bytecode"
33
description = "RustPython specific bytecode."
44
version = "0.1.2"
55
authors = ["RustPython Team"]
6-
edition = "2018"
6+
edition = "2021"
77
repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
99

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rustpython-common"
33
version = "0.0.0"
44
authors = ["RustPython Team"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[features]
88
threading = ["parking_lot"]

compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Compiler for python code into bytecode for the rustpython VM."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"
77
license = "MIT"
8-
edition = "2018"
8+
edition = "2021"
99

1010
[dependencies]
1111
indexmap = "1.0"

compiler/porcelain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "rustpython-compiler"
33
version = "0.1.2"
44
description = "A usability wrapper around rustpython-parser and rustpython-compiler-core"
55
authors = ["RustPython Team"]
6-
edition = "2018"
6+
edition = "2021"
77

88
[dependencies]
99
thiserror = "1.0"

derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Rust language extensions and macros specific to rustpython."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"
77
license = "MIT"
8-
edition = "2018"
8+
edition = "2021"
99

1010
[lib]
1111
proc-macro = true

derive/src/from_args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,17 @@ fn generate_field((i, field): (usize, &Field)) -> Result<TokenStream> {
185185
let file_output = match attr.kind {
186186
ParameterKind::PositionalOnly => {
187187
quote! {
188-
#fieldname: args.take_positional()#middle#ending,
188+
#fieldname: args.take_positional()#middle #ending,
189189
}
190190
}
191191
ParameterKind::PositionalOrKeyword => {
192192
quote! {
193-
#fieldname: args.take_positional_keyword(#pyname)#middle#ending,
193+
#fieldname: args.take_positional_keyword(#pyname)#middle #ending,
194194
}
195195
}
196196
ParameterKind::KeywordOnly => {
197197
quote! {
198-
#fieldname: args.take_keyword(#pyname)#middle#ending,
198+
#fieldname: args.take_keyword(#pyname)#middle #ending,
199199
}
200200
}
201201
ParameterKind::Flatten => unreachable!(),

jit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Experimental JIT(just in time) compiler for python code."
55
authors = [ "RustPython Team" ]
66
repository = "https://github.com/RustPython/RustPython"
77
license = "MIT"
8-
edition = "2018"
8+
edition = "2021"
99

1010
autotests = false
1111

parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [ "RustPython Team" ]
66
build = "build.rs"
77
repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
9-
edition = "2018"
9+
edition = "2021"
1010

1111
[build-dependencies]
1212
lalrpop = "0.19.6"

0 commit comments

Comments
 (0)