Skip to content

Commit 81f1fa6

Browse files
committed
Adjust tests for newly added ambiguous_wide_pointer_comparisons lint
1 parent 2ed669f commit 81f1fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/tests/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ fn vec_macro_repeating_null_raw_fat_pointer() {
19741974

19751975
let vec = vec![null_raw_dyn; 1];
19761976
dbg!(ptr_metadata(vec[0]));
1977-
assert!(vec[0] == null_raw_dyn);
1977+
assert!(std::ptr::eq(vec[0], null_raw_dyn));
19781978

19791979
// Polyfill for https://github.com/rust-lang/rfcs/pull/2580
19801980

0 commit comments

Comments
 (0)