Skip to content

Commit a86a189

Browse files
Rollup merge of #67848 - ollie27:float_link_name_attr, r=Dylan-DPC
Remove unused `#[link_name = "m"]` attributes These were perhaps supposed to be `#[link(name = "m")]` but linking libm should be handled by the libc crate anyway. They should have triggered a compile error: #47725
2 parents 5c73be1 + 83333fe commit a86a189

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/libstd/sys/unix/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn acosf(n: c_float) -> c_float;

src/libstd/sys/vxworks/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn acosf(n: c_float) -> c_float;

src/libstd/sys/windows/cmath.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use libc::{c_double, c_float};
44

5-
#[link_name = "m"]
65
extern "C" {
76
pub fn acos(n: c_double) -> c_double;
87
pub fn asin(n: c_double) -> c_double;

0 commit comments

Comments
 (0)