Skip to content

Commit 9d970c6

Browse files
committed
rollup merge of #21753: dzamlo/master
Before, unknown -Z option would result in a "error: unknown codegen option" message instead of "error: unknown debugging option".
2 parents 42e4c1a + d8e1236 commit 9d970c6

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)