Maximilian Roos
df72570b58
set of clippy changes
2018-08-28 00:33:51 -04:00
cad97
04d804c365
Rename CodeMap/FileMap to SourceMap/SourceFile
...
#2946
2018-08-23 17:10:46 -04:00
Stéphane Campinas
dd14d304ef
discard trailing blank comments
2018-08-16 19:59:32 +02: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
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
2eeb366311
Ignore comment in wrap_str
2018-08-05 10:50:43 +09:00
Seiichi Uchida
2eca09e438
Fix parsing '#'-hiding of rustdoc
2018-08-05 08:44:20 +09:00
Nick Cameron
481e85cc58
formatting
2018-07-24 15:46:39 +12:00
Nick Cameron
b085113cbe
Trigger an internal error if we skip formatting due to a lost comment
2018-07-20 16:05:19 +12:00
Stéphane Campinas
86018133a0
removed unused max_width argument of rewrite_string function
2018-07-14 19:33:26 +02:00
Seiichi Uchida
604764abe1
Trim custom comment prefix even when we failed to format code block
2018-06-05 15:58:14 +09:00
Seiichi Uchida
1b4778d0bc
Handle code block with indented escapce character
2018-06-05 15:57:49 +09:00
Seiichi Uchida
a70213b009
Trim custom comment prefixes from code block without closing backticks
2018-06-05 15:57:03 +09:00
topecongiro
5d067f16e0
Format code block with sharp prefix
...
by hiding lines with a leading `#` behind a custom comment.
2018-05-23 23:30:07 +09:00
topecongiro
f1974e2209
Handle code block in doc comment without rust prefix
2018-05-23 23:29:28 +09:00
Shotaro Yamada
d1e2b80fb9
Use saturating_sub
2018-05-15 20:41:43 +09:00
Nick Cameron
51f566062f
Update uses of rustfmt_skip
to rustfmt::skip
2018-05-14 16:25:10 +12:00
topecongiro
bd25c7d0f7
Cargo fmt
2018-05-08 06:25:48 +09:00
topecongiro
1f738ea208
Cargo fmt
2018-05-06 15:22:29 +09:00
topecongiro
43df7dcb0e
Run cargo fmt with reorder_impl_items set to true
2018-04-30 16:24:01 +09:00
Nick Cameron
b7ba6f70b1
Merge pull request #2576 from topecongiro/merge-imports
...
Use normalized form to format use items
2018-04-05 17:39:22 +12:00
Seiichi Uchida
89070a2244
Implement LineClasses
2018-04-05 12:52:43 +09:00
Seiichi Uchida
f6c0a0f4ed
Cargo fmt
2018-03-31 14:23:40 +09:00
Shotaro Yamada
4757321277
Don't index a string with chars().count()
2018-03-22 08:33:18 +09:00
Nick Cameron
bcaeab7a5e
Merge pull request #2527 from topecongiro/issue-2526
...
Check whether '\\'' is char literal or lifetime
2018-03-12 11:25:40 +13:00
Seiichi Uchida
86a427fe32
Check whether '\\'' is char literal or lifetime
2018-03-10 01:19:38 +09:00
Seiichi Uchida
484469899b
Keep code block without correct backticks enclosing
2018-03-09 09:46:43 +09:00
topecongiro
93d454aed7
Only format code blocks in comments with rust syntax notation
2018-03-05 19:30:08 +09:00
Nick Cameron
39301ae5f2
Go back to a non-workspace structure
...
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
2018-03-02 14:58:23 +13:00
topecongiro
4af2aa3a9e
Create rustfmt_core crate
2018-02-07 22:48:05 +09:00
Nick Cameron
b7f01769f9
Merge branch 'master' into init-shorthand
2018-02-01 15:20:01 +13:00
Nick Cameron
4633786848
Merge pull request #2396 from topecongiro/issue-2389
...
Put attributes and enum variants on different lines
2018-01-29 10:36:26 +11:00
Seiichi Uchida
c60d865b98
Put attributes and enum variants on different lines
2018-01-26 16:20:00 +09:00
Seiichi Uchida
dfc67a5df7
Cargo clippy
2018-01-26 14:53:28 +09:00
Seiichi Uchida
154bf8e1af
Cargo fmt
2018-01-22 13:05:18 +09:00
Seiichi Uchida
27167cbbaa
Format code block in comment
...
Closes #554 .
Closes #1695 .
2017-12-24 23:56:51 +09:00
Seiichi Uchida
ccc487ade7
Do not put comment's line start and closer on the same line
2017-12-17 15:25:24 +09:00
Seiichi Uchida
81eb88c4c0
Respect leading whitespace in original comment when wrapping comment
2017-12-17 15:24:49 +09:00
Seiichi Uchida
516f15aba1
Cargo clippy
2017-12-12 13:48:12 +09:00
Nick Cameron
644b60ad85
Merge pull request #2257 from topecongiro/error-on-line-overflow-strings
...
Add error_on_line_overflow_strings config option
2017-12-11 16:41:15 +13:00
Seiichi Uchida
6c3de706ae
Make RichChar public
2017-12-11 11:48:17 +09:00
Seiichi Uchida
d1e5d7866b
Make CharClasses and FullCodeCharKind public
2017-12-11 11:47:19 +09:00
Seiichi Uchida
5faf31bb32
Trim a trailing whitespace on empty line inside code block comment
2017-12-11 11:37:13 +09:00
Seiichi Uchida
3ebe054362
Replace into() on &str with to_owned()
2017-12-08 13:07:42 +09:00
Seiichi Uchida
7c4a84751f
Convert '&str' into 'String' whenever necessary
2017-12-07 13:57:52 +09:00
Nick Cameron
b07e4339f0
Merge pull request #2221 from topecongiro/rfc/blank-lines
...
Keep vertical spaces between items or statements within range
2017-12-06 15:52:19 +13:00
Seiichi Uchida
228578b9c7
Add count_newlines() utility function
2017-12-05 15:17:40 +09:00
topecongiro
16184d3e16
Cargo fmt and update a test
2017-12-03 11:34:18 +09:00
Seiichi Uchida
b9126fac82
Do not format fenced code blocks in comment
2017-12-02 23:01:50 +09:00
Seiichi Uchida
89f27764ed
Cargo fmt and update tests
2017-12-02 17:45:39 +09:00