Skip to content

Commit e928067

Browse files
committed
fix rustdoc and core test
1 parent 5c99175 commit e928067

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/core/tests/clone.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#[test]
2+
#[cfg_attr(not(bootstrap), allow(suspicious_double_ref_op))]
23
fn test_borrowed_clone() {
34
let x = 5;
45
let y: &i32 = &x;

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>(
167167
display_fn(move |f| {
168168
let mut bounds_dup = FxHashSet::default();
169169

170-
for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(b.clone())).enumerate() {
170+
for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(*b)).enumerate() {
171171
if i > 0 {
172172
f.write_str(" + ")?;
173173
}

0 commit comments

Comments
 (0)