You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cargo install --git ... does not work with rustc from Homebrew (on MacOS) #5910
Compiling rustpython-common v0.4.0 (/Users/amak/.cargo/git/checkouts/rustpython-63090cdce5e18442/ec577e5/common)error[E0658]: `let` expressions in this position are unstable --> vm/src/protocol/object.rs:462:12 |462 | if let Some(cls) = PyType::check(cls) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more informationerror[E0658]: `let` expressions in this position are unstable --> vm/src/protocol/object.rs:463:16 |463 | && let Some(derived) = PyType::check(self) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more informationFor more information about this error, try `rustc --explain E0658`.error: could not compile `rustpython-vm` (lib) due to 2 previous errorserror: failed to compile `rustpython v0.4.0 (https://github.com/RustPython/RustPython#ec577e55)`, intermediate artifacts can be found at `<REDACTED RANDOM PATH>`.To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
🤷 I was planning on using this project to learn some rust-lang, but I seem to be stuck on the rust package manager already.
I doubt the correct response is the advice from rustc --explain E0658 to "just add the corresponding feature to be able to use it" (seems hackish and contrary to the rustpython project goals, but I'm just a neophyte to rust)
I susspect the hint about this being related to rust-lang/rust#53667 is more relevant and looks to my uninitiated eyes as related to rust-lang/rust#86730 (which I'm thinking needs something like let-verify + if verified ... style fix for stable versions of rustc, but I really am just guessing)
@youknowone, thanks for the quick response, 🙉 I miss-read the README the first time and took the example given to be the actual required version, despite the date. I should have checked for a stable upgrade 🤦 how embarrassing. 🙇 thank you again.
Activity
reactive-firewall commentedon Jul 8, 2025
Additional hint:
I found the relevant code here:
RustPython/vm/src/protocol/object.rs
Lines 461 to 463 in ec577e5
youknowone commentedon Jul 8, 2025
That's by policy. Please check our README: https://github.com/RustPython/RustPython/blob/main/README.md?plain=1#L22-L26
Rust community encourage to use rustup in general.
reactive-firewall commentedon Jul 8, 2025
@youknowone, thanks for the quick response, 🙉 I miss-read the README the first time and took the example given to be the actual required version, despite the date. I should have checked for a stable upgrade 🤦 how embarrassing. 🙇 thank you again.
rustc v1.88.0 (Homebrew)