Skip to content

Commit a6d609b

Browse files
committed
Add and update tests for rust-lang#2320 and rust-lang#2331
1 parent 0f24bc0 commit a6d609b

File tree

5 files changed

+34
-9
lines changed

5 files changed

+34
-9
lines changed

tests/source/trait.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ trait Foo {
7272
type IteRev = <MergingUntypedTimeSeries<SliceSeries<SliceWindow>> as UntypedTimeSeries>::IterRev;
7373
}
7474

75+
// #2331
76+
trait MyTrait<AAAAAAAAAAAAAAAAAAAA, BBBBBBBBBBBBBBBBBBBB, CCCCCCCCCCCCCCCCCCCC, DDDDDDDDDDDDDDDDDDDD> {
77+
fn foo() {}
78+
}
79+
7580
// Trait aliases
7681
trait FooBar =
7782
Foo

tests/target/big-impl-rfc.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ where
2929

3030
// #1369
3131
impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo
32-
for Bar {
32+
for Bar
33+
{
3334
fn foo() {}
3435
}
3536
impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
36-
for Bar {
37+
for Bar
38+
{
3739
fn foo() {}
3840
}
3941
impl<
4042
ExcessivelyLongGenericName,
4143
ExcessivelyLongGenericName,
4244
AnotherExcessivelyLongGenericName,
4345
> Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
44-
for Bar {
46+
for Bar
47+
{
4548
fn foo() {}
4649
}
4750
impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo

tests/target/big-impl.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,22 @@ where
2727

2828
// #1369
2929
impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo
30-
for Bar {
30+
for Bar
31+
{
3132
fn foo() {}
3233
}
3334
impl Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
34-
for Bar {
35+
for Bar
36+
{
3537
fn foo() {}
3638
}
3739
impl<
3840
ExcessivelyLongGenericName,
3941
ExcessivelyLongGenericName,
4042
AnotherExcessivelyLongGenericName,
4143
> Foo<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName>
42-
for Bar {
44+
for Bar
45+
{
4346
fn foo() {}
4447
}
4548
impl<ExcessivelyLongGenericName, ExcessivelyLongGenericName, AnotherExcessivelyLongGenericName> Foo

tests/target/impls.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ mod m {
141141
}
142142

143143
impl<BorrowType, K, V, NodeType, HandleType>
144-
Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
144+
Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType>
145+
{
145146
}
146147

147148
impl<BorrowType, K, V, NodeType, HandleType> PartialEq
148-
for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType> {
149+
for Handle<NodeRef<BorrowType, K, V, NodeType>, HandleType>
150+
{
149151
}
150152

151153
mod x {
@@ -160,7 +162,8 @@ mod x {
160162
}
161163

162164
impl<ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNodeFoo>
163-
Issue1249<ConcreteThreadSafeLayoutNode> {
165+
Issue1249<ConcreteThreadSafeLayoutNode>
166+
{
164167
// Creates a new flow constructor.
165168
fn foo() {}
166169
}

tests/target/trait.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ trait Foo {
100100
<MergingUntypedTimeSeries<SliceSeries<SliceWindow>> as UntypedTimeSeries>::IterRev;
101101
}
102102

103+
// #2331
104+
trait MyTrait<
105+
AAAAAAAAAAAAAAAAAAAA,
106+
BBBBBBBBBBBBBBBBBBBB,
107+
CCCCCCCCCCCCCCCCCCCC,
108+
DDDDDDDDDDDDDDDDDDDD,
109+
> {
110+
fn foo() {}
111+
}
112+
113+
103114
// Trait aliases
104115
trait FooBar = Foo + Bar;
105116
trait FooBar<A, B, C> = Foo + Bar;

0 commit comments

Comments
 (0)