Closed alexhenrie closed 3 years ago
Hi Alex, thanks for the report and the patch!
Actually, the patch here misses the source of the issue, and will install a local Rust compiler even in cases a stable compiler is availabe. The errors comes from the fact that prerelease
is None
in cases where rustc
is a stable compiler. But the correct way to fix it would be something along the lines of:
rustc = get_rust_version()
nightly = rustc.prerelease is not None and "nightly" in rustc.prerelease
Can you update your PR to reflect this (and check it works on your side)?
Yes, your proposed code works. I have updated the pull request :-)
Thanks! I will push a patch release once I get CI to pass again (looks like ECO is broken atm).
Thank you!
This patch fixes the following error: