Commit fafb883
committed
Fix tabs having a fixed width internally
Ref rust-lang#4968. Tabs were always counted to have a width of config.tab_spaces.
Since they actually can have less than that depending on the line's
previous contents, rustfmt would sometimes complain about the line
length even if the line did actually fit.1 parent efa8f55 commit fafb883
2 files changed
Lines changed: 9 additions & 1 deletion
File tree
- src
- tests/target/configs/error_on_unformatted
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments