fix #48816 don't print help on indirect compiler ICE
This commit is contained in:
parent
8c4ff22a2d
commit
63f654a495
@ -1457,6 +1457,12 @@ fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
|
||||
args.push(arg.to_string_lossy().to_string());
|
||||
}
|
||||
|
||||
// Avoid printing help because of empty args. This can suggest the compiler
|
||||
// itself is not the program root (consider RLS).
|
||||
if args.len() < 2 {
|
||||
return None;
|
||||
}
|
||||
|
||||
let matches = if let Some(matches) = handle_options(&args) {
|
||||
matches
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user