Commit Graph

921 Commits

Author SHA1 Message Date
Nick Cameron 77824a24ef Merge pull request #2988 from YaLTeR/fix-issue-2922
Use correct indent in rewrite_bare_fn with Visual style
2018-09-11 15:50:13 +12:00
Nick Cameron f655671e12 Merge pull request #2983 from topecongiro/issue-2642
Handle raw string literals in CharClasses
2018-09-04 19:11:49 +12:00
Nick Cameron a67208f212 Merge pull request #2986 from topecongiro/issue-2907
Handle chain w/ try operators with spaces
2018-09-03 13:10:50 +12:00
Ivan Molodetskikh 430f848c75 Add a test for #2922 2018-08-31 16:25:01 +03:00
Ivan Molodetskikh 098a5391f0 Add a test for #2930 2018-08-31 15:25:08 +03:00
Seiichi Uchida 1b8f0ff1b6 Add a test for #2907 2018-08-31 18:10:47 +09:00
Ryan Leckey eec74360dc Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option 2018-08-31 00:04:23 -07:00
topecongiro 67480422b9 Handle raw string literal without any sharps 2018-08-31 10:49:39 +09:00
topecongiro c903119d8d Add a test for #2642 2018-08-31 10:37:22 +09:00
Seiichi Uchida d8301050a5 Add a test for #2956 2018-08-30 23:38:40 +09:00
crw5996 d832525809 Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into fix-use-bug 2018-08-27 23:04:55 -04:00
crw5996 20075306f7 Fixed Issues brought up in PR 2018-08-27 22:59:44 -04:00
crw5996 3585706fa2 Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into fix-optional-arg-condensing 2018-08-27 13:44:56 -04:00
Seiichi Uchida e1069403ca Add a test for #2969 2018-08-27 16:12:11 +09:00
Nick Cameron 97d29ff2e1 Merge pull request #2942 from crw5996/fix-ellipsis-bug
Fix Issue with ellipsis matching in pattern.rs
2018-08-27 09:44:28 +12:00
Zach Lute ca19c9a35a Fix build with rust nightly by updating try block syntax. (#2965) 2018-08-26 13:02:24 +09:00
Maximilian Roos 10512a59d0 Impl only use (#2951) 2018-08-24 14:39:05 +09:00
chris 4e748a269e Fixed ellipsis bug where rustfmt was creating code that could not be parsed 2018-08-24 00:58:21 -04:00
cad97 04d804c365 Rename CodeMap/FileMap to SourceMap/SourceFile
#2946
2018-08-23 17:10:46 -04:00
Nick Cameron 8573df602a Merge pull request #2925 from scampi/issue539
discard trailing blank comments
2018-08-23 10:13:56 +12:00
Seiichi Uchida dfe4eef8fc Remove an invalid attribute from a test
This has become a parser error.
2018-08-19 00:26:56 +09:00
Stéphane Campinas f23e6aaaf9 fix the identification of a block comment.
Block comments like below were not properly supported:

    /*
       something here but it doesn't start with a star
     */

because of the line that didn't start with a star.
2018-08-16 19:55:15 +02:00
Seiichi Uchida 71dc033fca Add a test for #2919 2018-08-16 07:49:50 +09:00
Seiichi Uchida 996dbbf960 Add a test for slice patterns 2018-08-12 23:55:34 +09:00
Nick Cameron 66d3924aa8 Merge pull request #2899 from topecongiro/chain-with-comments
Format chains with comment
2018-08-07 15:07:23 +12:00
Nick Cameron e4d560b914 Merge pull request #2897 from topecongiro/issue-2896
Ignore comment in wrap_str
2018-08-06 19:36:03 +12:00
Seiichi Uchida 7bccc4473c Add a test for chains with comment 2018-08-05 21:04:06 +09:00
Seiichi Uchida c19569c5d3 Add a test for #2896 2018-08-05 10:50:24 +09:00
Seiichi Uchida cf13534150 Add a test for #2884 2018-08-04 09:59:19 +09:00
Seiichi Uchida 8069efbe10 Add a test for #2888 2018-08-03 20:06:29 +09:00
Nick Cameron 9c34986bab Add some tests I forgot about earlier 2018-08-01 10:41:16 +12:00
Benjamin Brittain 46b241004d fix nits 2018-07-29 17:20:21 -07:00
Ben Brittain fedde3790c Add tests for async & async move 2018-07-29 08:55:36 -07:00
Nick Cameron 69ad879d52 Merge pull request #2864 from topecongiro/issue-2863
Modify the rule for reordering impl items
2018-07-27 16:24:46 +12:00
Nick Cameron 814f6339b4 Merge pull request #2862 from topecongiro/issue-2852
Preserve parens in trait bounds
2018-07-27 16:24:11 +12:00
Seiichi Uchida 87c4bd5a94 Add a test for #2863 2018-07-26 21:35:48 +09:00
Seiichi Uchida b7c443e948 Add and update tests for trait with paren 2018-07-25 18:27:02 +09:00
Nick Cameron 8ff2836eaf Merge pull request #2861 from topecongiro/issue-2859
Put lifetimes after trait when they gets orphaned
2018-07-25 21:22:25 +12:00
Seiichi Uchida 1b69ed9ae4 Rename test files 2018-07-25 18:16:10 +09:00
Seiichi Uchida 6b8c6f5e0f Add a test for #2859 2018-07-25 08:33:41 +09:00
Seiichi Uchida d512240206 Add tests for #2830 and #2857 2018-07-25 07:13:51 +09:00
Seiichi Uchida a2b40bd70f Add a test for associated existential type 2018-07-25 00:42:19 +09:00
Seiichi Uchida 6eb0bf2bb9 Add a simple test for exitential type 2018-07-25 00:29:45 +09:00
Nick Cameron dcf9f61635 Add tests
Closes #2773
Closes #2786
2018-07-24 15:46:39 +12:00
Nick Cameron 90c5792565 Set rustfmt-format_macro_matchers to false by default
cc #2543
2018-07-18 12:09:50 +12:00
Michael Bebenita c2ae39e77a Add max_width option for all heuristics.
This is useful when working with very small max_widths like 79 chars.
2018-07-17 13:17:36 -04:00
Nick Cameron b28a0cd6e6 Fix an anomaly with comments and array literals
Closes #2842
2018-07-17 15:40:19 +12:00
Stéphane Campinas 472a2ed0f6 fix rewrite_string when a line feed is present in a sequence of whitespaces, resulting in strange formatting 2018-07-14 19:22:31 +02:00
Nick Cameron 7a76e5b1b4 Add test for #2802 2018-07-12 21:37:28 +12:00
Nick Cameron d5cb93216b Merge pull request #2822 from topecongiro/issue-2782
Avoid panicking on deeply nested expressions
2018-07-01 14:38:30 +12:00