Skip to content

Commit 3ceb813

Browse files
committed
#[allow(clippy::undocumented_unsafe_blocks)]: Apply to #[test]s.
1 parent 62612d4 commit 3ceb813

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/disjoint_mut.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ impl<V: Copy, C: AlignedByteChunk> DisjointMut<AlignedVec<V, C>> {
10021002
}
10031003
}
10041004

1005+
#[allow(clippy::undocumented_unsafe_blocks)]
10051006
#[test]
10061007
fn test_overlapping_immut() {
10071008
let mut v: DisjointMut<Vec<u8>> = Default::default();
@@ -1013,6 +1014,7 @@ fn test_overlapping_immut() {
10131014
assert_eq!(guard1[2], guard2[0]);
10141015
}
10151016

1017+
#[allow(clippy::undocumented_unsafe_blocks)]
10161018
#[test]
10171019
#[cfg_attr(debug_assertions, should_panic)]
10181020
fn test_overlapping_mut() {
@@ -1026,6 +1028,7 @@ fn test_overlapping_mut() {
10261028
assert_eq!(guard1[2], 42);
10271029
}
10281030

1031+
#[allow(clippy::undocumented_unsafe_blocks)]
10291032
#[cfg(debug_assertions)]
10301033
#[test]
10311034
fn test_pointer_write_debug() {
@@ -1052,6 +1055,7 @@ fn test_pointer_write_debug() {
10521055

10531056
// Run with miri using the following command:
10541057
// RUSTFLAGS="-C debug-assertions=off" cargo miri test
1058+
#[allow(clippy::undocumented_unsafe_blocks)]
10551059
#[cfg(not(debug_assertions))]
10561060
#[test]
10571061
fn test_pointer_write_release() {

0 commit comments

Comments
 (0)