]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoKeep a parent LocalDefId in SpanData.
Camille GILLOT [Sun, 18 Apr 2021 12:27:04 +0000 (14:27 +0200)]
Keep a parent LocalDefId in SpanData.

2 years agoIgnore automatically derived impls of `Clone` and `Debug` in dead code analysis
Fabian Wolff [Fri, 21 May 2021 17:35:49 +0000 (19:35 +0200)]
Ignore automatically derived impls of `Clone` and `Debug` in dead code analysis

2 years agoRevert "Allow formatting `Anonymous{Struct, Union}` declarations"
Felix S. Klock II [Wed, 8 Sep 2021 17:40:32 +0000 (13:40 -0400)]
Revert "Allow formatting `Anonymous{Struct, Union}` declarations"

This reverts commit 64acb7d92135ae722dfce89f0ca9d7cf6576de66.

2 years agorustfmt doc code blocks with multiple comma-separated attributes
Nipunn Koorapati [Sun, 8 Aug 2021 01:00:51 +0000 (18:00 -0700)]
rustfmt doc code blocks with multiple comma-separated attributes

Added test covering this. Chose to treat the code block
as rust if and only if all of the comma-separated attributes
are rust-valid. Chose to allow/preserve whitespace around commas

Fixes #3158

2 years agofix: handle param doc comments for macro scenarios
Caleb Cartwright [Wed, 8 Sep 2021 23:59:49 +0000 (18:59 -0500)]
fix: handle param doc comments for macro scenarios

2 years agofix: resolve idempotency issue in extern body elements
Caleb Cartwright [Wed, 8 Sep 2021 00:49:56 +0000 (19:49 -0500)]
fix: resolve idempotency issue in extern body elements

2 years agotests: add files for issue 4579
Caleb Cartwright [Mon, 6 Sep 2021 22:30:16 +0000 (17:30 -0500)]
tests: add files for issue 4579

2 years agotry to write the parameter on a new line in case the attribute/parameter together...
Stéphane Campinas [Tue, 6 Oct 2020 01:44:48 +0000 (03:44 +0200)]
try to write the parameter on a new line in case the attribute/parameter together are over max_width

2 years agofix: use correct spans for params with attrs
Caleb Cartwright [Mon, 6 Sep 2021 20:35:25 +0000 (15:35 -0500)]
fix: use correct spans for params with attrs

2 years agofix: newline width calc in combine w/ comments (#4123)
Caleb Cartwright [Thu, 16 Apr 2020 12:52:47 +0000 (07:52 -0500)]
fix: newline width calc in combine w/ comments (#4123)

2 years agoAuto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank
bors [Mon, 6 Sep 2021 00:14:41 +0000 (00:14 +0000)]
Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank

Fix #88256 remove duplicated diagnostics

Fix #88256

2 years agoFix #88256, remove duplicated diagnostic
yukang [Sat, 4 Sep 2021 11:26:25 +0000 (19:26 +0800)]
Fix #88256, remove duplicated diagnostic

2 years agoDetect bare blocks with type ascription that were meant to be a `struct` literal
Esteban Kuber [Thu, 2 Sep 2021 18:34:03 +0000 (18:34 +0000)]
Detect bare blocks with type ascription that were meant to be a `struct` literal

Address part of #34255.

Potential improvement: silence the other knock down errors in
`issue-34255-1.rs`.

2 years agotest: add test for #4322
Eric [Mon, 30 Aug 2021 09:17:43 +0000 (21:17 +1200)]
test: add test for #4322

2 years agotest: add test for #4954
Eric [Mon, 30 Aug 2021 09:13:42 +0000 (21:13 +1200)]
test: add test for #4954

2 years agotest: add test for #4257
Eric [Mon, 30 Aug 2021 09:09:21 +0000 (21:09 +1200)]
test: add test for #4257

2 years agotest: add missing source for #4943
Eric [Mon, 30 Aug 2021 08:59:45 +0000 (20:59 +1200)]
test: add missing source for #4943

2 years agoAdd <title> to docs
Akiomi Kamakura [Wed, 1 Sep 2021 11:15:16 +0000 (20:15 +0900)]
Add <title> to docs

2 years agoImplement `One` option for imports_granularity (#4669)
Yusuke Tanaka [Sat, 30 Jan 2021 05:50:28 +0000 (14:50 +0900)]
Implement `One` option for imports_granularity (#4669)

This option merges all imports into a single `use` statement as long as
they have the same visibility.

2 years agoTemporary fix rustfmt for let-else
Cameron Steffen [Sun, 25 Jul 2021 23:28:08 +0000 (18:28 -0500)]
Temporary fix rustfmt for let-else

2 years agoFix rustfmt test
Deadbeef [Fri, 27 Aug 2021 11:53:03 +0000 (11:53 +0000)]
Fix rustfmt test

2 years agoIntroduce `~const`
Deadbeef [Wed, 25 Aug 2021 11:53:16 +0000 (11:53 +0000)]
Introduce `~const`

 - [x] Removed `?const` and change uses of `?const`
 - [x] Added `~const` to the AST. It is gated behind const_trait_impl.
 - [x] Validate `~const` in ast_validation.
 - [ ] Add enum `BoundConstness` to the HIR. (With variants `NotConst` and
 `ConstIfConst` allowing future extensions)
 - [ ] Adjust trait selection and pre-existing code to use `BoundConstness`.
 - [ ] Optional steps (*for this PR, obviously*)
      - [ ] Fix #88155
      - [ ] Do something with constness bounds in chalk

2 years agofix: remove wrong reformatting of qualified paths in struct patterns
Ashvin Arsakularatne [Wed, 25 Aug 2021 18:51:29 +0000 (00:21 +0530)]
fix: remove wrong reformatting of qualified paths in struct patterns

2 years agoPreserve visibility on trait items inside trait and impl
David Tolnay [Fri, 20 Aug 2021 20:41:27 +0000 (13:41 -0700)]
Preserve visibility on trait items inside trait and impl

2 years agoAdd test for visibility on a trait item (currently wrong)
David Tolnay [Fri, 20 Aug 2021 20:33:38 +0000 (13:33 -0700)]
Add test for visibility on a trait item (currently wrong)

2 years agoFix typos “an”→“a” and a few different ones that appeared in the same search
Frank Steffahn [Sun, 22 Aug 2021 16:15:49 +0000 (18:15 +0200)]
Fix typos “an”→“a” and a few different ones that appeared in the same search

2 years agoFix more “a”/“an” typos
Frank Steffahn [Sun, 22 Aug 2021 14:20:58 +0000 (16:20 +0200)]
Fix more “a”/“an” typos

2 years agoFix for version config option anchor
David Bar-On [Wed, 3 Mar 2021 09:25:59 +0000 (11:25 +0200)]
Fix for version config option anchor

2 years agoFix redirect issue
gunadhya [Thu, 21 Jan 2021 19:31:20 +0000 (01:01 +0530)]
Fix redirect issue

Signed-off-by: gunadhya <6939749+gunadhya@users.noreply.github.com>
2 years agoAdded Updated default version to Rustfmt docs config
gunadhya [Fri, 15 Jan 2021 20:04:11 +0000 (01:34 +0530)]
Added Updated default version to Rustfmt docs config

2 years agoExluding v0.8.1 and v0.7 from the config dropdown
jdollar [Sat, 3 Oct 2020 23:05:31 +0000 (19:05 -0400)]
Exluding v0.8.1 and v0.7 from the config dropdown

Older tags of the repo don't have the configuration.md file
that the docs/index.html file uses to display configuration options.
Removing them from the list since they don't apply to the use case of the
documentation page.

2 years agoWarn when rate limit is on docs page
Ayaz Hafiz [Thu, 16 Jul 2020 01:27:19 +0000 (18:27 -0700)]
Warn when rate limit is on docs page

Demo: https://5f0fad2f06c62143ac519413--festive-golick-afb5e0.netlify.app

2 years agofixup! Ensure that doc url hash IDs are scrolled to on page load
Ayaz Hafiz [Thu, 16 Jul 2020 00:52:52 +0000 (17:52 -0700)]
fixup! Ensure that doc url hash IDs are scrolled to on page load

2 years agoEnsure that doc url hash IDs are scrolled to on page load
Ayaz Hafiz [Thu, 16 Jul 2020 00:50:43 +0000 (17:50 -0700)]
Ensure that doc url hash IDs are scrolled to on page load

I broke this a few weeks ago so I'll fix it

Demo: https://5f0fa445faca4aff5f580029--naughty-borg-09b903.netlify.app/?version=master&search=#brace_style

2 years agodocs: Preserve updated query param content and add config option links
Ayaz Hafiz [Fri, 3 Jul 2020 04:33:46 +0000 (21:33 -0700)]
docs: Preserve updated query param content and add config option links

- Preserve search and version parameter updates in the url
- Render headings with an anchor to itself for easier linking to config
  options, variants, etc.

Demo: https://5efeb81ca3f0d.htmlsave.net/

2 years agoAdds query param for version no (#4270)
asrar [Tue, 23 Jun 2020 23:42:40 +0000 (05:12 +0530)]
Adds query param for version no (#4270)

* Adds query param for version no

This adds support for using a query parameter for selecting the version no

* Adds error handling to configuration request

Catch request exception in case fetching the configuration from the url fails, this can happen either if non existent version number is passed in or because of server issues.

* Makes version selection better

Covers a few common cases in which the version number can be specified.

2 years agoAdds direct linking using header ids (#4272)
asrar [Tue, 23 Jun 2020 02:30:45 +0000 (08:00 +0530)]
Adds direct linking using header ids (#4272)

Separates out search and direct linking, uses header ids for direct linking and `?search=term` for filtering configurations.
Once the app mounts the page is scrolled to the current header set in the url hash.

2 years agoAdd github-style highlighting for code blocks (#4224)
hafiz [Mon, 1 Jun 2020 14:29:16 +0000 (09:29 -0500)]
Add github-style highlighting for code blocks (#4224)

2 years agofixup! Show configs from different versions on github pages
Ayaz Hafiz [Mon, 1 Jun 2020 01:16:53 +0000 (18:16 -0700)]
fixup! Show configs from different versions on github pages

2 years agoShow configs from different versions on github pages
Ayaz Hafiz [Mon, 1 Jun 2020 00:12:09 +0000 (17:12 -0700)]
Show configs from different versions on github pages

See https://gushiermainecoon.htmlpasta.com/ for a demo of this change.

Part of #4178

2 years agoFix stable toggle on gh pages configuration site
Ayaz Hafiz [Sun, 31 May 2020 16:23:39 +0000 (09:23 -0700)]
Fix stable toggle on gh pages configuration site

A demonstration of the fix is included in the PR associated with this
commit.

2 years agoAuto merge of #87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum
bors [Tue, 17 Aug 2021 04:18:55 +0000 (04:18 +0000)]
Auto merge of #87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum

Document private items for rustfmt

This is possible now that https://github.com/rust-lang/rust/pull/73936 has been merged.

2 years agoDocument private items for rustfmt
Joshua Nelson [Wed, 14 Jul 2021 01:09:03 +0000 (21:09 -0400)]
Document private items for rustfmt

This is possible now that rustdoc allows passing
`--document-private-items` more than once.

2 years agoIntroduce hir::ExprKind::Let - Take 2
Caio [Sun, 8 Aug 2021 14:49:13 +0000 (11:49 -0300)]
Introduce hir::ExprKind::Let - Take 2

2 years agoEnable triagebot assignment in rustfmt
Nipunn Koorapati [Sun, 8 Aug 2021 01:08:38 +0000 (18:08 -0700)]
Enable triagebot assignment in rustfmt

2 years agofix: don't drop drop generic args on assoc ty constraints
Caleb Cartwright [Sun, 8 Aug 2021 01:24:14 +0000 (20:24 -0500)]
fix: don't drop drop generic args on assoc ty constraints

2 years agofix: handle GAT types in impls with self bounds
Caleb Cartwright [Sat, 7 Aug 2021 02:26:27 +0000 (21:26 -0500)]
fix: handle GAT types in impls with self bounds

2 years agoAuto merge of #87535 - lf-:authors, r=Mark-Simulacrum
bors [Mon, 2 Aug 2021 05:49:17 +0000 (05:49 +0000)]
Auto merge of #87535 - lf-:authors, r=Mark-Simulacrum

rfc3052 followup: Remove authors field from Cargo manifests

Since RFC 3052 soft deprecated the authors field, hiding it from
crates.io, docs.rs, and making Cargo not add it by default, and it is
not generally up to date/useful information for contributors, we may as well
remove it from crates in this repo.

2 years agoci: functionally delete appveyor
Caleb Cartwright [Fri, 30 Jul 2021 02:15:56 +0000 (21:15 -0500)]
ci: functionally delete appveyor

2 years agorfc3052: Remove authors field from Cargo manifests
Jade [Tue, 27 Jul 2021 23:38:13 +0000 (16:38 -0700)]
rfc3052: Remove authors field from Cargo manifests

Since RFC 3052 soft deprecated the authors field anyway, hiding it from
crates.io, docs.rs, and making Cargo not add it by default, and it is
not generally up to date/useful information, we should remove it from
crates in this repo.

2 years agoBump deps
klensy [Thu, 3 Jun 2021 02:28:20 +0000 (05:28 +0300)]
Bump deps

* dirs-sys v0.3.4 -> v0.3.6 to drop a lot of deps
regex v1.3.1 -> v1.4.3 drops thread_local 0.3.6
bytecount v0.6.0 -> v0.6.2 replaces packed_simd with packed_simd_2
ignore v0.4.11 -> v0.4.17 drop crossbeam-channel v0.4.0

* itertools 8.0 -> 9.0
bump `ignore` version in Cargo.toml

* cargo_metadata 0.8 -> 0.12

* env_logger 0.6 -> 0.8

2 years agoUnyeet const param defaults
Ellen [Wed, 28 Apr 2021 19:44:40 +0000 (20:44 +0100)]
Unyeet const param defaults

2 years agofix: make --edition 2021 visible in --help
Outvi V [Thu, 22 Jul 2021 13:24:07 +0000 (21:24 +0800)]
fix: make --edition 2021 visible in --help

2 years agoci: remove unnecessary cargo-make install on windows jobs
Caleb Cartwright [Tue, 27 Jul 2021 02:17:15 +0000 (21:17 -0500)]
ci: remove unnecessary cargo-make install on windows jobs

2 years agoMerge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
Caleb Cartwright [Mon, 26 Jul 2021 03:57:19 +0000 (22:57 -0500)]
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt

2 years agochore: bump toolchain
Caleb Cartwright [Mon, 26 Jul 2021 03:27:33 +0000 (22:27 -0500)]
chore: bump toolchain

2 years agofix link in Contributing.md
Elliot Bobrow [Mon, 19 Jul 2021 21:50:05 +0000 (14:50 -0700)]
fix link in Contributing.md

2 years agochore: disable clippy::matches_like_macro lint
Caleb Cartwright [Sun, 18 Jul 2021 17:14:23 +0000 (12:14 -0500)]
chore: disable clippy::matches_like_macro lint

2 years agofix a bunch of clippy warnings
Matthias Krüger [Sun, 18 Jul 2021 08:44:39 +0000 (10:44 +0200)]
fix a bunch of clippy warnings

clippy::bind_instead_of_map
clippy::branches_sharing_code
clippy::collapsible_match
clippy::inconsistent_struct_constructor
clippy::int_plus_one
clippy::iter_count
clippy::iter_nth_zero
clippy::manual_range_contains
clippy::match_like_matches_macro
clippy::needless::collect
clippy::needless_question_mark
clippy::needless_return
clippy::op_ref
clippy::option_as_ref_deref
clippy::ptr_arg
clippy::redundant_clone
clippy::redundant_closure
clippy::redundant_static_lifetimes
clippy::search_is_some
clippy::#single_char_add_str
clippy::single_char_pattern
clippy::single_component_path_imports
clippy::single_match
clippy::skip_while_next
clippy::unnecessary_lazy_evaluations
clippy::unnecessary_unwrap
clippy::useless_conversion
clippy::useless_format

2 years agodocs: clarify match_arm_blocks config documentation
Caleb Cartwright [Mon, 5 Jul 2021 03:26:08 +0000 (22:26 -0500)]
docs: clarify match_arm_blocks config documentation

2 years agoChange line endings from CRLF to LF
Jethro Beekman [Fri, 25 Jun 2021 14:17:43 +0000 (16:17 +0200)]
Change line endings from CRLF to LF

2 years agofix: correct arm leading pipe check (#4880)
Caleb Cartwright [Thu, 24 Jun 2021 23:22:28 +0000 (18:22 -0500)]
fix: correct arm leading pipe check (#4880)

In the event a pattern starts with a leading pipe
the pattern span will contain, and begin with, the pipe.

This updates the process to see if a match arm contains
a leading pipe by leveraging this recent(ish) change to
the patterns in the AST, and avoids an indexing bug that
occurs when a pattern starts with a non-ascii char in the
old implementation.

2 years agoUpdating outdated links (#4869)
Michael Murphy [Wed, 16 Jun 2021 03:33:34 +0000 (04:33 +0100)]
Updating outdated links (#4869)

* Updating outdated links

Updating the links to the docs and source code for `ast.rs`. Seems like it was moved to a new crate at some point.

* Updating more outdated links

This time, the links to the `fmt-rfcs` repository, which is now owned by
`rust-dev-tools` (although GitHub was redirecting anyway).

* Update Contributing.md

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
2 years agoAdjusting help message (#4865)
Michael Murphy [Fri, 11 Jun 2021 01:39:28 +0000 (02:39 +0100)]
Adjusting help message (#4865)

On stable, running with `--help|-h` shows information about `file-lines`
which is a nightly-only option. This commit removes all mention of
`file-lines` from the help message on stable.

There is room for improvement here; perhaps a new struct called, e.g.,
`StableOptions` could be added to complement the existing
`GetOptsOptions` struct. `StableOptions` could have a field for each
field in `GetOptsOptions`, with each field's value being a `bool` that
specifies whether or not the option exists on stable. Or is this adding
too much complexity?

2 years agoImprove pasta copyability of `merge_imports` deprecation message
Casey Rodarmor [Mon, 10 May 2021 03:01:24 +0000 (20:01 -0700)]
Improve pasta copyability of `merge_imports` deprecation message

Add double quotes around `Crate` so that it can be copied directly into a `Cargo.toml` file

2 years agoAllow `--edition 2021` to be passed to rustfmt
Ruby Lazuli [Sat, 22 May 2021 13:22:42 +0000 (08:22 -0500)]
Allow `--edition 2021` to be passed to rustfmt

This was added to Configurations.md in #4618, but the option wasn't
actually made available. This should let people who are using Rust 2021
on nightly rustc run `cargo fmt` again.

2 years agoMerge pull request #4920 from calebcartwright/subtree-sync
Caleb Cartwright [Mon, 26 Jul 2021 00:50:31 +0000 (19:50 -0500)]
Merge pull request #4920 from calebcartwright/subtree-sync

subtree sync

3 years agoUse LocalExpnId where possible.
Camille GILLOT [Fri, 25 Jun 2021 18:43:04 +0000 (20:43 +0200)]
Use LocalExpnId where possible.

3 years agoRework SESSION_GLOBALS API to prevent overwriting it
Guillaume Gomez [Wed, 5 May 2021 19:31:25 +0000 (21:31 +0200)]
Rework SESSION_GLOBALS API to prevent overwriting it

3 years agoDocument rustfmt on nightly-rustc
Joshua Nelson [Wed, 30 Jun 2021 04:13:34 +0000 (00:13 -0400)]
Document rustfmt on nightly-rustc

The recursion_limit attribute avoids the following error:

```
error[E0275]: overflow evaluating the requirement `std::ptr::Unique<rustc_ast::Pat>: std::marker::Send`
  |
  = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`rustfmt_nightly`)
```

3 years agoRollup merge of #86424 - calebcartwright:rustfmt-mod-resolution, r=Mark-Simulacrum
Yuki Okushi [Mon, 21 Jun 2021 15:00:41 +0000 (00:00 +0900)]
Rollup merge of #86424 - calebcartwright:rustfmt-mod-resolution, r=Mark-Simulacrum

rustfmt: load nested out-of-line mods correctly

This should address https://github.com/rust-lang/rustfmt/issues/4874

r? `@Mark-Simulacrum`

Decided to make the change directly in tree here for expediency/to minimize any potential backporting issues, and because there's some subtree sync items I need to get resolved before pulling from r-l/rustfmt

3 years agoRollup merge of #86274 - alexander-melentyev:spaces, r=bjorn3
Yuki Okushi [Mon, 21 Jun 2021 15:00:38 +0000 (00:00 +0900)]
Rollup merge of #86274 - alexander-melentyev:spaces, r=bjorn3

Spaces

3 years agoDelete spaces
Alexander Melentyev [Mon, 21 Jun 2021 09:11:37 +0000 (12:11 +0300)]
Delete spaces

3 years agofix(rustfmt): load nested out-of-line mods correctly
Caleb Cartwright [Fri, 18 Jun 2021 03:35:19 +0000 (22:35 -0500)]
fix(rustfmt): load nested out-of-line mods correctly

3 years agoUse `AttrVec` for `Arm`, `FieldDef`, and `Variant`
Yuki Okushi [Wed, 16 Jun 2021 22:11:13 +0000 (07:11 +0900)]
Use `AttrVec` for `Arm`, `FieldDef`, and `Variant`

3 years agoAdd support for using qualified paths with structs in expression and pattern
Ryan Levick [Thu, 10 Dec 2020 12:20:07 +0000 (13:20 +0100)]
Add support for using qualified paths with structs in expression and pattern
position.

3 years agoAllow formatting `Anonymous{Struct, Union}` declarations
jedel1043 [Mon, 17 May 2021 03:13:38 +0000 (22:13 -0500)]
Allow formatting `Anonymous{Struct, Union}` declarations

3 years agoUpdate log to 0.4.14
Joshua Nelson [Sun, 2 May 2021 20:56:25 +0000 (16:56 -0400)]
Update log to 0.4.14

This avoids the following warning:

```
warning: trailing semicolon in macro used in expression position
   --> /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.11/src/macros.rs:152:45
    |
147 | / macro_rules! debug {
148 | |     (target: $target:expr, $($arg:tt)+) => (
149 | |         log!(target: $target, $crate::Level::Debug, $($arg)+);
150 | |     );
151 | |     ($($arg:tt)+) => (
152 | |         log!($crate::Level::Debug, $($arg)+);
    | |                                             ^
153 | |     )
154 | | }
    | |_- in this expansion of `debug!`
    |
   ::: src/tools/rustfmt/src/modules/visitor.rs:36:23
    |
36  |               Err(e) => debug!("{}", e),
    |                         --------------- in this macro invocation
    |
    = note: requested on the command line with `-W semicolon-in-expressions-from-macros`
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
```

3 years agochore: update gitattributes for files with windows style line endings
Caleb Cartwright [Fri, 14 May 2021 23:18:12 +0000 (18:18 -0500)]
chore: update gitattributes for files with windows style line endings

3 years agoBump nightly version
Andy Wang [Wed, 12 May 2021 22:19:00 +0000 (23:19 +0100)]
Bump nightly version

3 years agoRename `RealFileName::Named` to `LocalPath`
Andy Wang [Tue, 4 May 2021 12:37:28 +0000 (13:37 +0100)]
Rename `RealFileName::Named` to `LocalPath`

3 years agoOnly deal with LocalPath in conversion
Andy Wang [Tue, 4 May 2021 12:34:19 +0000 (13:34 +0100)]
Only deal with LocalPath in conversion

3 years agoRename span_to_string to span_to_diagnostic_string
Andy Wang [Tue, 4 May 2021 11:06:02 +0000 (12:06 +0100)]
Rename span_to_string to span_to_diagnostic_string

3 years agotests: remove snippets with inner attrs on non-block expressions
Caleb Cartwright [Tue, 4 May 2021 23:06:53 +0000 (18:06 -0500)]
tests: remove snippets with inner attrs on non-block expressions

3 years agofix: backport changes for latest rustc api comaptibility
Caleb Cartwright [Sun, 2 May 2021 15:03:25 +0000 (10:03 -0500)]
fix: backport changes for latest rustc api comaptibility

3 years agoUpgrade `annotate-snippets` to 0.8 (#4762)
Yuki Okushi [Thu, 22 Apr 2021 13:33:36 +0000 (22:33 +0900)]
Upgrade `annotate-snippets` to 0.8 (#4762)

3 years agoAdd the case in duplicate issue (#4806) to the idempotent tests
ChinYing-Li [Wed, 21 Apr 2021 06:08:57 +0000 (14:08 +0800)]
Add the case in duplicate issue (#4806) to the idempotent tests

3 years agoRecognize when a block comment has been ended inside a string literal (#4312)
ChinYing-Li [Mon, 12 Apr 2021 09:26:18 +0000 (17:26 +0800)]
Recognize when a block comment has been ended inside a string literal (#4312)

3 years agoAdd some basic tests for chain_width use
Joseph Birr-Pixton [Fri, 2 Apr 2021 10:06:35 +0000 (11:06 +0100)]
Add some basic tests for chain_width use

3 years agorefactor: remove panics on misconfigured widths
Caleb Cartwright [Sat, 18 Apr 2020 03:39:44 +0000 (22:39 -0500)]
refactor: remove panics on misconfigured widths

3 years agotests: augment heuristics tests
Caleb Cartwright [Sun, 23 Feb 2020 05:05:58 +0000 (23:05 -0600)]
tests: augment heuristics tests

3 years agorefactor: apply heuristic config changes in lib
Caleb Cartwright [Sun, 23 Feb 2020 04:07:50 +0000 (22:07 -0600)]
refactor: apply heuristic config changes in lib

3 years agofeat(config): expose all width heurstic options
Caleb Cartwright [Sun, 23 Feb 2020 04:05:07 +0000 (22:05 -0600)]
feat(config): expose all width heurstic options

3 years agodocs: update configuration info
Caleb Cartwright [Sun, 23 Feb 2020 04:01:48 +0000 (22:01 -0600)]
docs: update configuration info

3 years agoUse rustup in CI to automatically determine the toolchain version needed
Joshua Nelson [Wed, 17 Feb 2021 18:29:00 +0000 (13:29 -0500)]
Use rustup in CI to automatically determine the toolchain version needed

This also removes the (now unused) `RUSTC_RELEASE` and
`RUSTC_RELEASE_CHANNEL` variables.

3 years agoFix errors when `parallel_compiler` is enabled
Joshua Nelson [Wed, 17 Feb 2021 04:50:30 +0000 (23:50 -0500)]
Fix errors when `parallel_compiler` is enabled

3 years agoUse `rustc_private` instead of crates.io dependencies
Joshua Nelson [Wed, 17 Feb 2021 03:25:41 +0000 (22:25 -0500)]
Use `rustc_private` instead of crates.io dependencies

- Update rust-toolchain to also install `rustc-dev` component

3 years agoDon't show CRLF tests as modified in the working directory
Joshua Nelson [Wed, 17 Feb 2021 02:59:28 +0000 (21:59 -0500)]
Don't show CRLF tests as modified in the working directory

This was being overriden by `lf=eof` in `.gitattributes` in the root
directory. Override it again to avoid warnings like this:

```
$ git diff src/tools/rustfmt/tests/target/issue-3494/crlf.rs
warning: CRLF will be replaced by LF in src/tools/rustfmt/tests/target/issue-3494/crlf.rs.
The file will have its original line endings in your working directory
```

3 years agochore: bump version and changelog
Caleb Cartwright [Sat, 3 Apr 2021 04:41:27 +0000 (23:41 -0500)]
chore: bump version and changelog

3 years agochore: bump toolchain
Caleb Cartwright [Sat, 27 Mar 2021 17:57:58 +0000 (12:57 -0500)]
chore: bump toolchain