Skip to content

Commit 7d6b11d

Browse files
committed
Revert change to clone_from.
1 parent 0a2f2d0 commit 7d6b11d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/rustc_index/src/bit_set.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1078,12 +1078,8 @@ impl<T> Clone for BitSet<T> {
10781078
}
10791079

10801080
fn clone_from(&mut self, from: &Self) {
1081-
if self.domain_size == from.domain_size {
1082-
bitwise(&mut self.words, &from.words, |_, b| b);
1083-
} else {
1084-
self.domain_size = from.domain_size;
1085-
self.words.clone_from(&from.words);
1086-
}
1081+
self.domain_size = from.domain_size;
1082+
self.words.clone_from(&from.words);
10871083
}
10881084
}
10891085

0 commit comments

Comments
 (0)