Skip to content

Commit eb1c62b

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

14 files changed

+15
-12
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/target-feature/abi-incompatible-target-feature-flag-enable.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//@[x86] compile-flags: --target=x86_64-unknown-linux-gnu -Ctarget-feature=+soft-float
77
//@[x86] needs-llvm-components: x86
88
//@[riscv] compile-flags: --target=riscv32e-unknown-none-elf -Ctarget-feature=+d
9+
// FIXME(#147881): *disable* the feature again for minicore as otherwise that will fail to build.
10+
//@[riscv] core-stubs-compile-flags: -Ctarget-feature=-d
911
//@[riscv] needs-llvm-components: riscv
1012
//@ ignore-backends: gcc
1113
//@ add-core-stubs

tests/ui/target-feature/tied-features-cli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
//@ [four] compile-flags: -C target-feature=-paca,+pacg -C target-feature=+paca
1414
//@ ignore-backends: gcc
1515
//@ add-core-stubs
16+
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
17+
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
1618
#![feature(no_core)]
1719
#![no_core]
1820

tests/ui/target-feature/tied-features-no-implication-1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
//@[pacg] compile-flags: -Ctarget-feature=+pacg
66
//@ ignore-backends: gcc
77
//@ add-core-stubs
8+
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
9+
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
810
#![feature(no_core)]
911
#![no_core]
1012

tests/ui/target-feature/tied-features-no-implication.pacg.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0428]: the name `foo` is defined multiple times
2-
--> $DIR/tied-features-no-implication.rs:34:1
2+
--> $DIR/tied-features-no-implication.rs:31:1
33
|
44
LL | fn foo() {}
55
| -------- previous definition of the value `foo` here

0 commit comments

Comments
 (0)