-
Notifications
You must be signed in to change notification settings - Fork 1k
format_strings breaks escaped character when string too long #6888
Copy link
Copy link
Open
Labels
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-ICES-has-mcveStatus: a Minimal Complete and Verifiable Example has been found for this issueStatus: a Minimal Complete and Verifiable Example has been found for this issueUO-format_stringsUnstable option: format_stringsUnstable option: format_strings
Metadata
Metadata
Assignees
Labels
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-ICES-has-mcveStatus: a Minimal Complete and Verifiable Example has been found for this issueStatus: a Minimal Complete and Verifiable Example has been found for this issueUO-format_stringsUnstable option: format_stringsUnstable option: format_strings
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Formatting this code:
Produces this code:
Which adds some spaces after the newline and an extra
ncharacter.Configuration
My
rustfmt.toml:(unstable, tracking issue: #3353)
Reproduction Steps
main.rsandrustfmt.tomlcargo fmtMeta
@rustbot label +S-has-mcve +UO-format_strings