rustfmt
rustfmt copied to clipboard
Illegally adds comma to macro invocation
trafficstars
Rustfmt adds a comma to the following and causes a compiler error.
macro_rules! idx {
($(#[$attr:meta])* $vis:vis struct $name:ident; $metadata:ident) => {
$(#[$attr])*
$vis struct $name(usize);
};
}
idx!(
#[derive(Debug)]
pub struct FooIdx; // rustfmt adds a comma here
Meta
);