mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Rollup merge of #120109 - joboet:move_pal_cmath, r=ChrisDenton
Move cmath into `sys` Part of #117276. r? ``@ChrisDenton``
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
// These symbols are all defined by `libm`,
|
||||
// or by `compiler-builtins` on unsupported platforms.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_os = "windows")] {
|
||||
mod windows;
|
||||
pub use windows::*;
|
||||
} else {
|
||||
mod builtins;
|
||||
pub use builtins::*;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
use core::ffi::{c_double, c_float, c_int};
|
||||
|
||||
extern "C" {
|
||||
@@ -3,9 +3,11 @@
|
||||
/// descriptors.
|
||||
mod pal;
|
||||
|
||||
pub mod os_str;
|
||||
mod personality;
|
||||
|
||||
pub mod cmath;
|
||||
pub mod os_str;
|
||||
|
||||
// FIXME(117276): remove this, move feature implementations into individual
|
||||
// submodules.
|
||||
pub use pal::*;
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
|
||||
@@ -21,8 +21,6 @@ mod itron {
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
// `error` is `pub(crate)` so that it can be accessed by `itron/error.rs` as
|
||||
// `crate::sys::error`
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
#[path = "../unsupported/env.rs"]
|
||||
pub mod env;
|
||||
pub mod locks;
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
pub mod fs;
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
pub mod alloc;
|
||||
pub mod android;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fs;
|
||||
pub mod io;
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#[path = "../unix/alloc.rs"]
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
pub mod fs;
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
pub mod c;
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fs;
|
||||
pub mod handle;
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
#[path = "../unsupported/env.rs"]
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
|
||||
Reference in New Issue
Block a user