mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
a73aabfa92
Use fake libc in core test The war on libc continues. Some platforms may not need to link to the libc crate (and it's possible some may not even have a libc), therefore we shouldn't require it for tests. This creates dummy `malloc` and `free` implementations for use in the pointer docs, but, keeps the public documentation looking the same as before.