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.
1 parent 06a03ba commit 948832dCopy full SHA for 948832d
crates/hir_expand/src/builtin_macro.rs
@@ -245,6 +245,12 @@ fn format_args_expand(
245
if args.is_empty() {
246
return ExpandResult::only_err(mbe::ExpandError::NoMatchingRule);
247
}
248
+ for arg in &mut args {
249
+ // Remove `key =`.
250
+ if matches!(arg.get(1), Some(tt::TokenTree::Leaf(tt::Leaf::Punct(p))) if p.char == '=') {
251
+ arg.drain(..2);
252
+ }
253
254
let _format_string = args.remove(0);
255
let arg_tts = args.into_iter().flat_map(|arg| {
256
quote! { std::fmt::ArgumentV1::new(&(##arg), std::fmt::Display::fmt), }
0 commit comments