We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[custom_mir]
1 parent 362e0f9 commit cdcecc8Copy full SHA for cdcecc8
1 file changed
compiler/rustc_attr_parsing/src/attributes/prototype.rs
@@ -82,7 +82,7 @@ fn extract_value<S: Stage>(
82
}
83
84
let Some(val) = arg.name_value() else {
85
- cx.adcx().expected_single_argument(arg.span().unwrap_or(span), 2);
+ cx.adcx().expected_name_value(span, Some(key));
86
*failed = true;
87
return;
88
};
0 commit comments