Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit bdc3932

Browse files
authored
Merge pull request #1267 from h-michael/contributingmd
Add how RLS can be built without clippy_lints
2 parents 9082be6 + 2561a3d commit bdc3932

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

contributing.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,18 @@ you'll need a recent nightly compiler to build it.
4646
git clone https://github.com/rust-lang/rls.git
4747
cd rls
4848
cargo build --release
49-
```
49+
``````
50+
51+
#### If RLS couldn't be built with clippy
52+
53+
Sometimes nightly toolchain changes break the `clippy_lints` dependency.
54+
Since RLS depends on `clippy_lints` by default, those changes can also break RLS itself.
55+
In this case, you can build RLS like this:
56+
57+
`cargo build --no-default-features` (disabling the clippy feature)
5058
59+
And sometimes git revision of `clippy` submodule in the Rust repo (https://github.com/rust-lang/rust/tree/master/src/tools) and `clippy_lints` dependency of RLS is different.
60+
In this case, submit a PR here updating the `clippy_lints` dependency to the git revision pulled from the Rust tree.
5161
5262
### Step 3: Connect the RLS to your compiler
5363

0 commit comments

Comments
 (0)