News for hackers. Stuff that matters.
Re:Announcing Rust 1.27 by KwanEsq on Thursday June 21, 2018 @08:18PM (#17370262)
>We have to keep the old syntax working for stability reasons

Will Rust 2018 enable you to remove the old syntax? Or is that a bigger change than the opt-in is allowed to cover?

Re:Announcing Rust 1.27 by dikaiosune on Thursday June 21, 2018 @09:59PM (#17370711)
Rust's built-in lints are configurable with compiler directives, so you'll be able to add

    #![deny(bare_trait_objects)]
To the top of your crate and cause a compiler warning if someone uses the old syntax on your project.

EDIT: just realized I mis-parsed "you" in parent. Oh well.

Re:Announcing Rust 1.27 by steveklabnik on Thursday June 21, 2018 @08:50PM (#17370401)
This kind of change is the kind an edition can make, though I’m not 100% sure if the plan for 2018 is to warn or error on the older syntax.
Re:Announcing Rust 1.27 by lewisinc on Friday June 22, 2018 @02:20AM (#17371811)
I feel like a warning for one edition and error on the next would make it straightforward as to how much time is left to update the code.
Re:Announcing Rust 1.27 by steveklabnik on Friday June 22, 2018 @06:48AM (#17372971)
That’s generally true, the question is, do you warn in 2015 or 2018?

That being said, this particular fix is 100% automatable, and rustfix can already do it, so the time to update is “a few seconds”.

Re:Announcing Rust 1.27 by littlestymaar on Friday June 22, 2018 @05:03AM (#17372545)
IIRC, it will take two editions before removing something: at the first edition the compiler will lint against it (which is already quite a big change: you get tons of new warnings you need to fix) and one edition later, it's an error.

Edit: I didn't see the answer from steveklabnik below. Apparently, it's not clearly decided yet.

Re:Announcing Rust 1.27 by db48x on Thursday June 21, 2018 @08:37PM (#17370353)
Yes, the next edition will allow breaking changes, while still allowing you to use crates written in the older edition.
Re:Announcing Rust 1.27 by steveklabnik on Thursday June 21, 2018 @08:51PM (#17370404)
some forms of breaking changes. This is of that kind, though we cannot make arbitrary ones.