-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-5892: Type alias generic rewrite follows the same rule as trait
rewrite Issue-189: rhs should use indent of last line of lhs
- Loading branch information
1 parent
4489061
commit 519ffc4
Showing
9 changed files
with
157 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,6 @@ tests/cargo-fmt/**/target | |
.idea/ | ||
.vscode/ | ||
*~ | ||
|
||
# nvim local dap settings | ||
.nvim-dap.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "nightly-2024-08-17" | ||
channel = "nightly-2024-08-08" | ||
components = ["llvm-tools", "rustc-dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// rustfmt-style_edition: 2024 | ||
|
||
impl SomeType { | ||
fn method(&mut self) { | ||
self.array[array_index as usize] | ||
.as_mut() | ||
.expect("thing must exist") | ||
.extra_info = Some(ExtraInfo { | ||
parent, | ||
count: count as u16, | ||
children: children.into_boxed_slice(), | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// rustfmt-style_edition: 2024 | ||
|
||
type AAAAAAAAAAAAA: | ||
BBBBBBBBBBBBBBB< | ||
CCCCCCCCCCCCCCCCC, | ||
DDDDDDDDDDDDDDDDD, | ||
EEEEEEEEEEEEEEEEE, | ||
FFFFFFFFFFFFFFFFF, | ||
GGGGGGGGGGGGGGGGG, | ||
HHHHHHHHHHHHHHHHH, | ||
IIIIIIIIIIIIIIIII, | ||
>; | ||
|
||
type AAAAAAAAAAAAA: | ||
BBBBBBBBBBBBBBB< | ||
CCCCCCCCCCCCCCCCC, | ||
DDDDDDDDDDDDDDDDD, | ||
EEEEEEEEEEEEEEEEE, | ||
FFFFFFFFFFFFFFFFF, | ||
GGGGGGGGGGGGGGGGG, | ||
HHHHHHHHHHHHHHHHH, | ||
IIIIIIIIIIIIIIIII, | ||
> + Eq | ||
+ PartialEq; | ||
|
||
// previous error: maximum length exceeded | ||
type SomeType: | ||
BBBBBBBBBBBBBBB<CCCCCCCCCCCCCCCCC, DDDDDDDDDDDDDDDDD, EEEEEEEEEEEEEEEEE, FFFFFFFFFFFFFFFFF> | ||
+ AAAAAAAAAAAAA; | ||
|
||
// previous error: maximum length exceeded | ||
type SomeType: | ||
BBBBBBBBBBBBBBB<CCCCCCCCCCCCCCCCC, DDDDDDDDDDDDDDDDD, EEEEEEEEEEEEEEEEE, FFFFFFFFFFFFFFFFF>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// rustfmt-style_edition: 2024 | ||
|
||
impl SomeType { | ||
fn method(&mut self) { | ||
self.array[array_index as usize] | ||
.as_mut() | ||
.expect("thing must exist") | ||
.extra_info = Some(ExtraInfo { | ||
parent, | ||
count: count as u16, | ||
children: children.into_boxed_slice(), | ||
}); | ||
} | ||
} | ||
|
||
impl SomeType { | ||
fn method(&mut self) { | ||
self.array[array_index as usize] | ||
.as_mut() | ||
.expect("thing must exist") | ||
.extra_info = | ||
long_long_long_long_long_long_long_long_long_long_long_long_long_long_long; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// rustfmt-style_edition: 2024 | ||
|
||
type AAAAAAAAAAAAA: | ||
BBBBBBBBBBBBBBB< | ||
CCCCCCCCCCCCCCCCC, | ||
DDDDDDDDDDDDDDDDD, | ||
EEEEEEEEEEEEEEEEE, | ||
FFFFFFFFFFFFFFFFF, | ||
GGGGGGGGGGGGGGGGG, | ||
HHHHHHHHHHHHHHHHH, | ||
IIIIIIIIIIIIIIIII, | ||
>; | ||
|
||
type AAAAAAAAAAAAA: | ||
BBBBBBBBBBBBBBB< | ||
CCCCCCCCCCCCCCCCC, | ||
DDDDDDDDDDDDDDDDD, | ||
EEEEEEEEEEEEEEEEE, | ||
FFFFFFFFFFFFFFFFF, | ||
GGGGGGGGGGGGGGGGG, | ||
HHHHHHHHHHHHHHHHH, | ||
IIIIIIIIIIIIIIIII, | ||
> + Eq | ||
+ PartialEq; | ||
|
||
// previous error: maximum length exceeded | ||
type SomeType: | ||
BBBBBBBBBBBBBBB<CCCCCCCCCCCCCCCCC, DDDDDDDDDDDDDDDDD, EEEEEEEEEEEEEEEEE, FFFFFFFFFFFFFFFFF> | ||
+ AAAAAAAAAAAAA; | ||
|
||
// previous error: maximum length exceeded | ||
type SomeType: | ||
BBBBBBBBBBBBBBB<CCCCCCCCCCCCCCCCC, DDDDDDDDDDDDDDDDD, EEEEEEEEEEEEEEEEE, FFFFFFFFFFFFFFFFF>; |