rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

suggestion: set rust's edition for exercises to 2021

Open Jagholin opened this issue 3 years ago • 0 comments

The rustlings crate itself has its edition set in Cargo.toml:

[package] name = "rustlings" version = "4.7.1" authors = ["mokou [email protected]", "Carol (Nichols || Goulding) [email protected]"] edition = "2021"

But for some reason, exercises use a different setting:

https://github.com/rust-lang/rustlings/blob/b19f74e8cfaba7775e8ff2d74cab9cb862fb1473/src/exercise.rs#L124

which is strange, but also confuses rust-analyzer sometimes, because some typings have changed between 2018 and 2021

Jagholin avatar Jun 11 '22 19:06 Jagholin