1.0 feature gates
Is there a master list somewhere, of what feature gates will disappear by/in 1.0?
I know it's only a few days away from the first stable alpha, but in the 'getting ready for 1.0', I've been slowly trying to roll back the feature gates I use in my various crates and I'm still seeing errors when I remove them, notably for unsafe_destructor and macro_rules?
Similarly, is there a cargo flag for 'lint for use of unstable api'? I see rustc has --warn unstable, but I'm just been trawling through cargo issues about passing flags to rustc and I can't see any obvious way of doing it?
Posted Jan 6, 2015, 3:03 AM UTC
IIRC, the gates left to remove are globs, macro_rules, aaaand... I'm forgetting one. But they'll all be in the right place by Friday.
The lint hasn't landed yet, IIRC.
#20568 removes the gates on associated_types, default_type_parameters and globs.
Well, I've got to say I'm looking forwards to that lint.
For example http://static.rust-lang.org/doc/master/libc/stability.html seems to suggest that once the lint hits, absolutely nothing is going to work any more. :P
It kind of feels like its not even worth bothering to try to sort stuff out for now. As far as I can tell, every single package is going to broken once it does.
There is a significant amount of things that are going to be
#[stable]soon that aren't currently. For that crate in particular, see https://github.com/rust-lang/rust/pull/20606