]> git.lizzy.rs Git - rust.git/commit
Make tests fail if rustfmt encounters an error
authorSebastian Blunt <sebastian@c4k3.net>
Sun, 19 Feb 2017 18:57:02 +0000 (19:57 +0100)
committerSebastian Blunt <sebastian@c4k3.net>
Sun, 19 Feb 2017 18:57:02 +0000 (19:57 +0100)
commit235f33b230be1a890e4d9553ddcf02c80b6c4730
tree620025acc3b3f743a64240201ed4cac6740f1a18
parentf6ccbd71c3f6264fd2c807a399dd64f5685f67d0
Make tests fail if rustfmt encounters an error

Previously tests would not fail if they encountered an error such as
LineOverflow or TrailingWhitespace. Making the tests error out will fix
this mismatch between running rustfmt for real and running the tests.

This also modifies all tests that previously contained errors so that
they no longer contain errors (in almost all of the tests this is
accomplished by setting error_on_line_overflow = false).
25 files changed:
tests/source/comment4.rs
tests/source/enum.rs
tests/source/file-lines-3.rs
tests/source/hard-tabs.rs
tests/source/imports.rs
tests/source/issue-913.rs
tests/source/string-lit.rs
tests/source/string_punctuation.rs
tests/source/struct_lits.rs
tests/source/struct_lits_visual.rs
tests/source/struct_lits_visual_multiline.rs
tests/source/structs.rs
tests/system.rs
tests/target/comment4.rs
tests/target/enum.rs
tests/target/file-lines-3.rs
tests/target/hard-tabs.rs
tests/target/imports.rs
tests/target/issue-913.rs
tests/target/string-lit.rs
tests/target/string_punctuation.rs
tests/target/struct_lits.rs
tests/target/struct_lits_visual.rs
tests/target/struct_lits_visual_multiline.rs
tests/target/structs.rs