-
Notifications
You must be signed in to change notification settings - Fork 980
Closed
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEP-highHigh priorityHigh priority
Description
Our CI hit a surprising formatting change: https://travis-ci.org/dtolnay/syn/jobs/490139618.
#[cfg(any(feature = "full", feature = "derive"))]
pub fn fold_abi<V: Fold + ?Sized>(_visitor: &mut V, _i: Abi) -> Abi {
Abi {
- extern_token: Token),
+ extern_token: Token ! [ extern ](tokens_helper(_visitor, &_i.extern_token.span)),
name: (_i.name).map(|it| _visitor.fold_lit_str(it)),
}
}I minimized this to:
echo 'Token ! [ extern ];' | cargo run --bin rustfmtBefore f4f9502:
Token![extern];Since f4f9502:
Token ! [ extern ];Mentioning @topecongiro and @scampi who were involved in that PR.
Metadata
Metadata
Assignees
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEP-highHigh priorityHigh priority