@@ -1279,10 +1279,8 @@ impl CliUnstable {
1279
1279
"feature-unification" => self . feature_unification = parse_empty ( k, v) ?,
1280
1280
"gc" => self . gc = parse_empty ( k, v) ?,
1281
1281
"git" => {
1282
- self . git = v. map_or_else (
1283
- || Ok ( Some ( GitFeatures :: all ( ) ) ) ,
1284
- |v| parse_git ( v. split ( ',' ) ) ,
1285
- ) ?
1282
+ self . git =
1283
+ v. map_or_else ( || Ok ( Some ( GitFeatures :: all ( ) ) ) , |v| parse_git ( v. split ( ',' ) ) ) ?
1286
1284
}
1287
1285
"gitoxide" => {
1288
1286
self . gitoxide = v. map_or_else (
@@ -1297,7 +1295,7 @@ impl CliUnstable {
1297
1295
// can also be set in .cargo/config or with and ENV
1298
1296
"mtime-on-use" => self . mtime_on_use = parse_empty ( k, v) ?,
1299
1297
"no-index-update" => self . no_index_update = parse_empty ( k, v) ?,
1300
- "package-workspace" => self . package_workspace = parse_empty ( k, v) ?,
1298
+ "package-workspace" => self . package_workspace = parse_empty ( k, v) ?,
1301
1299
"panic-abort-tests" => self . panic_abort_tests = parse_empty ( k, v) ?,
1302
1300
"public-dependency" => self . public_dependency = parse_empty ( k, v) ?,
1303
1301
"profile-rustflags" => self . profile_rustflags = parse_empty ( k, v) ?,
@@ -1315,10 +1313,13 @@ impl CliUnstable {
1315
1313
"target-applies-to-host" => self . target_applies_to_host = parse_empty ( k, v) ?,
1316
1314
"unstable-options" => self . unstable_options = parse_empty ( k, v) ?,
1317
1315
"warnings" => self . warnings = parse_empty ( k, v) ?,
1318
- _ => bail ! ( "\
1316
+ _ => bail ! (
1317
+ "\
1319
1318
unknown `-Z` flag specified: {k}\n \n \
1320
- For available unstable features, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html\n \
1321
- If you intended to use an unstable rustc feature, try setting `RUSTFLAGS=\" -Z{k}\" `") ,
1319
+ For available unstable features, see \
1320
+ https://doc.rust-lang.org/nightly/cargo/reference/unstable.html\n \
1321
+ If you intended to use an unstable rustc feature, try setting `RUSTFLAGS=\" -Z{k}\" `"
1322
+ ) ,
1322
1323
}
1323
1324
1324
1325
Ok ( ( ) )
0 commit comments