ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Общий форум

[TO ADMINS] Rust compiler: edition 2021
Послано Yury_Semenov 14 окт 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.
Re: [TO ADMINS] Rust compiler: edition 2021
Послано Vladimir Yakovlev (USU) 28 окт 2024 03:29
The current version of Rust compiler is 1.75.0, which was released on 28 December, 2023.
Re: [TO ADMINS] Rust compiler: edition 2021
Послано Yury_Semenov 29 окт 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
Re: [TO ADMINS] Rust compiler: edition 2021
Послано Vladimir Yakovlev (USU) 9 ноя 2024 02:59
Thanks for explanation. The command line changed to:

rustc -O --edition 2021 %1
Re: [TO ADMINS] Rust compiler: edition 2021
Послано Yury_Semenov 9 ноя 2024 17:50
Thank you!