]> git.lizzy.rs Git - rust.git/commit
visitor: Make sure to don't eat or realign items when they should be skipped due...
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 29 Jul 2017 15:06:50 +0000 (17:06 +0200)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 31 Jul 2017 08:14:58 +0000 (09:14 +0100)
commit6bf9124ace1f341176ee3996aa0cb3c013bf9d8c
tree75f0e98e20675e828741be1b2bcc1613c099c2bd
parent47456aaa43ec1ff156dcc324b8dd48262c23effe
visitor: Make sure to don't eat or realign items when they should be skipped due to file-lines.

Before this patch, stuff like the argument with the comment was realigned to
column 0, even when being outside of the file_lines range.
src/utils.rs
tests/source/file-lines-item.rs
tests/target/file-lines-item.rs