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
2
2
3
3
` rustup ` automatically determines which [ toolchain] to use when one of the
4
4
installed 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
97
97
(if you are on Windows, check the encoding and that it does not start with a
98
98
BOM). The legacy format is not available in ` rust-toolchain.toml ` files.
99
99
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
+
100
110
The ` rust-toolchain.toml ` /` rust-toolchain ` files are suitable to check in to
101
111
source control.
102
112
You can’t perform that action at this time.
0 commit comments