Skip to content

Commit d989202

Browse files
committed
remove some unnecessary feature(lang_items)
1 parent 71d89c1 commit d989202

File tree

9 files changed

+6
-11
lines changed

9 files changed

+6
-11
lines changed

tests/ui/repr/16-bit-repr-c-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//@ [msp430] needs-llvm-components: msp430
88
//@ [msp430] compile-flags: --target=msp430-none-elf --crate-type=rlib
99
//@ ignore-backends: gcc
10-
#![feature(no_core, lang_items, intrinsics, staged_api, rustc_attrs)]
10+
#![feature(no_core, intrinsics, staged_api, rustc_attrs)]
1111
#![no_core]
1212
#![crate_type = "lib"]
1313
#![stable(feature = "intrinsics_for_test", since = "3.3.3")]

tests/ui/repr/repr-c-dead-variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(no_core, rustc_attrs, lang_items)]
1+
#![feature(no_core, rustc_attrs)]
22
#![allow(dead_code)]
33
#![crate_type = "lib"]
44
#![no_std]

tests/ui/repr/repr_align_greater_usize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// We should fail to compute alignment for types aligned higher than usize::MAX.
1010
// We can't handle alignments that require all 32 bits, so this only affects 16-bit.
1111

12-
#![feature(lang_items, no_core)]
12+
#![feature(no_core)]
1313
#![no_core]
1414
#![crate_type = "lib"]
1515

tests/ui/sanitizer/cfg-kasan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//@ ignore-backends: gcc
1717

1818
#![crate_type = "rlib"]
19-
#![feature(cfg_sanitize, no_core, lang_items)]
19+
#![feature(cfg_sanitize, no_core)]
2020
#![no_core]
2121

2222
extern crate minicore;

tests/ui/sanitizer/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//@[thread]compile-flags: -Zsanitizer=thread
2222
//@ ignore-backends: gcc
2323

24-
#![feature(cfg_sanitize, no_core, lang_items)]
24+
#![feature(cfg_sanitize, no_core)]
2525
#![crate_type="lib"]
2626
#![no_core]
2727

tests/ui/static/static_sized_requirement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ add-core-stubs
22
//@ check-pass
33

4-
#![feature(no_core, lang_items)]
4+
#![feature(no_core)]
55
#![no_core]
66
#![crate_type = "lib"]
77

tests/ui/unboxed-closures/unboxed-closures-all-traits.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ run-pass
2-
#![feature(lang_items)]
32

43
fn a<F:Fn(isize, isize) -> isize>(f: F) -> isize {
54
f(1, 2)

tests/ui/unboxed-closures/unboxed-closures-blanket-fn-mut.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#![allow(unused_variables)]
33
// Test that you can supply `&F` where `F: FnMut()`.
44

5-
#![feature(lang_items)]
6-
75
fn a<F:FnMut() -> i32>(mut f: F) -> i32 {
86
f()
97
}

tests/ui/unboxed-closures/unboxed-closures-blanket-fn.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#![allow(unused_variables)]
33
// Test that you can supply `&F` where `F: Fn()`.
44

5-
#![feature(lang_items)]
6-
75
fn a<F:Fn() -> i32>(f: F) -> i32 {
86
f()
97
}

0 commit comments

Comments
 (0)