-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Compatibility to rustc (1.50.0+dfsg1+llvm-0ubuntu5) shipped with Ubuntu 21.04 (hirsute) #9629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…or::ArrayIterator::new
…alent code without using them
…ures" not presen in `rustc` available in Ubuntu 21.04
…ustc shipped in Ubuntu 21.04
…in the stdlib. I am not sure how to rewrite it properly
Note that this is the wrong place do discuss the overall rust-lang policy of compiler upgrades. The right place for that discussion would be the internals forum: https://internals.rust-lang.org. As for the language version policy of the rust-analyzer itself, we currently explicitly only support the latest stable compiler, both at the compile time (you need stable rust to compile ra) and at runtime (using rust-analyzer with other versions of rustc might result in proc macros not working). My practical advice, for the cases where only an old compiler is available, is to pick the corresponding older version of rust-analyzer. For example, for distro packaging, it makes sense to package the version which is distrubuted via rustup for the corresponding rustc version. I don't think it's likely that we'll make the MSRV of rust-analyzer itself more lax. If anything, we might end up using nightly/beta instead of stable once we move closer to rustc. As such, I am going to close this PR. If you believe that the policy is wrong, and that we should support older compilers at compile time, please open an issue for discussion: it's not useful to charge ahead with patches reverting an explicit decision: https://github.com/rust-analyzer/rust-analyzer/blob/64bf67c5aa096eb6a059d6bb8304981ecb90318e/xtask/src/install.rs#L10-L12 |
This comment has been minimized.
This comment has been minimized.
Thanks for the info.
In fact I haven't been expecting it to be merged (Rust community really likes using nightly versions, I am not here to dissuade them). I have done them for myself (and other like-minded people), but they are here just to increase their visibility and to get the feedback. |
Ah sorry, I've misunderstood your intention then! I still suggest creating an issue for this purpose, an open issue is a better point of coordination than a closed PR! |
Just to correct some factual errors that might confuse other Debian users who find this thread:
|
IMHO it was too early to use the recently stabilized features of Rust before the changes appearred in all the distros.
I know most of you like/have to to use
rustup
andcurl ... | bash
, but Rust Foundation packaging practices are just inacceptable. Fortunately in distros some versions of Rust are packaged. Unfortunately the versions they ship are "old" compared to the pace of Rust language development (and IMHO it was a mistake to add support of experimental features into stable flavour of rust but give no way to enable them, if the language develops in such a pace).So here is the series of patches. Some of them revert some cosmetic commits, some of them revert the commits with the features I haven't managed to rewrite into older syntax and stdlib (I don't know Rust well enough for it), some of them just rewrite pieces of code into old syntax.