-
Notifications
You must be signed in to change notification settings - Fork 996
Open
Labels
C-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-ICEUO-imports_granularityUnstable option: imports_granularityUnstable option: imports_granularityonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce
Description
Repro steps
- Add the following inputs to
tests/source/5131_module.rs. - Execute
cargo test test::system_testsand get output.
case 1. correct
Input:
use foo::{
Foo,
bar::Bar,
};
Output:
use foo::bar::Bar;
use foo::Foo;
case 2. wrong
Input:
use foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::{
Foo,
bar::Bar,
};
Output:
use foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::{
Foo,
bar::Bar,
};
Expected:
use foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::bar::Bar;
use foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::Foo;
case 3. wrong
Input:
use x::fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::{
Foo,
bar::Bar,
};
Output:
use x::fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::{
Foo,
bar::Bar,
};
Expected:
use x::fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::bar::Bar;
use x::fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::Foo;
Link: #4991
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-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-ICEUO-imports_granularityUnstable option: imports_granularityUnstable option: imports_granularityonly-with-optionRequires a non-default option value to reproduceRequires a non-default option value to reproduce