diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-04-29 06:58:36 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-04-29 08:50:56 +0000 |
| commit | e92806704b088471a3ced0a7dcc2aa46c99e1366 (patch) | |
| tree | d7c1c7eb0a873d6d474da21ef7ef2f13ece7ad1e | |
| parent | 5c99175a9efcaa3d65712c119f361add22e3a859 (diff) | |
| download | rust-e92806704b088471a3ced0a7dcc2aa46c99e1366.tar.gz rust-e92806704b088471a3ced0a7dcc2aa46c99e1366.zip | |
fix rustdoc and core test
| -rw-r--r-- | library/core/tests/clone.rs | 1 | ||||
| -rw-r--r-- | src/librustdoc/html/format.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/library/core/tests/clone.rs b/library/core/tests/clone.rs index 33ca9f2c6a3..aafe5ced2e9 100644 --- a/library/core/tests/clone.rs +++ b/library/core/tests/clone.rs @@ -1,4 +1,5 @@ #[test] +#[cfg_attr(not(bootstrap), allow(suspicious_double_ref_op))] fn test_borrowed_clone() { let x = 5; let y: &i32 = &x; diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 1b445b8981e..297120da284 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -167,7 +167,7 @@ pub(crate) fn print_generic_bounds<'a, 'tcx: 'a>( display_fn(move |f| { 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 { f.write_str(" + ")?; } |
