forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not indent impl generics (rust-lang#3856)
- Loading branch information
1 parent
8210cc1
commit a15e97f
Showing
9 changed files
with
168 additions
and
10 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
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,15 @@ | ||
// rustfmt-hard_tabs: true | ||
|
||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,13 @@ | ||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,16 @@ | ||
// rustfmt-hard_tabs: true | ||
// rustfmt-version: Two | ||
|
||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,15 @@ | ||
// rustfmt-version: Two | ||
|
||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl<Target: FromEvent<A> + FromEvent<B>, A: Widget2<Ctx = C>, B: Widget2<Ctx = C>, C: for<'a> CtxFamily<'a>> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,25 @@ | ||
// rustfmt-hard_tabs: true | ||
|
||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,23 @@ | ||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,26 @@ | ||
// rustfmt-hard_tabs: true | ||
// rustfmt-version: Two | ||
|
||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |
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,25 @@ | ||
// rustfmt-version: Two | ||
|
||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
|
||
mod foo { | ||
impl< | ||
Target: FromEvent<A> + FromEvent<B>, | ||
A: Widget2<Ctx = C>, | ||
B: Widget2<Ctx = C>, | ||
C: for<'a> CtxFamily<'a>, | ||
> Widget2 for WidgetEventLifter<Target, A, B> | ||
{ | ||
type Ctx = C; | ||
type Event = Vec<Target>; | ||
} | ||
} |