File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2
22
33defaults :
4- rust_image : &rust_image quay.io/tarilabs/rust_tari-build-with-deps:nightly-2019-07-31
4+ rust_image : &rust_image quay.io/tarilabs/rust_tari-build-with-deps:nightly-2019-08-21
55
66jobs :
77 test-docs :
7070 - run :
7171 name : Tari source code
7272 command : |
73- TOOLCHAIN_VERSION=nightly-2019-07-31
73+ TOOLCHAIN_VERSION=nightly-2019-08-21
7474 rustup component add --toolchain $TOOLCHAIN_VERSION rustfmt
7575 cargo fmt --all -- --check
7676 cargo test --all
Original file line number Diff line number Diff line change 8181
8282impl < N > IntoFuture for StackBuilder < N > {
8383 type Error = ( ) ;
84+ type Future = impl Future < Item = ( ) , Error = ( ) > + Send ;
8485 type Item = ( ) ;
8586
86- existential type Future : Future < Item = ( ) , Error = ( ) > + Send ;
87-
8887 fn into_future ( self ) -> Self :: Future {
8988 future:: join_all ( self . futures ) . map ( |_| ( ) )
9089 }
Original file line number Diff line number Diff line change @@ -356,10 +356,9 @@ mod test {
356356 struct EchoService ( Option < oneshot:: Receiver < ( ) > > ) ;
357357 impl Service < String > for EchoService {
358358 type Error = ( ) ;
359+ type Future = impl Future < Item = String , Error = ( ) > ;
359360 type Response = String ;
360361
361- existential type Future : Future < Item = String , Error = ( ) > ;
362-
363362 fn poll_ready ( & mut self ) -> Poll < ( ) , Self :: Error > {
364363 Ok ( ( ) . into ( ) )
365364 }
Original file line number Diff line number Diff line change 2121// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2222
2323// Used to eliminate the need for boxing futures in many cases.
24- // Detais here : https://github.com/rust-lang/rfcs/pull/2071
25- #![ feature( existential_type ) ]
24+ // Tracking issue : https://github.com/rust-lang/rust/issues/63063
25+ #![ feature( type_alias_impl_trait ) ]
2626
2727#[ macro_use]
2828extern crate futures;
Original file line number Diff line number Diff line change @@ -78,10 +78,9 @@ impl CommsOutboundService {
7878
7979impl Service < CommsOutboundRequest > for CommsOutboundService {
8080 type Error = CommsOutboundServiceError ;
81+ type Future = impl Future < Item = Self :: Response , Error = Self :: Error > ;
8182 type Response = Result < CommsOutboundResponse , CommsOutboundServiceError > ;
8283
83- existential type Future : Future < Item = Self :: Response , Error = Self :: Error > ;
84-
8584 fn poll_ready ( & mut self ) -> Poll < ( ) , Self :: Error > {
8685 Ok ( ( ) . into ( ) )
8786 }
Original file line number Diff line number Diff line change @@ -125,10 +125,9 @@ impl LivenessService {
125125
126126impl Service < LivenessRequest > for LivenessService {
127127 type Error = ( ) ;
128+ type Future = impl Future < Item = Self :: Response , Error = Self :: Error > ;
128129 type Response = Result < LivenessResponse , LivenessError > ;
129130
130- existential type Future : Future < Item = Self :: Response , Error = Self :: Error > ;
131-
132131 fn poll_ready ( & mut self ) -> Poll < ( ) , Self :: Error > {
133132 Ok ( ( ) . into ( ) )
134133 }
Original file line number Diff line number Diff line change 1- nightly-2019-07-31
1+ nightly-2019-08-21
You can’t perform that action at this time.
0 commit comments