ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Yury_Semenov [TO ADMINS] Rust compiler: edition 2021 [4] 14 Oct 2024 16:08
Hi,

I've got a compilation error in Rust (id: 10760679) because of a feature that appears in edition 2021, and the compiler on Timus uses some previous edition. Any plans to compile Rust code in edition 2021? It's already 2024 and the edition is stable (in fact, a newer edition will be released in several months), so it makes no sense to stick to an older edition.
Vladimir Yakovlev (USU) Re: [TO ADMINS] Rust compiler: edition 2021 [3] 28 Oct 2024 03:29
The current version of Rust compiler is 1.75.0, which was released on 28 December, 2023.
Yury_Semenov Re: [TO ADMINS] Rust compiler: edition 2021 [2] 29 Oct 2024 16:53
I think you misunderstood, edition is not compiler version, it's more like C++ standard (e. g. C++11). You can refer here: https://doc.rust-lang.org/edition-guide/editions/index.html
Vladimir Yakovlev (USU) Re: [TO ADMINS] Rust compiler: edition 2021 [1] 9 Nov 2024 02:59
Thanks for explanation. The command line changed to:

rustc -O --edition 2021 %1
Yury_Semenov Re: [TO ADMINS] Rust compiler: edition 2021 9 Nov 2024 17:50
Thank you!