-
Notifications
You must be signed in to change notification settings - Fork 975
Closed
Labels
1x-backport:completedC-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-ICE
Description
Describe the bug
Rustfmt yeets const param defaults
#![feature(const_generics_defaults)]
struct Foo<const N: usize = 5usize>;
fn main() {}run cargo +nightly fmt or rustfmt or run the tool in playground etc and it gets formatted to:
#![feature(const_generics_defaults)]
struct Foo<const N: usize>;
fn main() {}Expected behavior
it to not do this
Meta
- rustfmt version: rustfmt 1.4.37-nightly (0bd2b19 2021-04-03)
- From where did you install rustfmt?: playground/cargo
- How do you run rustfmt: playground/cargo fmt/rustfmt
Lucretiel
Metadata
Metadata
Assignees
Labels
1x-backport:completedC-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-ICE