Public bug reported:
Hello!
Looks like there is no sources at the path where rustanalyzer searches.
I believe that it searches at sysroot/lib/rustlib where sysroot is
reported by rustc command 'rustc --print sysroot'. It is /usr for
default rust-all package and /usr/lib/rust-1.xx for rust-1.xx-all
packages.
There is no src directory for rust-1.82-src packages.
$ ls -l /usr/lib/rustlib/
total 12
drwxr-xr-x 2 root root 4096 Jan 31 20:14 etc
drwxr-xr-x 2 root root 4096 Jan 31 20:14 src
drwxr-xr-x 4 root root 4096 Jan 31 20:14 x86_64-unknown-linux-gnu
$ ls -l /usr/lib/rust-1.85/lib/rustlib/
total 12
drwxr-xr-x 2 root root 4096 Jan 30 17:48 etc
drwxr-xr-x 2 root root 4096 Jan 31 20:15 src
drwxr-xr-x 4 root root 4096 Jan 30 17:48 x86_64-unknown-linux-gnu
$ ls -l /usr/lib/rust-1.82/lib/rustlib/
total 8
drwxr-xr-x 2 root root 4096 Jan 30 18:12 etc
drwxr-xr-x 4 root root 4096 Jan 30 18:11 x86_64-unknown-linux-gnu
It is minor issue because there are more up-to-date compilers available
without such problem. For example, rust-1.85-src does not have such
problem.
Thank you.
** Affects: rustc-1.85 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139514
Title:
rustanalyzer cannot find libstd sources for rust-1.82-src
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.85/+bug/2139514/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs