about summary refs log tree commit diff
path: root/tests/source/structs.rs
AgeCommit message (Collapse)AuthorLines
2017-05-27Allow comments after attributes of struct fieldstopecongiro-0/+22
2017-05-04Add tests for issues which can be closed on mastertopecongiro-0/+8
2017-05-02Add test for empty tuple struct with commenttopecongiro-1/+1
2017-03-31Check existence of pre comment explicitlytopecongiro-0/+2
This commit fixes #1428.
2017-03-30Split long fields in structstopecongiro-0/+11
This commit splits long fields in structs. Closes #1412.
2017-02-19Make tests fail if rustfmt encounters an errorSebastian Blunt-0/+1
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-01-16make rustfmt-normalize_comments false by defaultNick Cameron-0/+1
2017-01-09Fix #1258 (#1266)sinkuu-0/+11
* Fix #1258 * Add test
2016-04-11Empty structs and struct lits (#920)Nick Cameron-0/+3
* Handle empty struct lits Closes #835 * Don't crash on empty struct defs. Not a great fix, but better than crashing.
2015-12-07Merge pull request #678 from marcusklaas/length-one-tuplezNick Cameron-0/+6
Fixed named arguments in bare function types
2015-12-06Fixed named arguments in bare function typesMarcus Klaas-0/+6
2015-11-30Don't include failed item rewrites in missed spansMarcus Klaas-1/+1
2015-11-22Correct doc comment indentation for struct fieldsMarcus Klaas-0/+4
Fix https://github.com/rust-lang-nursery/rustfmt/issues/572.
2015-11-13Fix brace indentation after where clauseMarcus Klaas-0/+6
2015-11-09Merge pull request #573 from nrc/doom_panicMarcus Klaas de Vries-0/+13
Format tuple structs better
2015-11-10Option to disable line breaking in commentsNick Cameron-0/+1
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-09Format tuple structs betterNick Cameron-0/+13
closes #546
2015-10-19Refactor enum formattingMarcus Klaas-0/+6
2015-10-08Support pre- and post-comments for enumsmwiczer-0/+10
Use lists to format enum variants rather than special formatting. Add tests for enums mostly around block comments.
2015-09-25Use the maximum available width in struct formattingMarcus Klaas-0/+3
Previously, we'd use an approximation for the maximum width since the configuration wasn't available in `write_list`.
2015-09-02Preserve some whitespace between struct fields etc.Nick Cameron-0/+28
2015-08-21Fix bug in path formattingMarcus Klaas-0/+6
2015-06-23Format tuple-like structsMarcus Klaas-0/+70