Commit Graph

346 Commits

Author SHA1 Message Date
Ed Page
da7f67810f
feat(cargo): Style --help like cargo nightly (#5908)
* chore: Update clap
* refactor(cargo): Update style of derive
* feat(cargo): Style help like cargo nightly
2023-09-11 22:12:58 -04:00
Kevin Ji
16db2a4be2 Use OR operator in Cargo.toml license field
The use of `/` is deprecated, per the Cargo reference:
https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields
2023-08-18 09:31:27 -04:00
Yacin Tmimi
177ef66947 Fix building rustfmt with --features generic-simd
Bumping bytecount from `0.6.2` -> `0.6.3` allows rustfmt to properly
build when using the `generic-simd` feature.
2023-08-13 13:49:06 -05:00
Charles Lew
9f58224123 Update Unicode data to 15.0 2023-08-13 13:01:38 -05:00
Deadbeef
326af2bd21 Switch to tracing for logging 2023-07-03 11:52:38 -05:00
Caleb Cartwright
dca1cf90ad chore: prep v1.6.0 release 2023-07-01 02:40:21 -05:00
Caleb Cartwright
3f7c366fc0 chore: release v1.5.3 2023-06-19 22:54:36 -05:00
KaDiWa
66b9951dcd update some dependencies 2023-06-19 11:20:51 -05:00
Deadbeef
a463f231f5 remove derive_new dependency 2023-06-19 09:46:37 -05:00
Deadbeef
7d48be355a bump deps to new versions that use syn 2.0 2023-06-19 09:46:37 -05:00
Eric Huss
e903fcdaae Remove rustc-workspace-hack 2023-06-11 19:34:01 -05:00
Caleb Cartwright
1d8491b120 chore: prep v1.5.2 release 2023-01-24 14:04:12 -06:00
Tom Milligan
2ae63f0018 config_type: add unstable_variant attribute 2022-06-30 22:25:39 -05:00
Caleb Cartwright
c4416f20dc chore: prep v1.5.1 release 2022-06-22 21:55:51 -05:00
Yacin Tmimi
3de1a095e0 Set package.metadata.rust-analyzer.rustc_private=true in Cargo.toml
By setting this value in the Cargo.toml rust-analyzer understands that
rustfmt uses compiler-internals using `extern crate`.

This is a universal step that all developers will need to take in order to
get better type hints and code completion suggestions for
compiler-internals in their editor.

**Note**: users will also need to install the `rustc-dev` component via
`rustup` and add the following to their rust-analyzer configuration:

```json
{
    "rust-analyzer.rustcSource": "discover",
    "rust-analyzer.updates.channel": "nightly"
}
```
2022-06-17 19:34:24 -05:00
Caleb Cartwright
7b73b60fac chore: prep v1.5.0 release 2022-06-12 21:41:15 -05:00
Expyron
91995b6142 Replace structopt dependency by clap 2022-04-07 17:24:03 -05:00
Light Ning
7d6ca7c35c
Bump deps (#5237)
* bump deps

* sort the deps
2022-04-02 10:45:38 -05:00
pierwill
0be893166b Update itertools
Update to 0.10.1
2022-03-04 11:54:28 -06:00
Caleb Cartwright
2b41b6d022 Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree 2021-10-20 00:11:59 -05:00
Mark Rousskov
9060bc5583 Migrate to 2021 2021-09-20 22:21:42 -04:00
Jade
e9038b8842 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.
2021-07-29 14:56:05 -07:00
Joshua Nelson
d67f1a48ef 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>
```
2021-05-14 21:54:43 -05:00
Yuki Okushi
ddb224a173
Upgrade annotate-snippets to 0.8 (#4762) 2021-04-22 08:33:36 -05:00
Joshua Nelson
61ee1089f0 Use rustc_private instead of crates.io dependencies
- Update rust-toolchain to also install `rustc-dev` component
2021-04-21 21:17:36 -05:00
Caleb Cartwright
0bd2b1927c chore: bump version and changelog 2021-04-03 00:30:12 -05:00
Caleb Cartwright
ef57c5bf67 chore: bump rustc-ap crates to v712 2021-04-02 23:21:06 -05:00
Caleb Cartwright
748e595047 deps: remove unused rustc_attr crate AP crate 2021-04-02 23:21:06 -05:00
Caleb Cartwright
884cdb8ad1 deps: bump rustc-ap crates to v711 2021-04-02 23:21:06 -05:00
Caleb Cartwright
f2bc4b5ace deps: bump rustc-ap crates to v710 2021-04-02 23:21:06 -05:00
Caleb Cartwright
a1dc57ace1 chore: apply AST HasAttrs->AstLike changes 2021-04-02 23:21:06 -05:00
Caleb Cartwright
83cbdf64be deps: bump rustc-ap crates to v709 2021-04-02 23:21:06 -05:00
Caleb Cartwright
cbd83b8083 chore: add span creation util function 2021-04-02 23:21:06 -05:00
Caleb Cartwright
c5c348cef7 deps: bump rustc-ap crates to v708 2021-04-02 23:21:06 -05:00
Thomas Eizinger
6b64e30d57 Bump rustc-ap-* crates to version 706 2021-02-13 11:29:47 -06:00
Caleb Cartwright
7de6968ee2 meta: bump to v1.4.36 2021-02-07 12:46:43 -06:00
Caleb Cartwright
67faa61e9c deps: bump rustc-ap crates to v705 2021-02-07 12:46:43 -06:00
Caleb Cartwright
55d2620216 meta: bump version to v1.4.35 2021-02-03 21:05:15 -06:00
Caleb Cartwright
7db2ba86b0 deps: bump rustc-ap to v702 2021-02-03 21:05:15 -06:00
Caleb Cartwright
58ac85b58e deps: bump rustc-ap crates to v701.0.0 2021-02-03 21:05:15 -06:00
Caleb Cartwright
ea268b9f55 meta: bump to v1.4.34 2021-01-28 22:01:50 -06:00
Caleb Cartwright
f0fe48f2bd meta: bump to v1.4.33 2021-01-27 20:58:42 -06:00
Caleb Cartwright
216a643005 meta: bump version v1.4.32 2021-01-16 11:17:23 -06:00
Caleb Cartwright
4f9c794ce1 meta: bump to v1.4.31 2021-01-09 12:45:43 -06:00
Mara Bos
a6b0c18dc9 Bump rustc-ap to v697. 2021-01-09 12:11:52 -06:00
Caleb Cartwright
acd94866fd meta: bump to v1.4.30 2020-12-20 12:05:05 -06:00
Caleb Cartwright
70ce18255f meta: bump to v1.4.29 2020-12-04 22:27:48 -06:00
Caleb Cartwright
29f33eb7d6 meta: bump to v1.4.28 2020-11-29 13:26:58 -06:00
Caleb Cartwright
baee271013 deps: bump rustc-ap crates to v691 2020-11-28 17:41:21 -06:00
Caleb Cartwright
581da523db deps: bump rustc-ap to v687 2020-11-28 17:41:21 -06:00