]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoWrapping `indent_style="Block"` struct snippet in function
David Alber [Sun, 14 Jan 2018 03:44:03 +0000 (19:44 -0800)]
Wrapping `indent_style="Block"` struct snippet in function

6 years agoCorrecting `indent_style="Visual"` generics snippet
David Alber [Sun, 14 Jan 2018 03:39:10 +0000 (19:39 -0800)]
Correcting `indent_style="Visual"` generics snippet

6 years agoCorrecting `indent_style="Block"` generics snippet
David Alber [Sun, 14 Jan 2018 03:36:19 +0000 (19:36 -0800)]
Correcting `indent_style="Block"` generics snippet

6 years agoWrapping `indent_style="Visual"` function call snippet in function
David Alber [Sun, 14 Jan 2018 03:02:21 +0000 (19:02 -0800)]
Wrapping `indent_style="Visual"` function call snippet in function

6 years agoWrapping `indent_style="Block"` function call snippet in function
David Alber [Sun, 14 Jan 2018 02:56:35 +0000 (18:56 -0800)]
Wrapping `indent_style="Block"` function call snippet in function

6 years agoWrapping `indent_style="Visual"` array snippet in function
David Alber [Thu, 11 Jan 2018 02:30:17 +0000 (18:30 -0800)]
Wrapping `indent_style="Visual"` array snippet in function

6 years agoWrapping `indent_style="Block"` array snippet in function
David Alber [Thu, 11 Jan 2018 02:27:43 +0000 (18:27 -0800)]
Wrapping `indent_style="Block"` array snippet in function

6 years agoMerge pull request #2367 from Stinners/range_binopts
Seiichi Uchida [Tue, 16 Jan 2018 08:52:09 +0000 (17:52 +0900)]
Merge pull request #2367 from Stinners/range_binopts

Fixing binop_separator="Back" for ranges (Issue #2364)

6 years agoMerge pull request #2366 from davidalber/restore-characters
Seiichi Uchida [Tue, 16 Jan 2018 08:51:37 +0000 (17:51 +0900)]
Merge pull request #2366 from davidalber/restore-characters

Restoring accidentally-removed characters

6 years agoRestoring characters accidentally removed in bbe4b380
David Alber [Tue, 16 Jan 2018 04:57:28 +0000 (20:57 -0800)]
Restoring characters accidentally removed in bbe4b380

6 years agoFixing binop_separator="Back" for ranges
Chris Stinson [Tue, 16 Jan 2018 04:39:21 +0000 (17:39 +1300)]
Fixing binop_separator="Back" for ranges

Hardcoded Separator::Place=Front in call to rewrite_pair for range
caused binop_separator="Back" to be hendled incorrectly

Fixed rewrite_pair call and the example in Configuration.md showing
the faulty behaviour

6 years agoMerge pull request #2361 from davidalber/fix-binop-separator-back-snippet
Nick Cameron [Tue, 16 Jan 2018 00:01:02 +0000 (13:01 +1300)]
Merge pull request #2361 from davidalber/fix-binop-separator-back-snippet

Getting `binop_separator="Back"` snippet in Configurations.md to pass

6 years agoGetting `binop_separator="Back"` to pass
David Alber [Sun, 14 Jan 2018 20:26:26 +0000 (12:26 -0800)]
Getting `binop_separator="Back"` to pass

6 years ago0.3.5
Seiichi Uchida [Mon, 15 Jan 2018 11:50:47 +0000 (20:50 +0900)]
0.3.5

6 years agoMerge pull request #2363 from davidalber/reword-config-note
Seiichi Uchida [Mon, 15 Jan 2018 11:46:22 +0000 (20:46 +0900)]
Merge pull request #2363 from davidalber/reword-config-note

Rewording configuration note

6 years agoRewording configuration note
David Alber [Mon, 15 Jan 2018 09:41:11 +0000 (01:41 -0800)]
Rewording configuration note

6 years agoMerge pull request #2357 from topecongiro/issue-2342
Nick Cameron [Fri, 12 Jan 2018 04:32:55 +0000 (17:32 +1300)]
Merge pull request #2357 from topecongiro/issue-2342

Put attributes and struct fields on different line by default

6 years agoMerge pull request #2355 from topecongiro/hide-parse-error-format-snippet
Nick Cameron [Fri, 12 Jan 2018 04:31:43 +0000 (17:31 +1300)]
Merge pull request #2355 from topecongiro/hide-parse-error-format-snippet

Hide parse error in format_snippet()

6 years agoMerge pull request #2352 from topecongiro/issue-2337
Nick Cameron [Fri, 12 Jan 2018 04:31:12 +0000 (17:31 +1300)]
Merge pull request #2352 from topecongiro/issue-2337

Break after colon if static item does not fit in a single line

6 years agoMerge pull request #2351 from topecongiro/issue-2256
Nick Cameron [Fri, 12 Jan 2018 04:30:27 +0000 (17:30 +1300)]
Merge pull request #2351 from topecongiro/issue-2256

Use correct BytePos when recovering comments on removed import

6 years agoMerge pull request #2350 from topecongiro/issue-2324
Nick Cameron [Fri, 12 Jan 2018 04:27:45 +0000 (17:27 +1300)]
Merge pull request #2350 from topecongiro/issue-2324

Issue 2324

6 years agoMerge pull request #2353 from davidalber/merge-print-diff
Seiichi Uchida [Thu, 11 Jan 2018 23:26:42 +0000 (08:26 +0900)]
Merge pull request #2353 from davidalber/merge-print-diff

Consolidating the logic for printing output

6 years agoMerge pull request #2358 from PSeitz/master
Seiichi Uchida [Thu, 11 Jan 2018 23:26:14 +0000 (08:26 +0900)]
Merge pull request #2358 from PSeitz/master

case insensitive FIXME and TODO

6 years agoConsolidating the logic for printing output
David Alber [Sat, 6 Jan 2018 08:32:48 +0000 (00:32 -0800)]
Consolidating the logic for printing output

6 years agocase insensitive FIXME and TODO
Pascal Seitz [Thu, 11 Jan 2018 10:04:28 +0000 (11:04 +0100)]
case insensitive FIXME and TODO

6 years agoUpdate changelog
Seiichi Uchida [Thu, 11 Jan 2018 08:24:35 +0000 (17:24 +0900)]
Update changelog

6 years agoPut attributes and struct fields on different line
Seiichi Uchida [Thu, 11 Jan 2018 07:55:50 +0000 (16:55 +0900)]
Put attributes and struct fields on different line

6 years agoAdd a test for #2343 and update tests
Seiichi Uchida [Thu, 11 Jan 2018 07:53:13 +0000 (16:53 +0900)]
Add a test for #2343 and update tests

6 years agoRemove same_line_attributes config option
Seiichi Uchida [Thu, 11 Jan 2018 07:52:28 +0000 (16:52 +0900)]
Remove same_line_attributes config option

6 years agoHide parse error in format_snippet()
Seiichi Uchida [Thu, 11 Jan 2018 06:19:23 +0000 (15:19 +0900)]
Hide parse error in format_snippet()

6 years agoUse published versions of libsyntax and librustc_errors
Nick Cameron [Thu, 11 Jan 2018 05:21:35 +0000 (18:21 +1300)]
Use published versions of libsyntax and librustc_errors

Rather than the versions shipping with the compiler. These are still unstable,
so nightly is still required, but we can control when we update so breakage should
happen less often.

6 years agoMinor refactoring in macros.rs
Nick Cameron [Thu, 11 Jan 2018 04:40:05 +0000 (17:40 +1300)]
Minor refactoring in macros.rs

6 years agoBreak after colon if static item does not fit in a single line
Seiichi Uchida [Wed, 10 Jan 2018 14:23:42 +0000 (23:23 +0900)]
Break after colon if static item does not fit in a single line

6 years agoUse correct BytePos when recovering comments on removed import
Seiichi Uchida [Wed, 10 Jan 2018 12:30:41 +0000 (21:30 +0900)]
Use correct BytePos when recovering comments on removed import

6 years agoAdd a test for #2256
Seiichi Uchida [Wed, 10 Jan 2018 12:30:13 +0000 (21:30 +0900)]
Add a test for #2256

6 years agoFix error message printing wrong file names
Seiichi Uchida [Wed, 10 Jan 2018 08:17:18 +0000 (17:17 +0900)]
Fix error message printing wrong file names

The error messsages from `self_test` does not display correct file names
(it just prints `src/lib.rs` for every file). This commit fixes it.

6 years agoCargo fmt
Seiichi Uchida [Wed, 10 Jan 2018 08:17:06 +0000 (17:17 +0900)]
Cargo fmt

6 years agoReformat a nested function call with a single newline using larger budget
Seiichi Uchida [Wed, 10 Jan 2018 08:15:02 +0000 (17:15 +0900)]
Reformat a nested function call with a single newline using larger budget

6 years agoAdd a test for #2324
Seiichi Uchida [Wed, 10 Jan 2018 08:14:50 +0000 (17:14 +0900)]
Add a test for #2324

6 years agoMerge pull request #2349 from davidalber/configurations-failure-message
Seiichi Uchida [Wed, 10 Jan 2018 07:08:44 +0000 (16:08 +0900)]
Merge pull request #2349 from davidalber/configurations-failure-message

Modifying failure messages to be consistent with mismatch message

6 years agoMerge pull request #2348 from davidalber/remove-unused
Seiichi Uchida [Wed, 10 Jan 2018 07:08:16 +0000 (16:08 +0900)]
Merge pull request #2348 from davidalber/remove-unused

Removing unused name

6 years agoRemoving unused name
David Alber [Sun, 7 Jan 2018 05:23:54 +0000 (21:23 -0800)]
Removing unused name

6 years agoModifying failure messages to be consistent with mismatch message
David Alber [Tue, 9 Jan 2018 16:36:24 +0000 (08:36 -0800)]
Modifying failure messages to be consistent with mismatch message

6 years agoMerge pull request #2292 from davidalber/configurations-checking
Nick Cameron [Tue, 9 Jan 2018 05:39:15 +0000 (18:39 +1300)]
Merge pull request #2292 from davidalber/configurations-checking

Configurations checking

6 years agoAdding test to verify code block idempotency in Configurations.md
David Alber [Wed, 13 Dec 2017 08:40:07 +0000 (00:40 -0800)]
Adding test to verify code block idempotency in Configurations.md

6 years agoMerge pull request #2316 from topecongiro/issue-2315
Nick Cameron [Thu, 4 Jan 2018 04:49:47 +0000 (17:49 +1300)]
Merge pull request #2316 from topecongiro/issue-2315

Remove trailing comma from extern items snippet before comparing

6 years agoMerge pull request #2336 from vishalsodani/master
Nick Cameron [Thu, 4 Jan 2018 04:31:02 +0000 (17:31 +1300)]
Merge pull request #2336 from vishalsodani/master

Fix #2300

6 years agoFix #2300
Vishal Sodani [Thu, 4 Jan 2018 04:07:08 +0000 (09:37 +0530)]
Fix #2300

6 years agoMerge pull request #2332 from topecongiro/impl-and-trait
Nick Cameron [Thu, 4 Jan 2018 03:51:56 +0000 (16:51 +1300)]
Merge pull request #2332 from topecongiro/impl-and-trait

Fix up formatting bugs in impl and trait

6 years agoRefactoring: use methods from libsyntax attr module
topecongiro [Thu, 4 Jan 2018 01:16:59 +0000 (10:16 +0900)]
Refactoring: use methods from libsyntax attr module

6 years agoCompare extern crate items with its name instead of span
topecongiro [Thu, 4 Jan 2018 01:15:13 +0000 (10:15 +0900)]
Compare extern crate items with its name instead of span

When we use span, bugs easily sneak in.

6 years agoPut the opening brace of impl on the next line
topecongiro [Tue, 2 Jan 2018 04:52:19 +0000 (13:52 +0900)]
Put the opening brace of impl on the next line

We put the opening brace on the next line if the following conditions hold:

1. the result before '{' ends with comments or contains newline
2. the last line of the result before '{' is not extendable (i.e. consists of
   '>' and whitespaces).

6 years agoUse correct budget when rewriting generics of trait
topecongiro [Tue, 2 Jan 2018 04:51:25 +0000 (13:51 +0900)]
Use correct budget when rewriting generics of trait

6 years agoAdd and update tests for #2320 and #2331
topecongiro [Tue, 2 Jan 2018 04:50:43 +0000 (13:50 +0900)]
Add and update tests for #2320 and #2331

6 years agoMerge pull request #2330 from topecongiro/issue-2329
Nick Cameron [Thu, 4 Jan 2018 02:07:05 +0000 (15:07 +1300)]
Merge pull request #2330 from topecongiro/issue-2329

Issue 2329

6 years agoMerge pull request #2335 from Hopman/rename_git-fmt
Seiichi Uchida [Thu, 4 Jan 2018 01:32:43 +0000 (10:32 +0900)]
Merge pull request #2335 from Hopman/rename_git-fmt

Rename git-fmt to git-rustfmt

6 years agoMerge pull request #2313 from LukasKalbertodt/patch-1
Nick Cameron [Thu, 4 Jan 2018 01:09:20 +0000 (14:09 +1300)]
Merge pull request #2313 from LukasKalbertodt/patch-1

Add options `blank_lines_{lower|upper}_bound` to `Configurations.md`

6 years agoMerge pull request #2327 from nrc/macro-defs
Nick Cameron [Thu, 4 Jan 2018 01:02:37 +0000 (14:02 +1300)]
Merge pull request #2327 from nrc/macro-defs

Some macros 2.0 macro defs

6 years agoMerge pull request #2306 from dtwood/assert-eq-on-one-line
Nick Cameron [Thu, 4 Jan 2018 00:42:24 +0000 (13:42 +1300)]
Merge pull request #2306 from dtwood/assert-eq-on-one-line

Add assert_eq! to special-cased macros

6 years agoRename git-fmt to git-rustfmt
Joost Hopmans [Wed, 3 Jan 2018 13:15:45 +0000 (14:15 +0100)]
Rename git-fmt to git-rustfmt

6 years agoBetter handling of comments in macro defs
Nick Cameron [Wed, 3 Jan 2018 07:36:52 +0000 (20:36 +1300)]
Better handling of comments in macro defs

6 years agoAdd options `blank_lines_{lower|upper}_bound` to `Configurations.md`
Lukas Kalbertodt [Tue, 26 Dec 2017 12:00:48 +0000 (13:00 +0100)]
Add options `blank_lines_{lower|upper}_bound` to `Configurations.md`

6 years agoRemove trim_newlines()
topecongiro [Tue, 2 Jan 2018 04:04:39 +0000 (13:04 +0900)]
Remove trim_newlines()

We call `trim_newlines()` after the `trim()`ed buffer, which is unnecessary.

6 years agoAdd a test for #2329
topecongiro [Tue, 2 Jan 2018 04:04:26 +0000 (13:04 +0900)]
Add a test for #2329

6 years agoFormat some macros 2.0 macro defs
Nick Cameron [Mon, 1 Jan 2018 06:40:51 +0000 (19:40 +1300)]
Format some macros 2.0 macro defs

cc #1539

6 years agoTests for formatting macro 2.0 defs
Nick Cameron [Mon, 1 Jan 2018 06:51:30 +0000 (19:51 +1300)]
Tests for formatting macro 2.0 defs

6 years agoMerge pull request #2326 from davidalber/indent-bullet-text
Nick Cameron [Mon, 1 Jan 2018 06:38:11 +0000 (19:38 +1300)]
Merge pull request #2326 from davidalber/indent-bullet-text

Aligning text with its bullet

6 years agoAligning text with its bullet
David Alber [Mon, 1 Jan 2018 02:41:46 +0000 (18:41 -0800)]
Aligning text with its bullet

6 years agoMerge pull request #2318 from davidalber/config-option-subdirectories
Seiichi Uchida [Sun, 31 Dec 2017 13:22:34 +0000 (22:22 +0900)]
Merge pull request #2318 from davidalber/config-option-subdirectories

Moving config option tests to a dedicated subdirectory

6 years agoUpdating error message
David Alber [Thu, 28 Dec 2017 18:20:48 +0000 (10:20 -0800)]
Updating error message

6 years agoMoving test files to satisfy `verify_config_test_names` test
David Alber [Thu, 28 Dec 2017 18:19:02 +0000 (10:19 -0800)]
Moving test files to satisfy `verify_config_test_names` test

6 years agoTesting that config option tests use the expected config option
David Alber [Thu, 28 Dec 2017 09:02:59 +0000 (01:02 -0800)]
Testing that config option tests use the expected config option

6 years agoMoving config option tests to subdirectory
David Alber [Thu, 28 Dec 2017 06:44:30 +0000 (22:44 -0800)]
Moving config option tests to subdirectory

This was done by running the following.

```sh
for f in `find . -name "configs-*.rs"`; do
    topdir=`echo $f | cut -d/ -f2`;
    configname=`echo $f | cut -d/ -f3 | cut -d- -f2`;
    testname=`echo $f | cut -d/ -f3 | cut -d- -f3`;
    mkdir -p $topdir/configs/$configname;
    git mv $f $topdir/configs/$configname/$testname;
done
```

6 years agoRenaming tests to match existing convention
David Alber [Thu, 28 Dec 2017 06:41:23 +0000 (22:41 -0800)]
Renaming tests to match existing convention

6 years agoRenaming test to match existing convention
David Alber [Thu, 28 Dec 2017 06:19:40 +0000 (22:19 -0800)]
Renaming test to match existing convention

6 years agoMerge pull request #2317 from vishalsodani/master
Seiichi Uchida [Thu, 28 Dec 2017 16:08:21 +0000 (01:08 +0900)]
Merge pull request #2317 from vishalsodani/master

Fix sentence structure

6 years agoFix sentence structure
Vishal Sodani [Thu, 28 Dec 2017 14:43:33 +0000 (20:13 +0530)]
Fix sentence structure

6 years agoSplit assert_eq! if any arguments are not simple
David Wood [Wed, 27 Dec 2017 21:19:42 +0000 (21:19 +0000)]
Split assert_eq! if any arguments are not simple

6 years agoMerge pull request #2314 from hcpl/fix-readme-ci-instructions
Nick Cameron [Wed, 27 Dec 2017 21:14:22 +0000 (10:14 +1300)]
Merge pull request #2314 from hcpl/fix-readme-ci-instructions

Fix version replacement notes for CI in README.md

6 years agoMake the import of Config pub
Nick Cameron [Wed, 27 Dec 2017 21:08:27 +0000 (10:08 +1300)]
Make the import of Config pub

6 years agoFix version replacement notes for CI in README.md
hcpl [Wed, 27 Dec 2017 17:41:42 +0000 (19:41 +0200)]
Fix version replacement notes for CI in README.md

6 years agoMerge pull request #2308 from davidalber/recursive-test-files
Seiichi Uchida [Wed, 27 Dec 2017 10:16:01 +0000 (19:16 +0900)]
Merge pull request #2308 from davidalber/recursive-test-files

Adding ability to recursively find test files

6 years agoUse std time
Marcus Klaas [Fri, 17 Nov 2017 13:21:46 +0000 (14:21 +0100)]
Use std time

6 years agoAdd rudimentary timing of parsing and formatting phases
Marcus Klaas [Tue, 14 Nov 2017 13:42:48 +0000 (14:42 +0100)]
Add rudimentary timing of parsing and formatting phases

6 years agoMerge pull request #2310 from topecongiro/issue-2309
Nick Cameron [Wed, 27 Dec 2017 01:12:45 +0000 (14:12 +1300)]
Merge pull request #2310 from topecongiro/issue-2309

Do not give up rewriting struct field when attribute is long

6 years agoMerge pull request #2311 from topecongiro/format-code-block
Nick Cameron [Wed, 27 Dec 2017 00:32:14 +0000 (13:32 +1300)]
Merge pull request #2311 from topecongiro/format-code-block

Format code block in comment

6 years agoUpdating error message
David Alber [Sun, 24 Dec 2017 21:31:46 +0000 (13:31 -0800)]
Updating error message

6 years agoRefactoring
Seiichi Uchida [Sun, 24 Dec 2017 15:13:59 +0000 (00:13 +0900)]
Refactoring

1. Cargo clippy
2. Run 'cargo fmt' with import reordering options set to `true`.
3. Factor out `rewrite_lifetime_param()`.

6 years agoFormat code block in comment
Seiichi Uchida [Sun, 24 Dec 2017 14:40:53 +0000 (23:40 +0900)]
Format code block in comment

Closes #554.
Closes #1695.

6 years agoSlightly simplify `write_list` for `DefinitiveListTactic::SpecialMacro`
David Wood [Sun, 24 Dec 2017 12:29:54 +0000 (12:29 +0000)]
Slightly simplify `write_list` for `DefinitiveListTactic::SpecialMacro`

6 years agoAdd documentation to expr::SPECIAL_MACRO_WHITELIST
David Wood [Sun, 24 Dec 2017 12:27:07 +0000 (12:27 +0000)]
Add documentation to expr::SPECIAL_MACRO_WHITELIST

6 years agoMerge branch 'master' of https://github.com/rust-lang-nursery/rustfmt
David Wood [Sun, 24 Dec 2017 12:01:59 +0000 (12:01 +0000)]
Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt

6 years agoDo not give up rewriting struct field when attribute is long
Seiichi Uchida [Sun, 24 Dec 2017 04:57:29 +0000 (13:57 +0900)]
Do not give up rewriting struct field when attribute is long

6 years agoAdding ability to recursively find test files
David Alber [Sat, 23 Dec 2017 19:01:00 +0000 (11:01 -0800)]
Adding ability to recursively find test files

Part of #1492.

6 years agoGet rid of GenericsArg wrapper type
Seiichi Uchida [Sat, 23 Dec 2017 15:29:59 +0000 (00:29 +0900)]
Get rid of GenericsArg wrapper type

`GenericsArg` is basically identical to `ast::GenericParam`.
Just use the latter.

6 years agoCargo fmt
Seiichi Uchida [Sat, 23 Dec 2017 15:28:58 +0000 (00:28 +0900)]
Cargo fmt

Run 'cargo fmt' with the following setting:

```
reorder_imports = true
reorder_imports_in_group = true
```

6 years ago0.3.4
Seiichi Uchida [Sat, 23 Dec 2017 03:25:42 +0000 (12:25 +0900)]
0.3.4

6 years agoRemove workspace membership check
Seiichi Uchida [Sat, 23 Dec 2017 03:24:58 +0000 (12:24 +0900)]
Remove workspace membership check

6 years agoRustup to rustc 1.24.0-nightly (5165ee9e2 2017-12-22)
Seiichi Uchida [Sat, 23 Dec 2017 02:58:19 +0000 (11:58 +0900)]
Rustup to rustc 1.24.0-nightly (5165ee9e2 2017-12-22)

6 years agoFix off-by-one error in assert_eq! line wrapping
David Wood [Sat, 23 Dec 2017 01:32:55 +0000 (01:32 +0000)]
Fix off-by-one error in assert_eq! line wrapping

If two really long conditions are checked for equality, they wouldn't be split
into multiple lines if the last condition is the one to push the line past the
width limit.

Fix the off-by-one error that caused this, and add a test-case for it.