Can't find rust source

I solved this problem by follwing steps:

rustup toolchain remove nightly-2024-05-24-x86_64-apple-darwin
rustup toolchain add nightly-2024-05-24-x86_64-apple-darwin

after I update toolchain from nightly-2023-09-24 to nightly-2024-05-24, /lib/rustlib/src is not exist

pearzl@mbp-pearzl rust-sdk1 % rustc --version
rustc 1.80.0-nightly (867900499 2024-05-23)
pearzl@mbp-pearzl rust-sdk1 % ls ~/.rustup/toolchains/nightly-2024-05-24-x86_64-apple-darwin/lib/rustlib/src
ls: /Users/pearzl/.rustup/toolchains/nightly-2024-05-24-x86_64-apple-darwin/lib/rustlib/src: No such file or directory
pearzl@mbp-pearzl rust-sdk1 % rustup default
nightly-2024-05-24-x86_64-apple-darwin (default)
pearzl@mbp-pearzl rust-sdk1 % rustup component add rust-src
info: component 'rust-src' is up to date

This has a help flag so do you need help or did you self resolve? I am seeing what you say does not exist seemingly does not exist, it is actually in a target not raw path. It is that x86-64-apple-darwin target that does not have that path. You are getting from nightly, maybe someone forgot something, could you try stable? Not expert help here, just a suggestion. Also, you got correct path to target? You sure? X E.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.