Skip to content

Commit 9fd0352

Browse files
committed
Avoid C override
1 parent b88b8ae commit 9fd0352

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// to compare their performance, see
3636
// https://github.com/rust-lang/rust/commit/b90cfc887c31c3e7a9e6d462e2464db1fe506175#diff-43914724af6e464c1da2171e4a9b6c7e607d5bc1203fa95c0ab85be4122605ef
3737
// for an example of how to do so.
38-
38+
/*
3939
use std::os::raw::{c_char, c_int, c_void};
4040
4141
#[no_mangle]
@@ -72,11 +72,12 @@ unsafe extern "C" fn free(ptr: *mut c_void) {
7272
unsafe extern "C" fn strdup(ptr: *const c_char) -> *mut c_char {
7373
fjall::c::strdup(ptr)
7474
}
75-
75+
*/
7676
#[unix_sigpipe = "sig_dfl"]
7777
fn main() {
7878
// See the comment at the top of this file for an explanation of this.
7979
{
80+
/*
8081
#[used]
8182
static _F1: unsafe extern "C" fn(usize, usize) -> *mut c_void = calloc;
8283
#[used]
@@ -105,6 +106,7 @@ fn main() {
105106
#[used]
106107
static _F7: unsafe extern "C" fn() = _rjem_je_zone_register;
107108
}*/
109+
*/
108110
}
109111

110112
rustc_driver::main()

0 commit comments

Comments
 (0)