fix error message for #[custom_mir]

This commit is contained in:
Sasha Pourcelot
2026-04-04 18:57:54 +00:00
parent 362e0f9160
commit cdcecc85ac
@@ -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;
};