-
Notifications
You must be signed in to change notification settings - Fork 932
Closed
Labels
1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releaseFixed/resolved in source but not yet backported to a 1x branch and releasepoor-formatting
Description
Describe the bug
Formatting this code places two spaces between pub
and &
.
struct X<'a>(
#[X(X = "_________________________________________________________________________")]
pub &'a u32,
// ^^
);
Expected behavior
The usual formatting is pub &'a u32
(single space). I would expect rustfmt to stay consistent. Removing the attribute, shortening it, or turning it into a comment all lead to the single space formatting.
Meta
Metadata
Metadata
Assignees
Labels
1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releaseFixed/resolved in source but not yet backported to a 1x branch and releasepoor-formatting