-
Notifications
You must be signed in to change notification settings - Fork 1k
imports_granularity is not respected for #[cfg]'d items #6666
Copy link
Copy link
Open
Labels
A-cfgArea: `cfg` and conditional compilationArea: `cfg` and conditional compilationA-importsArea: imports, e.g. `use` syntaxArea: imports, e.g. `use` syntaxC-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-ICEI-changes-semanticsIssue: changes observable semantics of the code (even if code still compiles!)Issue: changes observable semantics of the code (even if code still compiles!)UO-imports_granularityUnstable option: imports_granularityUnstable option: imports_granularity
Metadata
Metadata
Assignees
Labels
A-cfgArea: `cfg` and conditional compilationArea: `cfg` and conditional compilationA-importsArea: imports, e.g. `use` syntaxArea: imports, e.g. `use` syntaxC-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-ICEI-changes-semanticsIssue: changes observable semantics of the code (even if code still compiles!)Issue: changes observable semantics of the code (even if code still compiles!)UO-imports_granularityUnstable option: imports_granularityUnstable option: imports_granularity
Type
Fields
Give feedbackNo fields configured for issues without a type.
Example with
imports_granularity = "crate". The following:will normalise to:
Note that the desire to avoid messing with
cfgs is too conservative here: the imports are not grouped in the same way.