Skip to content

Commit 7b493e4

Browse files
authored
Merge pull request #144 from senorsmile/rustup-override-ver
Add example to rustup to show overriding to specific version
2 parents 23ad061 + 001f998 commit 7b493e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ If you run this inside of a project:
7272
$ rustup override set nightly
7373
```
7474

75+
Or, if you'd like to target a different version of Rust:
76+
```console
77+
$ rustup override set 1.30.0
78+
```
79+
7580
Then when you're in that directory, any invocations of `rustc` or `cargo`
7681
will use that toolchain. To share this with others, you can create a
7782
`rust-toolchain` file with the contents of a toolchain, and check it into
@@ -209,4 +214,4 @@ $ rustup component add llvm-tools-preview
209214
```
210215

211216
This is the newest component, and so doesn't have good documentation at the
212-
moment.
217+
moment.

0 commit comments

Comments
 (0)