Skip to content

Commit fb4ac63

Browse files
committed
clarify that these assumtpions are for us, not all Rust code
1 parent dfee1ba commit fb4ac63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
//! (Note that these are [standard assumptions](https://reviews.llvm.org/D86993) among compilers.)
3030
//! These functions are often provided by the system libc, but can also be provided by the
3131
//! [compiler-builtins crate](https://crates.io/crates/compiler_builtins).
32+
//! Note that the library does not guarantee that it will always make these assumptions, so Rust
33+
//! user code directly calling the C functions should follow the C specification! The advice for
34+
//! Rust user code is to call the functions provided by this library instead (such as
35+
//! `ptr::copy`).
3236
//!
3337
//! * `rust_begin_panic` - This function takes four arguments, a
3438
//! `fmt::Arguments`, a `&'static str`, and two `u32`'s. These four arguments

0 commit comments

Comments
 (0)