]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agobackport new syntax to rustfmt 1.x (#4105)
Caleb Cartwright [Tue, 31 Mar 2020 06:28:01 +0000 (01:28 -0500)]
backport new syntax to rustfmt 1.x (#4105)

* feat: support raw reference operator

* feat: support const opt-out syntax

* feat: support half open range syntax

4 years agoMerge pull request #4100 from calebcartwright/rustfmt1x-rustc-v650
Manish Goregaokar [Mon, 30 Mar 2020 19:36:28 +0000 (12:36 -0700)]
Merge pull request #4100 from calebcartwright/rustfmt1x-rustc-v650

bump rustfmt 1x to rustc-ap v651

4 years agorefactor: use ast::attr:HasAttrs
Caleb Cartwright [Mon, 30 Mar 2020 18:11:00 +0000 (13:11 -0500)]
refactor: use ast::attr:HasAttrs

4 years agodeps: bump rustc-ap* to v651
Caleb Cartwright [Mon, 30 Mar 2020 17:02:39 +0000 (12:02 -0500)]
deps: bump rustc-ap* to v651

4 years agorefactor: rename libsyntax --> rustc_ast
Caleb Cartwright [Sat, 28 Mar 2020 03:29:12 +0000 (22:29 -0500)]
refactor: rename libsyntax --> rustc_ast

4 years agofix: unreachable err on Fn with `None` block
Caleb Cartwright [Sat, 28 Mar 2020 03:13:46 +0000 (22:13 -0500)]
fix: unreachable err on Fn with `None` block

4 years agofix: use correct ForeignItem span
Caleb Cartwright [Sat, 28 Mar 2020 03:00:00 +0000 (22:00 -0500)]
fix: use correct ForeignItem span

4 years agochore: fix src formatting
Caleb Cartwright [Sat, 28 Mar 2020 02:47:03 +0000 (21:47 -0500)]
chore: fix src formatting

4 years agorefactor: parse & mod resolver for rustc-ap v650
Caleb Cartwright [Fri, 27 Mar 2020 04:18:16 +0000 (23:18 -0500)]
refactor: parse & mod resolver for rustc-ap v650

4 years agorefactor: backport syntux mod
Caleb Cartwright [Fri, 27 Mar 2020 02:25:34 +0000 (21:25 -0500)]
refactor: backport syntux mod

4 years agodeps: bump to rustc v647
Caleb Cartwright [Thu, 26 Mar 2020 22:20:24 +0000 (17:20 -0500)]
deps: bump to rustc v647

4 years agodeps: bump to rustc v644
Caleb Cartwright [Thu, 26 Mar 2020 20:26:58 +0000 (15:26 -0500)]
deps: bump to rustc v644

4 years agorustfmt 1.x bump rustc-ap to v642 (#4043)
Seiichi Uchida [Mon, 10 Feb 2020 04:42:10 +0000 (13:42 +0900)]
rustfmt 1.x bump rustc-ap to v642 (#4043)

4 years agochore: fix compile warnings
Caleb Cartwright [Sun, 9 Feb 2020 04:54:37 +0000 (22:54 -0600)]
chore: fix compile warnings

4 years agofix: backport parse bug fix
Caleb Cartwright [Sun, 9 Feb 2020 04:47:48 +0000 (22:47 -0600)]
fix: backport parse bug fix

Backport the fix for the parser bug where the messages from
fatal/non-recoverable parser errors were being silently eaten by
rustfmt.

4 years agodeps: update rustc-ap to v642.0.0
Caleb Cartwright [Sun, 9 Feb 2020 04:21:37 +0000 (22:21 -0600)]
deps: update rustc-ap to v642.0.0

4 years agoRelease v1.4.11
topecongiro [Mon, 2 Dec 2019 23:49:39 +0000 (08:49 +0900)]
Release v1.4.11

4 years agoDo not add block around async closure (#3946)
Seiichi Uchida [Mon, 2 Dec 2019 23:47:50 +0000 (08:47 +0900)]
Do not add block around async closure (#3946)

4 years agoRelease v1.4.10
topecongiro [Fri, 25 Oct 2019 06:21:44 +0000 (15:21 +0900)]
Release v1.4.10

4 years agoCargo update
topecongiro [Fri, 25 Oct 2019 06:17:33 +0000 (15:17 +0900)]
Cargo update

4 years agoReturn an error if `--check` or `--emit json` are used with stdin. (#3875)
Chris Emerson [Fri, 25 Oct 2019 06:05:24 +0000 (07:05 +0100)]
Return an error if `--check` or `--emit json` are used with stdin. (#3875)

4 years agofix handling of nested comments in patterns and ControlFlows (#3869)
Seiichi Uchida [Fri, 25 Oct 2019 06:04:33 +0000 (15:04 +0900)]
fix handling of nested comments in patterns and ControlFlows (#3869)

4 years agofix Unparsable code when formmating (#3883)
rChaser53 [Thu, 24 Oct 2019 13:16:56 +0000 (22:16 +0900)]
fix Unparsable code when formmating (#3883)

4 years agoTry to solve issue3456. (#3556)
Rui [Sat, 19 Oct 2019 09:19:47 +0000 (17:19 +0800)]
Try to solve issue3456. (#3556)

4 years agofix: handling of newline_style conflicts (#3850)
Caleb Cartwright [Sat, 19 Oct 2019 08:15:13 +0000 (03:15 -0500)]
fix: handling of newline_style conflicts (#3850)

4 years agohandle field attributes when aligning a struct's fields (#3513)
Stéphane Campinas [Sat, 19 Oct 2019 07:56:32 +0000 (09:56 +0200)]
handle field attributes when aligning a struct's fields (#3513)

4 years agofeat: use offline by default with cargo fmt (#3830)
Caleb Cartwright [Sat, 19 Oct 2019 07:35:33 +0000 (02:35 -0500)]
feat: use offline by default with cargo fmt (#3830)

4 years agobump rustc-ap crates (#3870)
Ralf Jung [Sat, 19 Oct 2019 06:19:23 +0000 (08:19 +0200)]
bump rustc-ap crates (#3870)

4 years agofix: comments between lhs and rhs
Caleb Cartwright [Fri, 18 Oct 2019 01:04:05 +0000 (20:04 -0500)]
fix: comments between lhs and rhs

4 years agofix: nested comments in control flow condition pat
Caleb Cartwright [Fri, 18 Oct 2019 00:58:08 +0000 (19:58 -0500)]
fix: nested comments in control flow condition pat

4 years agodo not indent impl generics (#3856)
Stéphane Campinas [Fri, 11 Oct 2019 09:19:44 +0000 (11:19 +0200)]
do not indent impl generics (#3856)

4 years agofix: handle lhs unary in range expression (#3855)
Caleb Cartwright [Fri, 11 Oct 2019 09:15:04 +0000 (04:15 -0500)]
fix: handle lhs unary in range expression (#3855)

4 years agofix to swallow attribute on brace expression (#3848)
rChaser53 [Thu, 10 Oct 2019 01:35:34 +0000 (10:35 +0900)]
fix to swallow attribute on brace expression (#3848)

4 years agofix panic on closure with empty block expr (#3846)
Caleb Cartwright [Tue, 8 Oct 2019 02:00:31 +0000 (21:00 -0500)]
fix panic on closure with empty block expr (#3846)

4 years agofix: handle block comments with trailing line comments (#3842)
Caleb Cartwright [Tue, 8 Oct 2019 01:12:21 +0000 (20:12 -0500)]
fix: handle block comments with trailing line comments (#3842)

4 years agoimprove detection of URL inside a string that is being rewritten. (#3809)
Stéphane Campinas [Mon, 7 Oct 2019 07:43:50 +0000 (09:43 +0200)]
improve detection of URL inside a string that is being rewritten. (#3809)

4 years agohandle hard tabs when formatting trailing comments (#3836)
Stéphane Campinas [Mon, 7 Oct 2019 07:40:27 +0000 (09:40 +0200)]
handle hard tabs when formatting trailing comments (#3836)

4 years agoRelease v1.4.9
topecongiro [Mon, 7 Oct 2019 01:35:59 +0000 (10:35 +0900)]
Release v1.4.9

4 years agoUpdate CHANGELOG.md
topecongiro [Mon, 7 Oct 2019 01:35:11 +0000 (10:35 +0900)]
Update CHANGELOG.md

4 years agoCargo update
topecongiro [Mon, 7 Oct 2019 01:31:00 +0000 (10:31 +0900)]
Cargo update

4 years agodon't fail on recoverable parser errors in ignored files (#3782)
Caleb Cartwright [Mon, 7 Oct 2019 01:24:08 +0000 (20:24 -0500)]
don't fail on recoverable parser errors in ignored files (#3782)

4 years agoMerge pull request #3838 from calebcartwright/static-raw-ident-prefix
Stéphane Campinas [Sun, 6 Oct 2019 21:33:09 +0000 (23:33 +0200)]
Merge pull request #3838 from calebcartwright/static-raw-ident-prefix

add static support for raw prefix identifiers

4 years agofix: support raw prefix identifiers in statics
Caleb Cartwright [Sat, 5 Oct 2019 17:34:48 +0000 (12:34 -0500)]
fix: support raw prefix identifiers in statics

4 years agoUpdate rustc-ap-* crates to 606.0.0 (#3835)
Seiichi Uchida [Sat, 5 Oct 2019 14:40:24 +0000 (23:40 +0900)]
Update rustc-ap-* crates to 606.0.0 (#3835)

4 years agodo not force comments to be indented with a comment trailing a line of code (#3833)
Stéphane Campinas [Fri, 4 Oct 2019 15:22:01 +0000 (17:22 +0200)]
do not force comments to be indented with a comment trailing a line of code (#3833)

4 years agostop to strip 'impl' from impl trait type alias (#3816)
rChaser53 [Fri, 4 Oct 2019 02:25:17 +0000 (11:25 +0900)]
stop to strip 'impl' from impl trait type alias (#3816)

4 years agoInit Logger for unit tests (#3829)
Matthew Pomes [Fri, 4 Oct 2019 02:24:33 +0000 (21:24 -0500)]
Init Logger for unit tests (#3829)

Add `init_log()` function which attempts to init logger, and
ignores failure. The function is called at the beginning of
every test, and will fail if the logger is already initialized.
The logger must be initialized in every test, becuase cargo runs
the tests in parallel, with no garentees about the order and time
each starts.

4 years agofix rust code in comment with a line containing only a hash sign (#3818)
Stéphane Campinas [Wed, 2 Oct 2019 14:58:25 +0000 (16:58 +0200)]
fix rust code in comment with a line containing only a hash sign (#3818)

4 years agoadd --offline mode fallback to cargo fmt (#3813)
Caleb Cartwright [Wed, 2 Oct 2019 14:56:20 +0000 (09:56 -0500)]
add --offline mode fallback to cargo fmt (#3813)

4 years agoMerge pull request #3822 from mathstuf/target-as-symlink
Stéphane Campinas [Wed, 2 Oct 2019 07:31:11 +0000 (09:31 +0200)]
Merge pull request #3822 from mathstuf/target-as-symlink

gitignore: ignore target as a symlink

4 years agogitignore: ignore target as a symlink
Ben Boeckel [Tue, 1 Oct 2019 23:18:59 +0000 (19:18 -0400)]
gitignore: ignore target as a symlink

4 years agoMerge pull request #3810 from calebcartwright/issue-3808
Stéphane Campinas [Sat, 28 Sep 2019 10:32:41 +0000 (12:32 +0200)]
Merge pull request #3810 from calebcartwright/issue-3808

fix erroneous flattening of `{self}` in imports

4 years agotests: add more merge_import tests for #3808
Caleb Cartwright [Fri, 27 Sep 2019 01:11:11 +0000 (20:11 -0500)]
tests: add more merge_import tests for #3808

4 years agofix: merge_imports handling of ::{self}
Caleb Cartwright [Fri, 27 Sep 2019 01:02:41 +0000 (20:02 -0500)]
fix: merge_imports handling of ::{self}

4 years agoCargo fmt
topecongiro [Tue, 24 Sep 2019 00:26:50 +0000 (09:26 +0900)]
Cargo fmt

4 years agorefactor to use param naming where appropriate (#3803)
Caleb Cartwright [Tue, 24 Sep 2019 00:25:19 +0000 (19:25 -0500)]
refactor to use param naming where appropriate (#3803)

4 years agofix: handling of empty str for license template path (#3804)
Caleb Cartwright [Tue, 24 Sep 2019 00:24:05 +0000 (19:24 -0500)]
fix: handling of empty str for license template path (#3804)

4 years agofeat: support parameter attributes (#3793)
Caleb Cartwright [Fri, 20 Sep 2019 07:11:52 +0000 (02:11 -0500)]
feat: support parameter attributes (#3793)

4 years agofix the error with long string in raw string (#3800)
rChaser53 [Wed, 18 Sep 2019 13:39:27 +0000 (22:39 +0900)]
fix the error with long string in raw string (#3800)

4 years agoUse Cell instead of RefCell (#3798)
Shotaro Yamada [Wed, 18 Sep 2019 13:37:08 +0000 (22:37 +0900)]
Use Cell instead of RefCell (#3798)

4 years agofix internal error when using rustfmt::skip with newline on stmt (#3785)
rChaser53 [Sun, 15 Sep 2019 14:45:46 +0000 (23:45 +0900)]
fix internal error when using rustfmt::skip with newline on stmt (#3785)

4 years agofix: async expression indentation (#3789)
Caleb Cartwright [Wed, 11 Sep 2019 00:55:18 +0000 (19:55 -0500)]
fix: async expression indentation (#3789)

4 years agoRelease v1.4.8
topecongiro [Sun, 8 Sep 2019 14:34:46 +0000 (23:34 +0900)]
Release v1.4.8

4 years agoUpdate CHANGELOG.md
topecongiro [Sun, 8 Sep 2019 14:33:00 +0000 (23:33 +0900)]
Update CHANGELOG.md

4 years agoUpdate deps (#3788)
Seiichi Uchida [Sun, 8 Sep 2019 14:33:21 +0000 (23:33 +0900)]
Update deps (#3788)

4 years agoRelease v1.4.7
topecongiro [Fri, 6 Sep 2019 13:51:13 +0000 (22:51 +0900)]
Release v1.4.7

4 years agoUpdate CHANGELOG.md
topecongiro [Fri, 6 Sep 2019 13:48:39 +0000 (22:48 +0900)]
Update CHANGELOG.md

4 years agoUpdate rustc-ap-* crates to 581.0.0 (#3783)
Seiichi Uchida [Fri, 6 Sep 2019 13:41:03 +0000 (22:41 +0900)]
Update rustc-ap-* crates to 581.0.0 (#3783)

4 years agofix 'left behind trailing whitespace' (#3761)
rChaser53 [Thu, 5 Sep 2019 10:38:00 +0000 (19:38 +0900)]
fix 'left behind trailing whitespace' (#3761)

4 years agoFix handling of match arm's rewrite (#3775)
Seiichi Uchida [Thu, 5 Sep 2019 02:15:46 +0000 (11:15 +0900)]
Fix handling of match arm's rewrite (#3775)

4 years agoAdd --config command line option (#3767)
CreepySkeleton [Thu, 5 Sep 2019 02:15:19 +0000 (05:15 +0300)]
Add --config command line option (#3767)

4 years agoAnother fix for `merge_imports` (#3769)
Valentine Valyaeff [Wed, 4 Sep 2019 14:02:10 +0000 (17:02 +0300)]
Another fix for `merge_imports` (#3769)

4 years agodo not remove discriminant value if exists (#3771) (#3772)
Andrey [Wed, 4 Sep 2019 14:01:04 +0000 (17:01 +0300)]
do not remove discriminant value if exists (#3771) (#3772)

4 years agofix TrailingWhitespace when using line breaks in macros arguments (#3768)
rChaser53 [Wed, 4 Sep 2019 14:00:26 +0000 (23:00 +0900)]
fix TrailingWhitespace when using line breaks in macros arguments (#3768)

4 years agofix formatting mods inside cfg_if macro (#3763)
Caleb Cartwright [Mon, 2 Sep 2019 09:36:51 +0000 (04:36 -0500)]
fix formatting mods inside cfg_if macro (#3763)

4 years agoRelease v1.4.6
topecongiro [Wed, 28 Aug 2019 11:59:32 +0000 (20:59 +0900)]
Release v1.4.6

4 years agoUpdate CHANGELOG.md
topecongiro [Wed, 28 Aug 2019 11:58:43 +0000 (20:58 +0900)]
Update CHANGELOG.md

4 years agoForbid adding or removing a block from match arms inside macro calls (#3756)
Seiichi Uchida [Wed, 28 Aug 2019 11:50:41 +0000 (20:50 +0900)]
Forbid adding or removing a block from match arms inside macro calls (#3756)

4 years agofix the bug removing attrs (#3760)
rChaser53 [Wed, 28 Aug 2019 11:50:02 +0000 (20:50 +0900)]
fix the bug  removing attrs (#3760)

4 years agoMerge imports fix (#3753)
Valentine Valyaeff [Tue, 27 Aug 2019 02:23:55 +0000 (05:23 +0300)]
Merge imports fix (#3753)

4 years agofeat: add support for --message-format option (#3752)
Caleb Cartwright [Tue, 27 Aug 2019 00:27:32 +0000 (19:27 -0500)]
feat: add support for --message-format option (#3752)

4 years agoMark toml file as non-executable. (#3754)
Hristo Venev [Mon, 26 Aug 2019 00:18:04 +0000 (01:18 +0100)]
Mark toml file as non-executable. (#3754)

4 years agoFix line numbers in checkstyle output (#3694)
Caleb Cartwright [Mon, 19 Aug 2019 02:11:35 +0000 (21:11 -0500)]
Fix line numbers in checkstyle output (#3694)

4 years agoadd new flag to list names of misformatted files (#3747)
Caleb Cartwright [Mon, 19 Aug 2019 02:04:40 +0000 (21:04 -0500)]
add new flag to list names of misformatted files (#3747)

4 years agoTake the inner macro_use attr into acocunt while reordering (#3749)
Seiichi Uchida [Mon, 19 Aug 2019 01:56:32 +0000 (10:56 +0900)]
Take the inner macro_use attr into acocunt while reordering (#3749)

4 years agoUse correct indent when formatting complex fn type (#3731)
Seiichi Uchida [Fri, 16 Aug 2019 02:15:28 +0000 (11:15 +0900)]
Use correct indent when formatting complex fn type (#3731)

4 years agoadd json emit mode (#3735)
Caleb Cartwright [Fri, 16 Aug 2019 02:14:53 +0000 (21:14 -0500)]
add json emit mode (#3735)

4 years agotests: fix failing default config unit test (#3743)
Caleb Cartwright [Tue, 13 Aug 2019 23:02:30 +0000 (18:02 -0500)]
tests: fix failing default config unit test (#3743)

4 years agoRelease v1.4.5
topecongiro [Tue, 13 Aug 2019 14:26:54 +0000 (23:26 +0900)]
Release v1.4.5

4 years agoUpdate CHANGELOG
topecongiro [Tue, 13 Aug 2019 14:23:51 +0000 (23:23 +0900)]
Update CHANGELOG

4 years agoUse the correct BytePos for the opening brace position (#3742)
Seiichi Uchida [Tue, 13 Aug 2019 14:21:55 +0000 (23:21 +0900)]
Use the correct BytePos for the opening brace position (#3742)

4 years agofix: remove trailing space with empty dyn macro arg (#3737)
Caleb Cartwright [Sun, 11 Aug 2019 03:49:14 +0000 (22:49 -0500)]
fix: remove trailing space with empty dyn macro arg (#3737)

4 years agoRecommend running rustfmt last (#3733)
Florian Gilcher [Fri, 9 Aug 2019 08:42:50 +0000 (10:42 +0200)]
Recommend running rustfmt last (#3733)

As rustfmt checks fail, they might hide errors of more importance.
Running it last makes sure that the serious bugs have been found and is less frustrating.

4 years agoUpdate CHANGELOG.md
Seiichi Uchida [Tue, 6 Aug 2019 02:24:53 +0000 (11:24 +0900)]
Update CHANGELOG.md

4 years agoRelease 1.4.4
topecongiro [Tue, 6 Aug 2019 02:14:12 +0000 (11:14 +0900)]
Release 1.4.4

4 years agoUpdate CHANGELOG.md
topecongiro [Tue, 6 Aug 2019 02:14:00 +0000 (11:14 +0900)]
Update CHANGELOG.md

4 years agoFix broken tuple pattern (#3729)
Seiichi Uchida [Tue, 6 Aug 2019 02:09:45 +0000 (11:09 +0900)]
Fix broken tuple pattern (#3729)

4 years agosorted configuration docs (#3723)
Cliff Dyer [Tue, 6 Aug 2019 02:07:12 +0000 (22:07 -0400)]
sorted configuration docs (#3723)

4 years agofix: issue with --all when workspace member also exists in dep tree (#3726)
Caleb Cartwright [Mon, 5 Aug 2019 15:33:59 +0000 (10:33 -0500)]
fix: issue with --all when workspace member also exists in dep tree (#3726)

4 years agoRelease 1.4.3
topecongiro [Fri, 2 Aug 2019 15:01:59 +0000 (00:01 +0900)]
Release 1.4.3