Skip to content

Commit

Permalink
Rollup merge of rust-lang#67848 - ollie27:float_link_name_attr, r=Dyl…
Browse files Browse the repository at this point in the history
…an-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: rust-lang#47725
  • Loading branch information
GuillaumeGomez authored Jan 4, 2020
2 parents 5c73be1 + 83333fe commit a86a189
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libstd/sys/unix/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use libc::{c_double, c_float};

#[link_name = "m"]
extern "C" {
pub fn acos(n: c_double) -> c_double;
pub fn acosf(n: c_float) -> c_float;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/sys/vxworks/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use libc::{c_double, c_float};

#[link_name = "m"]
extern "C" {
pub fn acos(n: c_double) -> c_double;
pub fn acosf(n: c_float) -> c_float;
Expand Down
1 change: 0 additions & 1 deletion src/libstd/sys/windows/cmath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use libc::{c_double, c_float};

#[link_name = "m"]
extern "C" {
pub fn acos(n: c_double) -> c_double;
pub fn asin(n: c_double) -> c_double;
Expand Down

0 comments on commit a86a189

Please sign in to comment.