@@ -73,9 +73,19 @@ LL | pub fn open() {}
7373 = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details
7474 = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "open")]`
7575
76- warning: redefinition of the runtime `read ` symbol used by the standard library
76+ warning: redefinition of the runtime `open64 ` symbol used by the standard library
7777 --> $DIR/redefining-runtime-symbols.rs:43:1
7878 |
79+ LL | pub fn open64() {}
80+ | ^^^^^^^^^^^^^^^^^^
81+ |
82+ = note: extra care must be taken when redefining those symbols, 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 = "open64")]`
85+
86+ warning: redefinition of the runtime `read` symbol used by the standard library
87+ --> $DIR/redefining-runtime-symbols.rs:47:1
88+ |
7989LL | pub async fn read1() {}
8090 | ^^^^^^^^^^^^^^^^^^^^^^^
8191 |
@@ -84,7 +94,7 @@ LL | pub async fn read1() {}
8494 = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "read")]`
8595
8696warning: redefinition of the runtime `write` symbol used by the standard library
87- --> $DIR/redefining-runtime-symbols.rs:47 :1
97+ --> $DIR/redefining-runtime-symbols.rs:51 :1
8898 |
8999LL | pub fn write1() {}
90100 | ^^^^^^^^^^^^^^^^^^
@@ -94,7 +104,7 @@ LL | pub fn write1() {}
94104 = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "write")]`
95105
96106warning: redefinition of the runtime `close` symbol used by the standard library
97- --> $DIR/redefining-runtime-symbols.rs:51 :1
107+ --> $DIR/redefining-runtime-symbols.rs:55 :1
98108 |
99109LL | pub fn close_() {}
100110 | ^^^^^^^^^^^^^^^^^^
@@ -103,5 +113,5 @@ LL | pub fn close_() {}
103113 = note: see <https://doc.rust-lang.org/core/index.html#how-to-use-the-core-library> for the more details
104114 = help: either allow this lint or remove any `#[unsafe(no_mangle)]` or `#[unsafe(export_name = "close")]`
105115
106- warning: 10 warnings emitted
116+ warning: 11 warnings emitted
107117
0 commit comments