remove some unnecessary feature(lang_items)
This commit is contained in:
parent
71d89c1cf4
commit
eb1c62b4fb
14 changed files with 15 additions and 12 deletions
|
|
@ -7,7 +7,7 @@
|
|||
//@ [msp430] needs-llvm-components: msp430
|
||||
//@ [msp430] compile-flags: --target=msp430-none-elf --crate-type=rlib
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(no_core, lang_items, intrinsics, staged_api, rustc_attrs)]
|
||||
#![feature(no_core, intrinsics, staged_api, rustc_attrs)]
|
||||
#![no_core]
|
||||
#![crate_type = "lib"]
|
||||
#![stable(feature = "intrinsics_for_test", since = "3.3.3")]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(no_core, rustc_attrs, lang_items)]
|
||||
#![feature(no_core, rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
#![crate_type = "lib"]
|
||||
#![no_std]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// We should fail to compute alignment for types aligned higher than usize::MAX.
|
||||
// We can't handle alignments that require all 32 bits, so this only affects 16-bit.
|
||||
|
||||
#![feature(lang_items, no_core)]
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
//@ ignore-backends: gcc
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(cfg_sanitize, no_core, lang_items)]
|
||||
#![feature(cfg_sanitize, no_core)]
|
||||
#![no_core]
|
||||
|
||||
extern crate minicore;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
//@[thread]compile-flags: -Zsanitizer=thread
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(cfg_sanitize, no_core, lang_items)]
|
||||
#![feature(cfg_sanitize, no_core)]
|
||||
#![crate_type="lib"]
|
||||
#![no_core]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
//@ add-core-stubs
|
||||
//@ check-pass
|
||||
|
||||
#![feature(no_core, lang_items)]
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
//@[x86] compile-flags: --target=x86_64-unknown-linux-gnu -Ctarget-feature=+soft-float
|
||||
//@[x86] needs-llvm-components: x86
|
||||
//@[riscv] compile-flags: --target=riscv32e-unknown-none-elf -Ctarget-feature=+d
|
||||
// FIXME(#147881): *disable* the feature again for minicore as otherwise that will fail to build.
|
||||
//@[riscv] core-stubs-compile-flags: -Ctarget-feature=-d
|
||||
//@[riscv] needs-llvm-components: riscv
|
||||
//@ ignore-backends: gcc
|
||||
//@ add-core-stubs
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
//@ [four] compile-flags: -C target-feature=-paca,+pacg -C target-feature=+paca
|
||||
//@ ignore-backends: gcc
|
||||
//@ add-core-stubs
|
||||
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
|
||||
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//@[pacg] compile-flags: -Ctarget-feature=+pacg
|
||||
//@ ignore-backends: gcc
|
||||
//@ add-core-stubs
|
||||
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
|
||||
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0428]: the name `foo` is defined multiple times
|
||||
--> $DIR/tied-features-no-implication.rs:34:1
|
||||
--> $DIR/tied-features-no-implication.rs:31:1
|
||||
|
|
||||
LL | fn foo() {}
|
||||
| -------- previous definition of the value `foo` here
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
//@[pacg] compile-flags: -Ctarget-feature=+pacg
|
||||
//@ ignore-backends: gcc
|
||||
//@ add-core-stubs
|
||||
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
|
||||
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
//@ run-pass
|
||||
#![feature(lang_items)]
|
||||
|
||||
fn a<F:Fn(isize, isize) -> isize>(f: F) -> isize {
|
||||
f(1, 2)
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
#![allow(unused_variables)]
|
||||
// Test that you can supply `&F` where `F: FnMut()`.
|
||||
|
||||
#![feature(lang_items)]
|
||||
|
||||
fn a<F:FnMut() -> i32>(mut f: F) -> i32 {
|
||||
f()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
#![allow(unused_variables)]
|
||||
// Test that you can supply `&F` where `F: Fn()`.
|
||||
|
||||
#![feature(lang_items)]
|
||||
|
||||
fn a<F:Fn() -> i32>(f: F) -> i32 {
|
||||
f()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue