Andy Wang
e4b5621b0e
Only deal with LocalPath in conversion
2021-05-12 22:12:43 -05:00
Andy Wang
8526acee21
Rename span_to_string to span_to_diagnostic_string
2021-05-12 22:12:43 -05:00
Caleb Cartwright
2a3635d5d1
tests: remove snippets with inner attrs on non-block expressions
2021-05-04 18:38:22 -05:00
Caleb Cartwright
f87414729f
fix: backport changes for latest rustc api comaptibility
2021-05-02 10:37:43 -05:00
Yuki Okushi
ddb224a173
Upgrade annotate-snippets
to 0.8 ( #4762 )
2021-04-22 08:33:36 -05:00
ChinYing-Li
84ff0013c2
Add the case in duplicate issue ( #4806 ) to the idempotent tests
2021-04-21 21:30:42 -05:00
ChinYing-Li
dac2423f3f
Recognize when a block comment has been ended inside a string literal ( #4312 )
2021-04-21 21:30:42 -05:00
Joseph Birr-Pixton
58157bb4b7
Add some basic tests for chain_width use
2021-04-21 21:27:50 -05:00
Caleb Cartwright
78b0728887
refactor: remove panics on misconfigured widths
2021-04-21 21:27:50 -05:00
Caleb Cartwright
a168d92f9a
tests: augment heuristics tests
2021-04-21 21:27:50 -05:00
Caleb Cartwright
1bcc1f8df5
refactor: apply heuristic config changes in lib
2021-04-21 21:27:50 -05:00
Caleb Cartwright
ea1611c06e
feat(config): expose all width heurstic options
2021-04-21 21:27:50 -05:00
Caleb Cartwright
0269eb1c5f
docs: update configuration info
2021-04-21 21:27:50 -05:00
Joshua Nelson
26fb3fa737
Use rustup in CI to automatically determine the toolchain version needed
...
This also removes the (now unused) `RUSTC_RELEASE` and
`RUSTC_RELEASE_CHANNEL` variables.
2021-04-21 21:17:36 -05:00
Joshua Nelson
943b97c3ae
Fix errors when parallel_compiler
is enabled
2021-04-21 21:17: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
Joshua Nelson
6767c1d051
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
```
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
01cdc15f13
chore: bump toolchain
2021-04-02 23:21:06 -05:00
Caleb Cartwright
c32f2ec015
chore: fmt and cleanup
2021-04-02 23:21:06 -05:00
Caleb Cartwright
4948911608
deps: apply rustc-ap-* v712 changes
2021-04-02 23:21:06 -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
bf1e47f78d
chore: bump toolchain
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
4c617e8fb3
deps: apply rustc module loading changes
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
612e8d5b9b
refactor: apply rustc mod parsing changes
2021-04-02 23:21:06 -05:00
Caleb Cartwright
2c6339571b
chore: apply pattern parsing changes
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
Yuki Okushi
ca4e9f47b9
Fix a legacy_derive_helpers
warning
2021-03-18 23:34:32 -05:00
Joshua Nelson
c3a5111106
Fix some clippy warnings
...
This commit can be replicated with
`cargo clippy --fix -Z unstable-options && cargo +nightly-2021-02-10 fmt`.
2021-02-18 20:20:29 -06:00
David Bar-On
432e09e89f
Add the use of rewrite_assign_rhs_with_comments to 1.x
2021-02-17 20:47:20 -06:00
David Bar-On
4b0ed96f2e
Fix for issue 4603 about extra macro body indentation (third version)
2021-02-17 20:19:27 -06:00
Joshua Nelson
6170948820
Fix warnings
...
- Fix nightly warning about `format!`
- Remove unused functions and fields
2021-02-17 20:14:46 -06: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
9ed75111e2
deps: apply rustc-ap v705 changes to itemkind variants
2021-02-07 12:46:43 -06:00
Caleb Cartwright
b80fdf2971
chore: bump rust toolchain version
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
82a65284d0
chore: bump toolchain file
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
Dave Rolsky
ead937b863
Add arch name to archive files created in the upload workflow ( #4679 )
...
* Add arch name to archive files created in the upload workflow
* Fix arch names in matrix.build key to include arch name as well
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
b8f318c303
fix: don't insert trailing comma on struct lit rest in mac def
2021-01-28 22:01:50 -06:00