Skip to content

Commit f3ec73f

Browse files
committed
expand on rls stuff
thanks @Xanewok!
1 parent 03b982f commit f3ec73f

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

posts/2018-12-20-Rust-1.31.1.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,27 @@ This patch release fixes a build failure on on `powerpc-unknown-netbsd` by
2727
way of [an update to the `libc`
2828
crate](https://github.com/rust-lang/rust/pull/56562) used by the compiler.
2929

30-
Additionally, the Rust Language Server was updated to fix two critical bugs:
30+
Additionally, the Rust Language Server was updated to fix two critical bugs.
31+
First, [hovering over the type with documentation above single-line
32+
attributes led to 100% CPU
33+
usage:](https://github.com/rust-lang/rls/pull/1170)
34+
35+
```rust
36+
/// Some documentation
37+
#[derive(Debug)] // Multiple, single-line
38+
#[allow(missing_docs)] // atributes
39+
pub struct MyStruct { /* ... */ }
40+
```
41+
42+
[Go to definition was fixed for std types](https://github.com/rust-lang/rls/pull/1171):
43+
Before, using the RLS on `HashMap`, for example, tried to open this file
44+
45+
```text
46+
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/libstd/collections/hash/map.rs
47+
```
48+
49+
and now RLS goes to the correct location (for Rust 1.31, note the extra `src`):
3150

32-
* <https://github.com/rust-lang/rls/issues/1171>
33-
* <https://github.com/rust-lang/rls/pull/1170>
51+
```text
52+
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/collections/hash/map.rs
53+
```

0 commit comments

Comments
 (0)