File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
contrib/tools/config-docs-generator/src Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -157,18 +157,10 @@ fn generate_rustdoc_json(package: &str) -> Result<serde_json::Value> {
157
157
158
158
// WARNING: This tool relies on nightly rustdoc JSON output (-Z unstable-options --output-format json)
159
159
// The JSON format is subject to change with new Rust nightly versions and could break this tool.
160
- // Determine the toolchain to use for rustdoc. Allow callers to override the
161
- // default "+nightly" prefix via the `RUST_NIGHTLY_VERSION` environment variable
162
- // so CI can pin a specific nightly (e.g. "+nightly-2025-06-17").
163
- let toolchain_arg =
164
- std:: env:: var ( "RUST_NIGHTLY_VERSION" ) . unwrap_or_else ( |_| "nightly" . to_string ( ) ) ;
165
-
166
- let toolchain_arg = format ! ( "+{}" , toolchain_arg) ;
167
-
168
- // Use cargo rustdoc with the selected toolchain to generate JSON for the main package
160
+ // Use cargo rustdoc with nightly to generate JSON for the main package
169
161
let output = StdCommand :: new ( "cargo" )
170
162
. args ( [
171
- toolchain_arg . as_str ( ) ,
163
+ "+nightly" ,
172
164
"rustdoc" ,
173
165
"--lib" ,
174
166
"-p" ,
@@ -198,7 +190,7 @@ fn generate_rustdoc_json(package: &str) -> Result<serde_json::Value> {
198
190
) ;
199
191
let output = StdCommand :: new ( "cargo" )
200
192
. args ( [
201
- toolchain_arg . as_str ( ) ,
193
+ "+nightly" ,
202
194
"rustdoc" ,
203
195
"--lib" ,
204
196
"-p" ,
You can’t perform that action at this time.
0 commit comments