Skip to content

Commit 8f5ab7b

Browse files
committed
moved renamed docs formatted | empty-allocation-non-null.rs
1 parent 706be52 commit 8f5ab7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/ui/empty-allocation-non-null.rs renamed to tests/ui/allocator/empty-alloc-nonnull-guarantee.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! Test that empty allocations produce non-null pointers
2+
//!
3+
//! This test ensures that Rust's allocator maintains the invariant that
4+
//! Box<T> is always non-null, even for zero-sized types and empty allocations.
5+
//! This is crucial for memory safety guarantees in Rust.
6+
17
//@ run-pass
28

39
pub fn main() {

0 commit comments

Comments
 (0)