Skip to content

Commit b95105d

Browse files
committed
Allow use of deprecated std::raw in a test for that feature
1 parent 529ec38 commit b95105d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/tests/mem.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ fn test_transmute_copy() {
9797
assert_eq!(1, unsafe { transmute_copy(&1) });
9898
}
9999

100+
// Remove this test when `std::raw` is removed.
101+
// The replacement pointer metadata APIs are tested in library/core/tests/ptr.rs
102+
#[allow(deprecated)]
100103
#[test]
101104
fn test_transmute() {
102105
trait Foo {

0 commit comments

Comments
 (0)