Skip to content

Commit 31bf58f

Browse files
committed
Fix std::fill
1 parent 837078f commit 31bf58f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎rules/algorithm/tgt_refcount.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ fn f10<T1: CppInputIterator<T2>, T2: PartialEq + Clone + ByteRepr>(a0: T1, a1: T
114114
}
115115
}
116116

117-
fn f12<T1: CppInputIterator<T3>, T2: Clone + Into<T3>, T3: ByteRepr>(a0: T1, a1: T1, a2: T2) {
117+
fn f12<T1: CppInputIterator<T2>, T2: Clone + ByteRepr>(a0: T1, a1: T1, a2: T2) {
118118
let mut __it = a0;
119119
while __it != a1 {
120-
__it.iter_deref().write(a2.clone().into());
120+
__it.iter_deref().write(Clone::clone(&a2));
121121
__it.iter_inc();
122122
}
123123
}

‎rules/algorithm/tgt_unsafe.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ unsafe fn f10<T1: UnsafeCppInputIterator<T2>, T2: PartialEq + Clone>(a0: T1, a1:
104104
}
105105
}
106106

107-
unsafe fn f12<T1: UnsafeCppInputIterator<T3>, T2: Clone + Into<T3>, T3>(a0: T1, a1: T1, a2: T2) {
107+
unsafe fn f12<T1: UnsafeCppInputIterator<T2>, T2: Clone>(a0: T1, a1: T1, a2: T2) {
108108
let mut __it = a0;
109109
while __it != a1 {
110-
*__it.iter_deref() = a2.clone().into();
110+
*__it.iter_deref() = Clone::clone(&a2);
111111
__it.iter_inc();
112112
}
113113
}

0 commit comments

Comments
 (0)