]>
git.lizzy.rs Git - rust.git/log
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
Frank Steffahn [Sun, 22 Aug 2021 14:20:58 +0000 (16:20 +0200)]
Fix more “a”/“an” typos
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.
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.
Caio [Sun, 8 Aug 2021 14:49:13 +0000 (11:49 -0300)]
Introduce hir::ExprKind::Let - Take 2
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.
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.
Caleb Cartwright [Mon, 26 Jul 2021 03:57:19 +0000 (22:57 -0500)]
Camille GILLOT [Fri, 25 Jun 2021 18:43:04 +0000 (20:43 +0200)]
Use LocalExpnId where possible.
Guillaume Gomez [Wed, 5 May 2021 19:31:25 +0000 (21:31 +0200)]
Rework SESSION_GLOBALS API to prevent overwriting it
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`)
```
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
Yuki Okushi [Mon, 21 Jun 2021 15:00:38 +0000 (00:00 +0900)]
Rollup merge of #86274 - alexander-melentyev:spaces, r=bjorn3
Spaces
Alexander Melentyev [Mon, 21 Jun 2021 09:11:37 +0000 (12:11 +0300)]
Delete spaces
Caleb Cartwright [Fri, 18 Jun 2021 03:35:19 +0000 (22:35 -0500)]
fix(rustfmt): load nested out-of-line mods correctly
Yuki Okushi [Wed, 16 Jun 2021 22:11:13 +0000 (07:11 +0900)]
Use `AttrVec` for `Arm`, `FieldDef`, and `Variant`
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.
jedel1043 [Mon, 17 May 2021 03:13:38 +0000 (22:13 -0500)]
Allow formatting `Anonymous{Struct, Union}` declarations
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>
```
Caleb Cartwright [Fri, 14 May 2021 23:18:12 +0000 (18:18 -0500)]
chore: update gitattributes for files with windows style line endings
Andy Wang [Wed, 12 May 2021 22:19:00 +0000 (23:19 +0100)]
Bump nightly version
Andy Wang [Tue, 4 May 2021 12:37:28 +0000 (13:37 +0100)]
Rename `RealFileName::Named` to `LocalPath`
Andy Wang [Tue, 4 May 2021 12:34:19 +0000 (13:34 +0100)]
Only deal with LocalPath in conversion
Andy Wang [Tue, 4 May 2021 11:06:02 +0000 (12:06 +0100)]
Rename span_to_string to span_to_diagnostic_string
Caleb Cartwright [Tue, 4 May 2021 23:06:53 +0000 (18:06 -0500)]
tests: remove snippets with inner attrs on non-block expressions
Caleb Cartwright [Sun, 2 May 2021 15:03:25 +0000 (10:03 -0500)]
fix: backport changes for latest rustc api comaptibility
Yuki Okushi [Thu, 22 Apr 2021 13:33:36 +0000 (22:33 +0900)]
Upgrade `annotate-snippets` to 0.8 (#4762)
ChinYing-Li [Wed, 21 Apr 2021 06:08:57 +0000 (14:08 +0800)]
Add the case in duplicate issue (#4806) to the idempotent tests
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)
Joseph Birr-Pixton [Fri, 2 Apr 2021 10:06:35 +0000 (11:06 +0100)]
Add some basic tests for chain_width use
Caleb Cartwright [Sat, 18 Apr 2020 03:39:44 +0000 (22:39 -0500)]
refactor: remove panics on misconfigured widths
Caleb Cartwright [Sun, 23 Feb 2020 05:05:58 +0000 (23:05 -0600)]
tests: augment heuristics tests
Caleb Cartwright [Sun, 23 Feb 2020 04:07:50 +0000 (22:07 -0600)]
refactor: apply heuristic config changes in lib
Caleb Cartwright [Sun, 23 Feb 2020 04:05:07 +0000 (22:05 -0600)]
feat(config): expose all width heurstic options
Caleb Cartwright [Sun, 23 Feb 2020 04:01:48 +0000 (22:01 -0600)]
docs: update configuration info
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.
Joshua Nelson [Wed, 17 Feb 2021 04:50:30 +0000 (23:50 -0500)]
Fix errors when `parallel_compiler` is enabled
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
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
```
Caleb Cartwright [Sat, 3 Apr 2021 04:41:27 +0000 (23:41 -0500)]
chore: bump version and changelog
Caleb Cartwright [Sat, 27 Mar 2021 17:57:58 +0000 (12:57 -0500)]
chore: bump toolchain
Caleb Cartwright [Sun, 28 Mar 2021 22:30:53 +0000 (17:30 -0500)]
chore: fmt and cleanup
Caleb Cartwright [Sat, 27 Mar 2021 17:19:05 +0000 (12:19 -0500)]
deps: apply rustc-ap-* v712 changes
Caleb Cartwright [Sat, 27 Mar 2021 17:17:09 +0000 (12:17 -0500)]
chore: bump rustc-ap crates to v712
Caleb Cartwright [Sun, 28 Mar 2021 22:02:34 +0000 (17:02 -0500)]
deps: remove unused rustc_attr crate AP crate
Caleb Cartwright [Wed, 17 Mar 2021 22:09:41 +0000 (17:09 -0500)]
chore: bump toolchain
Caleb Cartwright [Wed, 17 Mar 2021 00:48:38 +0000 (19:48 -0500)]
deps: bump rustc-ap crates to v711
Caleb Cartwright [Tue, 16 Mar 2021 01:07:44 +0000 (20:07 -0500)]
deps: apply rustc module loading changes
Caleb Cartwright [Tue, 16 Mar 2021 01:04:09 +0000 (20:04 -0500)]
deps: bump rustc-ap crates to v710
Caleb Cartwright [Sun, 14 Mar 2021 18:44:02 +0000 (13:44 -0500)]
chore: apply AST HasAttrs->AstLike changes
Caleb Cartwright [Sun, 14 Mar 2021 18:43:33 +0000 (13:43 -0500)]
deps: bump rustc-ap crates to v709
Caleb Cartwright [Sun, 28 Mar 2021 21:25:30 +0000 (16:25 -0500)]
refactor: apply rustc mod parsing changes
Caleb Cartwright [Sun, 14 Mar 2021 18:16:52 +0000 (13:16 -0500)]
chore: apply pattern parsing changes
Caleb Cartwright [Sun, 14 Mar 2021 18:15:48 +0000 (13:15 -0500)]
chore: add span creation util function
Caleb Cartwright [Sun, 14 Mar 2021 18:10:19 +0000 (13:10 -0500)]
deps: bump rustc-ap crates to v708
Yuki Okushi [Thu, 18 Mar 2021 09:07:54 +0000 (18:07 +0900)]
Fix a `legacy_derive_helpers` warning
Joshua Nelson [Wed, 17 Feb 2021 04:33:20 +0000 (23:33 -0500)]
Fix some clippy warnings
This commit can be replicated with
`cargo clippy --fix -Z unstable-options && cargo +nightly-2021-02-10 fmt`.
David Bar-On [Fri, 8 Jan 2021 13:56:05 +0000 (15:56 +0200)]
Add the use of rewrite_assign_rhs_with_comments to 1.x
David Bar-On [Tue, 16 Feb 2021 14:35:47 +0000 (16:35 +0200)]
Fix for issue 4603 about extra macro body indentation (third version)
Joshua Nelson [Wed, 17 Feb 2021 04:26:01 +0000 (23:26 -0500)]
Fix warnings
- Fix nightly warning about `format!`
- Remove unused functions and fields
Thomas Eizinger [Thu, 11 Feb 2021 06:54:52 +0000 (17:54 +1100)]
Bump rustc-ap-* crates to version 706
Caleb Cartwright [Sun, 7 Feb 2021 17:47:20 +0000 (11:47 -0600)]
meta: bump to v1.4.36
Caleb Cartwright [Sat, 6 Feb 2021 21:13:14 +0000 (15:13 -0600)]
deps: apply rustc-ap v705 changes to itemkind variants
Caleb Cartwright [Sat, 6 Feb 2021 21:25:23 +0000 (15:25 -0600)]
chore: bump rust toolchain version
Caleb Cartwright [Sat, 6 Feb 2021 21:12:38 +0000 (15:12 -0600)]
deps: bump rustc-ap crates to v705
Caleb Cartwright [Thu, 4 Feb 2021 02:27:17 +0000 (20:27 -0600)]
meta: bump version to v1.4.35
Caleb Cartwright [Wed, 3 Feb 2021 04:01:34 +0000 (22:01 -0600)]
chore: bump toolchain file
Caleb Cartwright [Wed, 3 Feb 2021 03:56:22 +0000 (21:56 -0600)]
deps: bump rustc-ap to v702
Caleb Cartwright [Sun, 31 Jan 2021 22:08:00 +0000 (16:08 -0600)]
deps: bump rustc-ap crates to v701.0.0
Dave Rolsky [Wed, 3 Feb 2021 04:54:12 +0000 (23:54 -0500)]
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
Caleb Cartwright [Fri, 29 Jan 2021 03:21:26 +0000 (21:21 -0600)]
meta: bump to v1.4.34
Caleb Cartwright [Fri, 29 Jan 2021 01:14:44 +0000 (19:14 -0600)]
fix: don't insert trailing comma on struct lit rest in mac def
Caleb Cartwright [Fri, 29 Jan 2021 01:13:48 +0000 (19:13 -0600)]
tests: add case for issue 4675
Caleb Cartwright [Thu, 28 Jan 2021 02:21:07 +0000 (20:21 -0600)]
meta: bump to v1.4.33
Caleb Cartwright [Thu, 28 Jan 2021 01:46:32 +0000 (19:46 -0600)]
chore: backport some empty block check fixes
Caleb Cartwright [Thu, 7 Jan 2021 02:25:11 +0000 (20:25 -0600)]
refactor: cleanup block check for statements
vallentin [Sun, 17 Jan 2021 17:33:47 +0000 (18:33 +0100)]
Fixed semicolon getting moved into comment (fixes #4646)
vallentin [Sun, 17 Jan 2021 17:56:04 +0000 (18:56 +0100)]
Added 4646 test case
Michael Morgan [Tue, 12 Jan 2021 19:29:11 +0000 (14:29 -0500)]
Add imports_granularity="Item".
This option splits all imports into their own `use` statement.
Sean Klein [Tue, 19 Jan 2021 18:40:58 +0000 (13:40 -0500)]
fix: Avoid incorrect global 'cfg_if' Symbol interning
Fixes #4656
Caleb Cartwright [Wed, 27 Jan 2021 04:41:04 +0000 (22:41 -0600)]
chore: update Changelog with const generic backports
Ayaz Hafiz [Tue, 7 Jul 2020 14:31:09 +0000 (07:31 -0700)]
Include const generic type bounds in their spans
Closes #4310
topecongiro [Tue, 30 Jun 2020 09:19:13 +0000 (18:19 +0900)]
Do not duplicate const keyword on parameters
Seiichi Uchida [Wed, 27 May 2020 03:31:14 +0000 (12:31 +0900)]
Use the span after generics and where clause (#4208)
hafiz [Sun, 31 May 2020 08:36:08 +0000 (03:36 -0500)]
Include constness in impl blocks (#4215)
Closes #4084
Geoffry Song [Wed, 13 Jan 2021 01:30:26 +0000 (17:30 -0800)]
Tweak imports_granularity documentation
Geoffry Song [Sun, 10 Jan 2021 05:15:03 +0000 (21:15 -0800)]
Disable deprecated_option_merge_imports tests on non-nightly
Geoffry Song [Wed, 16 Dec 2020 01:19:54 +0000 (17:19 -0800)]
Rename `merge_imports` to `imports_granularity` and add a `Module` option.
This renames the existing `true`/`false` options to `Crate`/`Never`, then adds a
new `Module` option which causes imports to be grouped together by their
originating module.
Caleb Cartwright [Sat, 16 Jan 2021 02:54:48 +0000 (20:54 -0600)]
meta: bump version v1.4.32
Caleb Cartwright [Sat, 16 Jan 2021 02:54:15 +0000 (20:54 -0600)]
meta: update license years
Caleb Cartwright [Tue, 12 Jan 2021 23:40:53 +0000 (17:40 -0600)]
refactor: remove unneeded clone
Caleb Cartwright [Tue, 12 Jan 2021 23:39:03 +0000 (17:39 -0600)]
fix: indentation issue on generic bounds
Caleb Cartwright [Sat, 9 Jan 2021 18:45:43 +0000 (12:45 -0600)]
meta: bump to v1.4.31
Caleb Cartwright [Sat, 9 Jan 2021 18:45:08 +0000 (12:45 -0600)]
ci: add mingw to path for asset upload job
Caleb Cartwright [Sat, 9 Jan 2021 17:23:36 +0000 (11:23 -0600)]
fix: maintain redundant semis on items in statement pos
Mara Bos [Sat, 2 Jan 2021 01:21:48 +0000 (02:21 +0100)]
Update Cargo.lock.
Mara Bos [Sat, 2 Jan 2021 01:21:22 +0000 (02:21 +0100)]
Add 2021 test.
Mara Bos [Fri, 1 Jan 2021 22:57:19 +0000 (23:57 +0100)]
Fix expected macro formatting test output.
Mara Bos [Fri, 1 Jan 2021 19:47:30 +0000 (20:47 +0100)]
Account for new ast::GenericParamKind::Const::default in rust_ast.
Mara Bos [Fri, 1 Jan 2021 19:45:03 +0000 (20:45 +0100)]
Bump rustc-ap to v697.