fix rustdoc and core test

This commit is contained in:
Deadbeef 2023-04-29 06:58:36 +00:00
parent 5c99175a9e
commit e92806704b
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#[test] #[test]
#[cfg_attr(not(bootstrap), allow(suspicious_double_ref_op))]
fn test_borrowed_clone() { fn test_borrowed_clone() {
let x = 5; let x = 5;
let y: &i32 = &x; let y: &i32 = &x;

View File

@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>(
display_fn(move |f| { display_fn(move |f| {
let mut bounds_dup = FxHashSet::default(); let mut bounds_dup = FxHashSet::default();
for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(b.clone())).enumerate() { for (i, bound) in bounds.iter().filter(|b| bounds_dup.insert(*b)).enumerate() {
if i > 0 { if i > 0 {
f.write_str(" + ")?; f.write_str(" + ")?;
} }