-
Notifications
You must be signed in to change notification settings - Fork 970
Closed
Labels
A-rustfmt::skipArea: `rustfmt::skip` tool attributeArea: `rustfmt::skip` tool attributeC-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
Milestone
Description
Given the following project structure,
.
├── Cargo.lock
├── Cargo.toml
└── src
├── foo.rs
└── main.rs
// main.rs
mod foo;
fn main() {
println!("Hello, world!");
}// foo.rs
#![rustfmt::skip]
fn
foo()
{}rustfmt src/main.rs -c and rustfmt src/foo.rs -c succeeds but rustfmt -cr src/main.rs will fail with the following output:
Diff in /tmp/skip/src/foo.rs:1:
#![rustfmt::skip]
-fn
-foo()
-{}
+fn foo() {}
Metadata
Metadata
Assignees
Labels
A-rustfmt::skipArea: `rustfmt::skip` tool attributeArea: `rustfmt::skip` tool attributeC-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