-
Notifications
You must be signed in to change notification settings - Fork 971
Closed
Labels
2x-port:pendingA-commentsArea: commentsArea: commentsA-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-ICEE-help-wantedCall for participation: help is requested to fix this issueCall for participation: help is requested to fix this issueP-mediumMedium priorityMedium priority
Description
Hi. I think I found a bug in rust fmt.
The following good and compilable code:
info!(//debug
"{}: sending function_code={:04x} data={:04x} crc=0x{:04X} data={:02X?}",
self.name, function_code, data, crc, output_cmd
);
is wrongly formatted to this:
info!(
//debug "{}: sending function_code={:04x} data={:04x} crc=0x{:04X} data={:02X?}",
self.name, function_code, data, crc, output_cmd
);
Meta
- rustfmt version: rustfmt 1.4.14-nightly (a5cb5d2 2020-04-14)
- From where did you install rustfmt?: rustup
- How do you run rustfmt: cargo-fmt
Metadata
Metadata
Assignees
Labels
2x-port:pendingA-commentsArea: commentsArea: commentsA-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-ICEE-help-wantedCall for participation: help is requested to fix this issueCall for participation: help is requested to fix this issueP-mediumMedium priorityMedium priority