Commit Graph

18 Commits

Author SHA1 Message Date
topecongiro 89d8eabba5 Add tests for #2594 2018-04-28 13:23:50 +09:00
Nick Cameron 4f522794ae Tidy up and pass tests 2018-03-02 15:07:13 +13:00
topecongiro 4af2aa3a9e Create rustfmt_core crate 2018-02-07 22:48:05 +09:00
Seiichi Uchida c60d865b98 Put attributes and enum variants on different lines 2018-01-26 16:20:00 +09:00
topecongiro 3d7d978fe8 Add a test for #2193 2017-11-27 20:53:54 +09:00
topecongiro 9ece82f9ea Add a test for #2190 2017-11-27 13:49:53 +09:00
topecongiro b3a3d5b164 Add a test for #1809 2017-11-16 16:01:50 +09:00
Seiichi Uchida 271da96098 Add a test for #2098 2017-10-30 23:38:05 +09:00
topecongiro a67b8b0bbb Use rewrite_assign_rhs when rewriting unit variant 2017-10-25 01:08:32 +09:00
topecongiro f35a420597 Update tests 2017-08-11 17:54:30 +09:00
topecongiro 2376582dfb Update tests 2017-08-11 17:54:20 +09:00
topecongiro d97ecd319d Update tests 2017-07-25 18:51:29 +09:00
topecongiro 7be703a637 Implement Rewrite trait for syntax::ast::Attribute 2017-06-06 13:55:34 +09:00
topecongiro d7de5b7656 Allow comments after attributes on enum fields 2017-06-04 23:27:21 +09:00
Sebastian Blunt 235f33b230 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).
2017-02-19 19:57:02 +01:00
Nick Cameron b7d61254a7 Option to disable line breaking in comments
Set to false by default for now, since we are having a lot of problems with comments. We should set to true once we have a better algorithm.
2015-11-10 08:03:01 +13:00
Marcus Klaas 11756d2ef8 Refactor enum formatting 2015-10-19 21:28:05 +02:00
mwiczer 5162282b60 Support pre- and post-comments for enums
Use lists to format enum variants rather than special formatting.
Add tests for enums mostly around block comments.
2015-10-08 17:22:57 -04:00