-
Notifications
You must be signed in to change notification settings - Fork 996
Closed
Labels
A-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-ICEonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Description
Recently, I enabled a rustfmt rule:
imports_granularity = "Module"After I re-fmt, the code failed to be compiled. And thus I found an unexpected rustfmt behaviour:
before fmt:
use risingwave_pb::data::DataType;
use risingwave_pb::data::DataType as DataTypeProst;after fmt:
use risingwave_pb::data::DataType as DataTypeProst;But the codes that use "DataType" are not changed.
I don't think that rustfmt should turn the correct code into incorrect in any condition.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-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-ICEonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce