From 13d49f5299d28ae7a02b4118ddc5f2f98f8caf92 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 26 Nov 2016 18:30:14 +0100 Subject: [PATCH] Fix warning on 64 bit --- src/libcompiler_builtins/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcompiler_builtins/lib.rs b/src/libcompiler_builtins/lib.rs index 3452370013a..f139a00e2a4 100644 --- a/src/libcompiler_builtins/lib.rs +++ b/src/libcompiler_builtins/lib.rs @@ -17,8 +17,8 @@ #![crate_name = "compiler_builtins"] #![crate_type = "rlib"] #![feature(staged_api)] -#![feature(core_intrinsics)] -#![feature(core_float)] +#![cfg_attr(any(target_pointer_width="32", target_pointer_width="16"), + feature(core_intrinsics, core_float))] #![feature(associated_consts)] #![cfg_attr(not(stage0), feature(i128_type))]