Skip to content

Commit

Permalink
Fix build of auxvec.rs on FreeBSD/powerpc64
Browse files Browse the repository at this point in the history
```
error[E0432]: unresolved import `mem`
  --> src/libstd/../stdsimd/crates/std_detect/src/detect/os/freebsd/auxvec.rs:45:9
   |
45 |     use mem;
   |         ^^^ no `mem` external crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `std`.
```
Tested by @pkubaj in https://reviews.freebsd.org/D20332
  • Loading branch information
Tobias Kortkamp authored and gnzlbg committed May 23, 2019
1 parent 22d579c commit b7cb47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/std_detect/src/detect/os/freebsd/auxvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub(crate) fn auxv() -> Result<AuxVec, ()> {

/// Tries to read the `key` from the auxiliary vector.
fn archauxv(key: usize) -> Result<usize, ()> {
use mem;
use crate::mem;

#[derive (Copy, Clone)]
#[repr(C)]
Expand Down

0 comments on commit b7cb47b

Please sign in to comment.