[Bug 2139514] [NEW] rustanalyzer cannot find libstd sources for rust-1.82-src
Dmitry
2139514 at bugs.launchpad.net
Sat Jan 31 21:52:44 UTC 2026
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
Foundations Bugs, which is subscribed to rustc-1.85 in Ubuntu.
https://bugs.launchpad.net/bugs/2139514
Title:
rustanalyzer cannot find libstd sources for rust-1.82-src
Status in rustc-1.85 package in Ubuntu:
New
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.85/+bug/2139514/+subscriptions
More information about the foundations-bugs
mailing list