Merge pull request #3155 from emilio/missed-spans-bug
missed-spans: Fix bogus check.
This commit is contained in:
commit
b2706ebecc
@ -308,9 +308,6 @@ fn process_missing_code(
|
||||
status.line_start = i + 1;
|
||||
} else if c.is_whitespace() && status.last_wspace.is_none() {
|
||||
status.last_wspace = Some(i);
|
||||
} else if c == ';' && status.last_wspace.is_some() {
|
||||
status.line_start = i;
|
||||
status.last_wspace = None;
|
||||
} else {
|
||||
status.last_wspace = None;
|
||||
}
|
||||
|
3
tests/source/long-use-statement-issue-3154.rs
Normal file
3
tests/source/long-use-statement-issue-3154.rs
Normal file
@ -0,0 +1,3 @@
|
||||
// rustfmt-reorder_imports: false
|
||||
|
||||
pub use self :: super :: super :: super :: root::mozilla::detail::StringClassFlags as nsTStringRepr_ClassFlags ;
|
3
tests/target/long-use-statement-issue-3154.rs
Normal file
3
tests/target/long-use-statement-issue-3154.rs
Normal file
@ -0,0 +1,3 @@
|
||||
// rustfmt-reorder_imports: false
|
||||
|
||||
pub use self :: super :: super :: super :: root::mozilla::detail::StringClassFlags as nsTStringRepr_ClassFlags ;
|
Loading…
Reference in New Issue
Block a user