Skip to content

Commit 37b3922

Browse files
committed
Only set feature(generic_nonzero) if using libcore's NonZero
1 parent 6b3c695 commit 37b3922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ui/abi/compatibility.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@
6363
[csky] compile-flags: --target csky-unknown-linux-gnuabiv2
6464
[csky] needs-llvm-components: csky
6565
*/
66-
#![feature(generic_nonzero, rustc_attrs, unsized_fn_params, transparent_unions)]
66+
#![feature(rustc_attrs, unsized_fn_params, transparent_unions)]
6767
#![cfg_attr(not(host), feature(no_core, lang_items), no_std, no_core)]
68+
#![cfg_attr(host, feature(generic_nonzero))]
6869
#![allow(unused, improper_ctypes_definitions, internal_features)]
6970

7071
// FIXME: some targets are broken in various ways.

0 commit comments

Comments
 (0)