-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Compile fails with error[E0596]: cannot borrow data in a &
reference as mutable
#9340
Comments
Cargo normally only has compatibility with the current stable version of Rust. ( And vice versa, Cargo only knows how to run the current nightly version of Rust ) Why do you want to build Cargo 0.52 with Rust 1.47? I would love to understand your use case better? |
Thanks for the report but as mentioned you'll need to use the latest stable to guarantee being able to build the latest stable version of Cargo. |
@Eh2406 - I got it working, I used the latest downloadable, then compiled the version I needed. Bit of a round about way, but result was a-ok. As a completely different question - is there / should there be a way of building cargo/rust from bootstrap? |
There are many people who bootstrap rust. I believe the recommended method
is to start with https://github.com/thepowersgang/mrustc then use x.py to
build one version at a time.
…On Sun, Apr 18, 2021, 7:37 AM heitbaum ***@***.***> wrote:
@Eh2406 <https://github.com/Eh2406> - I got it working, I used the latest
downloadable, then compiled the version I needed. Bit of a round about way,
but result was a-ok. As a completely different question - is there / should
there be a way of building cargo/rust from bootstrap?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9340 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4JUQA67BR436LLJYKIKILTJLAA7ANCNFSM42WA46DA>
.
|
I faced the bug with ubuntu 20.04 package, what would be the best option I have to install rust on a deb based distro ? |
Had to download a current rust and use that as a bootstrap. I haven’t done a full bootstrap yet with LibreELEC - on my list |
do we know what version we need as a minimum to avoid this bug ? |
It is the current or previous version |
you mean 1.52.0 and not before ? |
Using ubuntu 20.04, the build was failing with version cargo 0.47 / rustc 1.47. Following this discussion: rust-lang/cargo#9340 it appears that rustc 1.52 is the minimum version.
Hi Team,
Hoping you can help provide direction on enabling me to compile cargo on Ubuntu?
Problem
Compile of cargo fails with
error[E0596]: cannot borrow data in a
&reference as mutable --> src/cargo/ops/registry/auth.rs:179:22
Steps
Possible Solution(s)
Notes
Build is on ubuntu 18.04
Output of
cargo version
: 1.46.0rustc (1.47.0+dfsg1+llvm-1ubuntu1
18.04.1) ...exp1ubuntu1~18.04.1) ...cargo (0.47.0-1
Full logs
The text was updated successfully, but these errors were encountered: