diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-07 19:42:33 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-09 17:11:13 +0000 |
| commit | a4e7f8f9bf10588cb5519ae09a15be155499901f (patch) | |
| tree | 49525f3454d966963544c40b78793dc74f0702cc /library/std/src/sys/cmath.rs | |
| parent | 04bbc8340a0e0031aef7f406c087a0ba64c1b491 (diff) | |
| download | rust-a4e7f8f9bf10588cb5519ae09a15be155499901f.tar.gz rust-a4e7f8f9bf10588cb5519ae09a15be155499901f.zip | |
Mark extern blocks as unsafe
Diffstat (limited to 'library/std/src/sys/cmath.rs')
| -rw-r--r-- | library/std/src/sys/cmath.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/cmath.rs b/library/std/src/sys/cmath.rs index ee36127cfdf..e3f41f4fdbb 100644 --- a/library/std/src/sys/cmath.rs +++ b/library/std/src/sys/cmath.rs @@ -2,7 +2,7 @@ // These symbols are all defined by `libm`, // or by `compiler-builtins` on unsupported platforms. -extern "C" { +unsafe extern "C" { pub fn acos(n: f64) -> f64; pub fn asin(n: f64) -> f64; pub fn atan(n: f64) -> f64; |
