Skip to content

normalize_comments = true de-normalizes some comments #4909

@drahnr

Description

@drahnr

According to https://rust-lang.github.io/rustfmt/?version=v1.4.36&search=#normalize_comments should convert /* yada */ to // yada, but the inverse happens.

# rustfmt +nightly --version
rustfmt 1.4.37-nightly (d2b04f0 2021-07-07)
normalize_comments = true
normalize_doc_attributes = true

results in a delta of

@@ -150,11 +151,11 @@ pub enum Stage {
        AvailabilityRecovery = 6,
        BitfieldDistribution = 7,
        ApprovalChecking = 8,
-       // Expand as needed, numbers should be ascending according to the stage
-       // through the inclusion pipeline, or according to the descriptions
-       // in [the path of a para chain block]
-       // (https://polkadot.network/the-path-of-a-parachain-block/)
-       // see [issue](https://github.com/paritytech/polkadot/issues/2389)
+       /* Expand as needed, numbers should be ascending according to the stage
+        * through the inclusion pipeline, or according to the descriptions
+        * in [the path of a para chain block]
+        * (https://polkadot.network/the-path-of-a-parachain-block/)
+        * see [issue](https://github.com/paritytech/polkadot/issues/2389) */
 }
 
 /// A wrapper type for a span.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commentsArea: commentsE-help-wantedCall for participation: help is requested to fix this issueonly-with-optionRequires a non-default option value to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions