|
| 1 | +warning: this function symbol name `memcpy` clashes with the fundamental functions expected with `core` and `std` |
| 2 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:9:1 |
| 3 | + | |
| 4 | +LL | / pub extern "C" fn memcpy( |
| 5 | +LL | | dest: *mut c_void, |
| 6 | +LL | | src: *const c_void, |
| 7 | +LL | | n: i64, |
| 8 | +LL | | ) -> *mut c_void { std::ptr::null_mut() } |
| 9 | + | |_________________________________________^ |
| 10 | + | |
| 11 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 12 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 13 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "memcpy")]` if present |
| 14 | + = note: `#[warn(clashing_function_names_with_fundamental_functions)]` on by default |
| 15 | + |
| 16 | +warning: this function symbol name `memmove` clashes with the fundamental functions expected with `core` and `std` |
| 17 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:17:1 |
| 18 | + | |
| 19 | +LL | pub fn memmove() {} |
| 20 | + | ^^^^^^^^^^^^^^^^^^^ |
| 21 | + | |
| 22 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 23 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 24 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "memmove")]` if present |
| 25 | + |
| 26 | +warning: this function symbol name `memset` clashes with the fundamental functions expected with `core` and `std` |
| 27 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:21:1 |
| 28 | + | |
| 29 | +LL | pub fn memset() {} |
| 30 | + | ^^^^^^^^^^^^^^^^^^ |
| 31 | + | |
| 32 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 33 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 34 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "memset")]` if present |
| 35 | + |
| 36 | +warning: this function symbol name `memcmp` clashes with the fundamental functions expected with `core` and `std` |
| 37 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:25:1 |
| 38 | + | |
| 39 | +LL | pub fn memcmp() {} |
| 40 | + | ^^^^^^^^^^^^^^^^^^ |
| 41 | + | |
| 42 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 43 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 44 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "memcmp")]` if present |
| 45 | + |
| 46 | +warning: this function symbol name `bcmp` clashes with the fundamental functions expected with `core` and `std` |
| 47 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:29:1 |
| 48 | + | |
| 49 | +LL | pub fn bcmp_() {} |
| 50 | + | ^^^^^^^^^^^^^^^^^ |
| 51 | + | |
| 52 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 53 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 54 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "bcmp")]` if present |
| 55 | + |
| 56 | +warning: this function symbol name `strlen` clashes with the fundamental functions expected with `core` and `std` |
| 57 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:33:1 |
| 58 | + | |
| 59 | +LL | pub fn strlen() {} |
| 60 | + | ^^^^^^^^^^^^^^^^^^ |
| 61 | + | |
| 62 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 63 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 64 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "strlen")]` if present |
| 65 | + |
| 66 | +warning: this function symbol name `open` clashes with the fundamental functions expected with `core` and `std` |
| 67 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:39:1 |
| 68 | + | |
| 69 | +LL | pub fn open() {} |
| 70 | + | ^^^^^^^^^^^^^^^^ |
| 71 | + | |
| 72 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 73 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 74 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "open")]` if present |
| 75 | + |
| 76 | +warning: this function symbol name `read` clashes with the fundamental functions expected with `core` and `std` |
| 77 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:43:1 |
| 78 | + | |
| 79 | +LL | pub async fn read1() {} |
| 80 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 81 | + | |
| 82 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 83 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 84 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "read")]` if present |
| 85 | + |
| 86 | +warning: this function symbol name `write` clashes with the fundamental functions expected with `core` and `std` |
| 87 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:47:1 |
| 88 | + | |
| 89 | +LL | pub fn write1() {} |
| 90 | + | ^^^^^^^^^^^^^^^^^^ |
| 91 | + | |
| 92 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 93 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 94 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "write")]` if present |
| 95 | + |
| 96 | +warning: this function symbol name `close` clashes with the fundamental functions expected with `core` and `std` |
| 97 | + --> $DIR/clashing-fn-names-with-fundamental-functions.rs:51:1 |
| 98 | + | |
| 99 | +LL | pub fn close_() {} |
| 100 | + | ^^^^^^^^^^^^^^^^^^ |
| 101 | + | |
| 102 | + = note: extra care must be taken when exposing a function with those symbol names, they must match exactly (ABI, function arguments, function return type, behavior, ...) |
| 103 | + = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details |
| 104 | + = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "close")]` if present |
| 105 | + |
| 106 | +warning: 10 warnings emitted |
| 107 | + |
0 commit comments