diff options
| author | Tobias Kortkamp <t@tobik.me> | 2020-04-24 07:01:25 +0200 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2020-04-24 12:45:05 +0100 |
| commit | a69b5ec7aebb3eee651d5aba779461483b9d1f33 (patch) | |
| tree | 83ccb2ede0b25a546139c7ebd2b76f849862e428 /library/stdarch/crates/std_detect | |
| parent | 1f32017c847063c44d31daf3ad5819f60f030a67 (diff) | |
| download | rust-a69b5ec7aebb3eee651d5aba779461483b9d1f33.tar.gz rust-a69b5ec7aebb3eee651d5aba779461483b9d1f33.zip | |
Unbreak non-x86 build on FreeBSD
error[E0432]: unresolved import `self::arm::check_for`
--> src/libstd/../stdarch/crates/std_detect/src/detect/os/freebsd/mod.rs:11:17
|
11 | pub use self::arm::check_for;
| ^^^^^^^^^^^^^^^^^^^^ no `check_for` in `std_detect::detect::os::arm`
error[E0425]: cannot find value `detect_features` in module `self::os`
--> src/libstd/../stdarch/crates/std_detect/src/detect/mod.rs:121:37
|
121 | cache::test(x as u32, self::os::detect_features)
| ^^^^^^^^^^^^^^^ not found in `self::os`
|
help: possible candidate is found in another module, you can import it into scope
|
20 | use crate::std_detect::detect::os::arm::detect_features;
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/mod.rs b/library/stdarch/crates/std_detect/src/detect/mod.rs index e8cce6e5dca..77d1f7c5063 100644 --- a/library/stdarch/crates/std_detect/src/detect/mod.rs +++ b/library/stdarch/crates/std_detect/src/detect/mod.rs @@ -100,7 +100,7 @@ cfg_if! { } else if #[cfg(all(target_os = "linux", feature = "use_std"))] { #[path = "os/linux/mod.rs"] mod os; - } else if #[cfg(target_os = "freebsd")] { + } else if #[cfg(all(target_os = "freebsd", feature = "use_std"))] { #[cfg(target_arch = "aarch64")] #[path = "os/aarch64.rs"] mod aarch64; |
