rust-analyzer broken after rustc got bumped

  • Open
  • quality assurance status badge
Details
One participant
  • Steven Roose
Owner
unassigned
Submitted by
Steven Roose
Severity
normal
S
S
Steven Roose wrote on 13 Apr 2023 20:35
(address . bug-guix@gnu.org)
e0331d49-bbeb-ebdf-dec8-dffbfec3c002@roose.io
The Guix version of rust-analyzer that is in rust-apps.scm is somehow
dependent on rustc 1.60.0 and seems to use it internally to do
compilation and checks.


Guix recently published rustc v1.65.0 to the repo and after pulling that
in, many compilations fail with some very strange error message "this
crate is not compiled for the right Rust version, please recompile with
version 1.60".

One possible workaround would probably be to instruct rust-analyzer to
use a different directory to store its artefacts, but that would mean
building everything twice and keeping two sets of build artifacts which
can become quite sizable.


It seems that either rust-analyzer should be make
rustc-version-independent, no idea how that would work, or rust-analyzer
should be updated alongside rustc whenever possible.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 62818@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 62818
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch