-
Notifications
You must be signed in to change notification settings - Fork 1k
Trailing space on doc comment #6832
Copy link
Copy link
Open
Labels
A-doc-commentsArea: doc comments `/** */`, `#[doc = "..."]`, `///` and `//!`.Area: doc comments `/** */`, `#[doc = "..."]`, `///` and `//!`.A-whitespaceArea: whitespace and its handlingArea: whitespace and its handlingC-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-needs-mcveCall for participation: this issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: this issue has a repro, but needs a Minimal Complete and Verifiable Example
Metadata
Metadata
Assignees
Labels
A-doc-commentsArea: doc comments `/** */`, `#[doc = "..."]`, `///` and `//!`.Area: doc comments `/** */`, `#[doc = "..."]`, `///` and `//!`.A-whitespaceArea: whitespace and its handlingArea: whitespace and its handlingC-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-needs-mcveCall for participation: this issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: this issue has a repro, but needs a Minimal Complete and Verifiable Example
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
I tried to format this code:
Expected behavior
I expect no change
Actual behavior
Add a trailing whitespace on the
/// let font = Str::from_static("JetBrains Mono");lineAnd then fail due to
error_on_unformated=trueConfiguration
rustfmt.toml
rustfmtcli options used (if applicable):Reproduction Steps
Meta
cargo +nighlty fmt -- --version: