We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4ff22 commit 63f654aCopy full SHA for 63f654a
src/librustc_driver/lib.rs
@@ -1457,6 +1457,12 @@ fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
1457
args.push(arg.to_string_lossy().to_string());
1458
}
1459
1460
+ // Avoid printing help because of empty args. This can suggest the compiler
1461
+ // itself is not the program root (consider RLS).
1462
+ if args.len() < 2 {
1463
+ return None;
1464
+ }
1465
+
1466
let matches = if let Some(matches) = handle_options(&args) {
1467
matches
1468
} else {
0 commit comments