Where is rust-std? "lib/rustlib/src/rust/src" or "lib/rustlib/src/rust/library"

wok with IDEA, but it's not work T_T

got this error :
Cargo project update failed:
corrupted standard library: /home/user/.rustup/toolchains/nightly-2021-07-28-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src

where is the standard library?!

The standard library source is in lib/rustlib/src/rust/library if it is installed. It used to be in lib/rustlib/src/rust/src several years back. Do you have the latest version of the rust plugin for IDEA installed? Also try rustup component add rust-src to install the standard library sources. I would expect the rust plugin to do this for you, but maybe it fails for some reason.