Skip to content

Rollup of 4 pull requests #67866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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.
  • Loading branch information
ollie27 committed Jan 3, 2020
commit 83333fe85b25c77f35b79bf06cde69b889558dca
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