File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- # Overrides
1+ [[ # ]] Overrides
22
33` rustup ` automatically determines which [ toolchain] to use when one of the
44installed commands like ` rustc ` is executed. There are several ways to control
@@ -97,6 +97,16 @@ just `nightly-2021-01-21`. The file has to be encoded in US-ASCII this case
9797(if you are on Windows, check the encoding and that it does not start with a
9898BOM). The legacy format is not available in ` rust-toolchain.toml ` files.
9999
100+ If you see the following error (when running ` rustc ` , ` cargo ` or other command)
101+
102+ ```
103+ error: invalid channel name '[toolchain]' in '/PATH/TO/DIRECTORY/rust-toolchain'
104+ ```
105+
106+ it means you're running ` rustup ` pre-1.23.0 and trying to interact with a project
107+ that uses the new TOML encoding in the ` rust-toolchain ` file. You need to upgrade
108+ ` rustup ` to 1.23.0+.
109+
100110The ` rust-toolchain.toml ` /` rust-toolchain ` files are suitable to check in to
101111source control.
102112
You can’t perform that action at this time.
0 commit comments