Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example to rustup to show overriding to specific version #144

Merged
merged 1 commit into from
Feb 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/rust-2018/rustup-for-managing-rust-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ If you run this inside of a project:
$ rustup override set nightly
```

Or, if you'd like to target a different version of Rust:
```console
$ rustup override set 1.30.0
```

Then when you're in that directory, any invocations of `rustc` or `cargo`
will use that toolchain. To share this with others, you can create a
`rust-toolchain` file with the contents of a toolchain, and check it into
Expand Down Expand Up @@ -209,4 +214,4 @@ $ rustup component add llvm-tools-preview
```

This is the newest component, and so doesn't have good documentation at the
moment.
moment.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no change on this line. Any idea why it's showing that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed a space at the end of the line, which is good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Vim must have done that automatically with one of the various plugins I've installed.