ding-young
3d468e2d92
update combine_strs_with_missing_comments
2024-08-03 04:43:03 -06:00
Caleb Cartwright
7c41e2bfba
refactor: switch from 'version' to 'style_edition'
...
Updates the relevant formatting logic to utilize the
new 'style_edition' option directly instead of the now
deprecated 'version' option. 'version' has only been
soft deprecated and has auto mapping in place so there
should be zero formatting impact to current 'version' users.
2024-07-28 19:37:36 -05:00
ding-young
e21c1e220b
refactor rewrite_array, pair, tuple, call
2024-07-26 03:53:21 -06:00
ding-young
1313d61842
modfiy ListItem to hold RewriteResult as the item field
2024-07-26 03:00:49 -06:00
ding-young
6ccf539b19
modify trait bound of itemize_list
2024-07-26 03:00:49 -06:00
ding-young
babc2f9b8a
modify rewrite_struct_lit, rewrite_struct_pat
...
- refactor rewrite_*** functions that call rewrite_path to return RewriteResult
- modify rewrite_aligned_item method of AlignedItem
2024-07-17 18:40:45 -06:00
ding-young
3cbc91e9d6
modify rewrite_path and impl rewrite_result for related AST nodes
2024-07-17 18:40:45 -06:00
Jules Bertholet
932f3ab762
Rename BindingAnnotation to BindingMode
2024-04-17 09:34:39 -04:00
Jules Bertholet
645b94c155
Implement mut ref/mut ref mut
2024-03-27 09:53:23 -04:00
Michael Goulet
f670f3b5e0
Implement macro-based deref!() syntax for deref patterns
...
Stop using `box PAT` syntax for deref patterns, as it's misleading and
also causes their semantics being tangled up.
2024-03-21 11:42:49 -04:00
Lieselotte
255d2cf8f1
Add PatKind::Err
2024-01-17 03:14:16 +01:00
Alona Enraght-Moony
d9ea1027b5
bool->enum for ast::PatKind::Struct presence of ..
...
See cee794ee98/compiler/rustc_parse/src/parser/pat.rs (L890-L897) for the only place this is constructed.
2023-12-23 02:50:31 +00:00
Nadrieril
f2f243109b
Add never_patterns feature gate
2023-11-29 03:58:29 +01:00
Caleb Cartwright
04bd7201a9
Merge commit ' 81fe905ca8' into rustfmt-sync
2023-10-22 20:21:44 -05:00
Nicholas Nethercote
4a4addc598
Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns.
2022-11-17 13:45:59 +11:00
Cameron Steffen
e40972ebf8
rustfmt: BindingAnnotation change
2022-09-02 12:55:05 -05:00
Caleb Cartwright
6db6bafc61
Merge commit ' 4a053f206f' into sync-rustfmt-subtree
2021-12-29 20:49:39 -06:00
Caleb Cartwright
f99e3582bd
Merge commit ' ea199bacef' into rustfmt-sync
2021-11-07 20:37:34 -06:00
Caleb Cartwright
2b41b6d022
Merge commit ' efa8f5521d' into rustfmt-subtree
2021-10-20 00:11:59 -05:00
Joshua Nelson
7769ed0484
Document private items for rustfmt
...
This is possible now that rustdoc allows passing
`--document-private-items` more than once.
2021-08-16 01:46:56 +00:00
Caleb Cartwright
e4b8714c09
Merge commit ' 4236289b75' into update-rustfmt
2021-07-25 22:57:19 -05:00
Ryan Levick
58c63cf8de
Add support for using qualified paths with structs in expression and pattern
...
position.
2021-06-10 13:18:41 +02: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
cbd83b8083
chore: add span creation util function
2021-04-02 23:21:06 -05:00
Caleb Cartwright
00e199c974
backport new syntax to rustfmt 1.x ( #4105 )
...
* feat: support raw reference operator
* feat: support const opt-out syntax
* feat: support half open range syntax
2020-03-31 15:28:01 +09:00
Caleb Cartwright
b173b42354
refactor: rename libsyntax --> rustc_ast
2020-03-27 22:29:12 -05:00
Caleb Cartwright
bea7209d0a
chore: fix src formatting
2020-03-27 21:53:40 -05:00
Caleb Cartwright
9b0ed57af6
refactor: parse & mod resolver for rustc-ap v650
2020-03-27 21:33:34 -05:00
Caleb Cartwright
c60416ed21
deps: update rustc-ap to v642.0.0
2020-02-08 22:21:37 -06:00
Caleb Cartwright
28be77915f
fix: nested comments in control flow condition pat
2019-10-17 19:58:08 -05:00
Seiichi Uchida
383306e5fe
Update rustc-ap-* crates to 606.0.0 ( #3835 )
2019-10-05 23:40:24 +09:00
Seiichi Uchida
ceca01465a
Update deps ( #3788 )
2019-09-08 23:33:21 +09:00
Seiichi Uchida
5baba86fe5
Update rustc-ap-* crates to 581.0.0 ( #3783 )
2019-09-06 22:41:03 +09:00
rChaser53
a09ca681de
fix the bug removing attrs ( #3760 )
2019-08-28 20:50:02 +09:00
Seiichi Uchida
c0cb5eb535
Fix broken tuple pattern ( #3729 )
2019-08-06 11:09:45 +09:00
rChaser53
3b7a518144
fix underscore in slice patterns are removed ( #3719 )
2019-07-31 23:55:58 +09:00
rChaser53
fe05e88831
fix to build with rustc 1.38.0-nightly ( 4560cb830 2019-07-28) ( #3712 )
2019-07-30 14:32:38 +09:00
rChaser53
fbd9f335f9
fix Erasing inner attributes in struct ( #3593 )
2019-05-30 07:31:48 +09:00
Ruben Schmidmeister
618d092bf7
Enable unreachable_pub lint
2019-05-09 20:37:51 +02:00
Alexander Regueiro
7a3b7c9275
Various cosmetic improvements ( #3403 )
2019-02-19 11:56:42 +09:00
Hirokazu Hata
8183b949c4
cargo fmt
2019-02-09 16:20:38 +09:00
Hirokazu Hata
4bb90f5cc8
Fix rust_2018_idioms warnings
2019-02-09 16:14:30 +09:00
Evgenii
ece629b1cc
transition to Rust 2018
2019-02-04 13:30:43 +03:00
Matthias Krüger
3aa153398a
fix a few clippy warnings
...
types.rs:
fix single_char_pattern (use character patters instead of string for .ends_with() and .starts_with()
patterns.rs
expr.rs
file_lines.rs:
fix into_iter_on_ref_ptr (use iter() or iter_mut() instead of into_iter()
tests/mod.rs:
check_files(): take Option<PathBuf> by reference
2018-11-16 22:25:33 +01:00
Matthias Krüger
b25f974c0d
fix a few typos found via codespell.
2018-10-19 12:28:00 +02:00
Seiichi Uchida
d7e1f0006a
Put arguments of the fail attribute on the same line as println!
2018-09-30 08:05:45 +09:00
Seiichi Uchida
755d27a424
Take impl Iterator for overflow routines
2018-09-29 14:33:00 +09:00
Seiichi Uchida
e2b9c66cc9
Cargo fmt
2018-09-19 23:22:26 +09:00
crw5996
5d642e8b23
Fixed #2955 . Added value to determine whether or not rustfmt has condensed a tuple-struct
...
Refactored to not use a mutable variable
2018-08-27 15:25:40 -04:00