rust/tests
Mike Baker 1d4b988414 Strip leading | in match arm patterns
This addresses issue #2621

This commit turns out to be a partial revert of
ea3c01e337

The rationale is that a `|` character preceding a match pattern is not
semantically relevant and therefore should be considered a
style/formatting choice.

A discussion concluded that the best way to emit consistent formatting
here was to strip the leading `|`

This removes the match_with_beginning_vert test because it was asserting
the old behaviour which has been changed, it adds a new test
(issue_2621) which should be a more comprehensive check of the behavior
of `|` in match arms.

Discussion at https://github.com/rust-lang-nursery/fmt-rfcs/issues/119
2018-06-25 00:53:15 +01:00
..
config Switch to comments for rustfmt config 2018-06-19 09:30:50 -04:00
coverage Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00
source Strip leading | in match arm patterns 2018-06-25 00:53:15 +01:00
target Strip leading | in match arm patterns 2018-06-25 00:53:15 +01:00
writemode Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00