mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
fix error message for #[custom_mir]
This commit is contained in:
@@ -82,7 +82,7 @@ fn extract_value<S: Stage>(
|
||||
}
|
||||
|
||||
let Some(val) = arg.name_value() else {
|
||||
cx.adcx().expected_single_argument(arg.span().unwrap_or(span), 2);
|
||||
cx.adcx().expected_name_value(span, Some(key));
|
||||
*failed = true;
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user