Fix libcore build
This commit is contained in:
parent
6163c1d6ff
commit
657f778871
2 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#![feature(
|
||||
const_fn,
|
||||
const_fn_union,
|
||||
custom_inner_attributes,
|
||||
link_llvm_intrinsics,
|
||||
platform_intrinsics,
|
||||
repr_simd,
|
||||
|
|
@ -75,4 +76,4 @@ mod core_arch;
|
|||
pub use self::core_arch::arch::*;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use core::{ffi, hint, intrinsics, marker, mem, ptr, sync};
|
||||
use core::{ffi, hint, intrinsics, marker, mem, ops, ptr, sync};
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ impl_from! { i8x16, u8x16, i16x8, u16x8, i32x4, u32x4, f32x4 }
|
|||
|
||||
macro_rules! impl_neg {
|
||||
($s: ident : $zero: expr) => {
|
||||
impl core::ops::Neg for s_t_l!($s) {
|
||||
impl crate::ops::Neg for s_t_l!($s) {
|
||||
type Output = s_t_l!($s);
|
||||
fn neg(self) -> Self::Output {
|
||||
let zero = $s::splat($zero);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue