rust/hg-cpython/src/ref_sharing.rs
changeset 42839 ee0f511b7a22
parent 42752 30320c7bf79f
child 42849 8db8fa1de2ef
equal deleted inserted replaced
42838:f1f9ad5ae4f8 42839:ee0f511b7a22
   343     ) => {
   343     ) => {
   344         py_shared_iterator_impl!(
   344         py_shared_iterator_impl!(
   345             $name,
   345             $name,
   346             $leaked,
   346             $leaked,
   347             Box<
   347             Box<
   348                 Iterator<Item = (&'static $key_type, &'static $value_type)>
   348                 dyn Iterator<Item = (&'static $key_type, &'static $value_type)>
   349                     + Send,
   349                     + Send,
   350             >,
   350             >,
   351             $success_func,
   351             $success_func,
   352             $success_type
   352             $success_type
   353         );
   353         );
   365         $success_type: ty
   365         $success_type: ty
   366     ) => {
   366     ) => {
   367         py_shared_iterator_impl!(
   367         py_shared_iterator_impl!(
   368             $name,
   368             $name,
   369             $leaked,
   369             $leaked,
   370             Box<Iterator<Item = &'static $key_type> + Send>,
   370             Box<dyn Iterator<Item = &'static $key_type> + Send>,
   371             $success_func,
   371             $success_func,
   372             $success_type
   372             $success_type
   373         );
   373         );
   374     };
   374     };
   375 }
   375 }