Skip to content

Commit 2afe452

Browse files
committed
Remove -preview for rustup components.
1 parent 44d8b40 commit 2afe452

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

src/rust-2018/rustup-for-managing-rust-versions.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,15 @@ information to know more about the functions you're trying to call.
145145
$ rustup component add rust-src
146146
```
147147

148-
### The "preview" components
149-
150-
There are several components in a "preview" stage. These components currently
151-
have `-preview` in their name, and this indicates that they're not quite 100%
152-
ready for general consumption yet. Please try them out and give us feedback,
153-
but know that they do not follow Rust's stability guarantees, and are still
154-
actively changing, possibly in backwards-incompatible ways.
155-
156-
#### `rustfmt-preview` for automatic code formatting
148+
### `rustfmt` for automatic code formatting
157149

158150
![Minimum Rust version: 1.24](https://img.shields.io/badge/Minimum%20Rust%20Version-1.24-brightgreen.svg)
159151

160152
If you'd like to have your code automatically formatted, you can
161153
install this component:
162154

163155
```console
164-
$ rustup component add rustfmt-preview
156+
$ rustup component add rustfmt
165157
```
166158

167159
This will install two tools, `rustfmt` and `cargo-fmt`, that will reformat your
@@ -173,7 +165,7 @@ $ cargo fmt
173165

174166
will reformat your entire Cargo project.
175167

176-
#### `rls-preview` for IDE integration
168+
### `rls` for IDE integration
177169

178170
![Minimum Rust version: 1.21](https://img.shields.io/badge/Minimum%20Rust%20Version-1.21-brightgreen.svg)
179171

@@ -182,17 +174,18 @@ protocol](http://langserver.org/). To gain support for Rust with these IDEs,
182174
you'll need to install the Rust language sever, aka the "RLS":
183175

184176
```console
185-
$ rustup component add rls-preview
177+
$ rustup component add rls
186178
```
187179

188-
Your IDE should take it from there.
180+
For more information about integrating this into your IDE, see the [RLS
181+
documentation](https://github.com/rust-lang/rls).
189182

190-
#### `clippy-preview` for more lints
183+
### `clippy` for more lints
191184

192185
For even more lints to help you write Rust code, you can install `clippy`:
193186

194187
```console
195-
$ rustup component add clippy-preview
188+
$ rustup component add clippy
196189
```
197190

198191
This will install `cargo-clippy` for you:
@@ -202,7 +195,15 @@ $ cargo clippy
202195
```
203196

204197
For more, check out [clippy's
205-
documentation](https://github.com/rust-lang-nursery/rust-clippy).
198+
documentation](https://github.com/rust-lang/rust-clippy).
199+
200+
### The "preview" components
201+
202+
There are several components in a "preview" stage. These components currently
203+
have `-preview` in their name, and this indicates that they're not quite 100%
204+
ready for general consumption yet. Please try them out and give us feedback,
205+
but know that they do not follow Rust's stability guarantees, and are still
206+
actively changing, possibly in backwards-incompatible ways.
206207

207208
#### `llvm-tools-preview` for using extra LLVM tools
208209

0 commit comments

Comments
 (0)