Commit Graph

334 Commits

Author SHA1 Message Date
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
Caleb Cartwright
580d826e9b meta: bump to v1.4.27 2020-11-16 15:48:20 -06:00
Caleb Cartwright
293d7d0111 meta: bump version to v1.4.26 2020-11-14 11:50:28 -06:00
Caleb Cartwright
0f29ff6da0 meta: release v1.4.25 2020-11-11 18:26:13 -06:00
Caleb Cartwright
eb894d5370 meta: release v1.4.24 2020-11-05 20:45:11 -06:00
Caleb Cartwright
ea97ec5a4e meta: bump rustfmt version to 1.4.23 2020-11-02 19:19:21 -06:00
Caleb Cartwright
e131797b62 deps: bump rustc-ap to v686 2020-11-02 18:31:51 -06:00
Caleb Cartwright
2866634baf deps: bump rustc-ap to v684 2020-10-24 11:13:00 -05:00
Caleb Cartwright
d95a2875f7 deps: bump rustc-ap to v683 2020-10-24 11:13:00 -05:00
Caleb Cartwright
97d0301011 Release v1.4.22 2020-10-04 16:58:34 -05:00
David Tolnay
8635a5ca44 deps: bump rustc-ap to v679 2020-09-23 00:45:18 -05:00
Caleb Cartwright
9ba373f822 deps: bump rustc-ap to v678 2020-09-23 00:45:18 -05:00
Caleb Cartwright
01f2eadccc bump rustfmt version to v1.4.21 2020-09-04 19:01:18 -05:00