diff --git a/src/compiler/rust.rs b/src/compiler/rust.rs index 6c435d012..f808d7f94 100644 --- a/src/compiler/rust.rs +++ b/src/compiler/rust.rs @@ -1000,7 +1000,6 @@ impl IntoArg for ArgTarget { ArgData! { TooHardFlag, - TooHard(OsString), TooHardPath(PathBuf), NotCompilationFlag, NotCompilation(OsString), @@ -1088,7 +1087,7 @@ fn parse_arguments(arguments: &[OsString], cwd: &Path) -> CompilerArguments { + Some(TooHardFlag) | Some(TooHardPath(_)) => { cannot_cache!(arg.flag_str().expect("Can't be Argument::Raw/UnknownFlag",)) } Some(NotCompilationFlag) | Some(NotCompilation(_)) => {