Patchwork D6770: rust: fix warnings about trait objects without dyn being deprecated

login
register
mail settings
Submitter phabricator
Date Aug. 28, 2019, 12:19 p.m.
Message ID <differential-rev-PHID-DREV-rrdzg4ec5giei6sxfthz-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41423/
State Superseded
Headers show

Comments

phabricator - Aug. 28, 2019, 12:19 p.m.
valentin.gatienbaron created this revision.
Herald added subscribers: mercurial-devel, kevincox, durin42.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6770

AFFECTED FILES
  rust/hg-cpython/src/ref_sharing.rs

CHANGE DETAILS




To: valentin.gatienbaron, #hg-reviewers
Cc: durin42, kevincox, mercurial-devel

Patch

diff --git a/rust/hg-cpython/src/ref_sharing.rs b/rust/hg-cpython/src/ref_sharing.rs
--- a/rust/hg-cpython/src/ref_sharing.rs
+++ b/rust/hg-cpython/src/ref_sharing.rs
@@ -345,7 +345,7 @@ 
             $name,
             $leaked,
             Box<
-                Iterator<Item = (&'static $key_type, &'static $value_type)>
+                dyn Iterator<Item = (&'static $key_type, &'static $value_type)>
                     + Send,
             >,
             $success_func,
@@ -367,7 +367,7 @@ 
         py_shared_iterator_impl!(
             $name,
             $leaked,
-            Box<Iterator<Item = &'static $key_type> + Send>,
+            Box<dyn Iterator<Item = &'static $key_type> + Send>,
             $success_func,
             $success_type
         );