3 ms·
Just so I'm clear, are you saying then that it's not possible or desireble to have Rust 201X code link against Rust 201Y STD? Or would that work? Sorry if I'm
by nixpulvis 8y ago
Just so I'm clear, are you saying then that it's not possible or desireble to have Rust 201X code link against Rust 201Y STD? Or would that work?
Sorry if I'm not making my thought very clear.
- steveklabnik 8y agoIt is not possible to have the standard library be different for different editions; it must be the same in all of them. There’s no #[cfg(edition=“”)] construct.
- nixpulvis 8y agoGotcha, thanks for taking the time to explain. I hope I didn't come off as being to negative about the change. Warnings are still a pretty good solution here.
- steveklabnik 8y agoIt’s all good!
- hyperman1 8y agoCan't there be a # [deprecate(untiledition=2018)] to solve this? The standard library contains all the old stuff but it becomes inaccessible in all editions after 2018.
- steveklabnik 8y agoThere can not.