Skip to content

Commit d8e1236

Browse files
committed
Fix unknown option message for -Z
Before, unknown -Z option would result in a "error: unknown codegen option" message instead of "error: unknown debugging option".
1 parent 3d6f510 commit d8e1236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/session/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ macro_rules! options {
333333
break;
334334
}
335335
if !found {
336-
early_error(&format!("unknown codegen option: `{}`",
337-
key)[]);
336+
early_error(&format!("unknown {} option: `{}`",
337+
$outputname, key)[]);
338338
}
339339
}
340340
return op;

0 commit comments

Comments
 (0)