From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/issues/issue-49851/compiler-builtins-error.rs | 13 +++++++++++++ .../issues/issue-49851/compiler-builtins-error.stderr | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tests/ui/issues/issue-49851/compiler-builtins-error.rs create mode 100644 tests/ui/issues/issue-49851/compiler-builtins-error.stderr (limited to 'tests/ui/issues/issue-49851') diff --git a/tests/ui/issues/issue-49851/compiler-builtins-error.rs b/tests/ui/issues/issue-49851/compiler-builtins-error.rs new file mode 100644 index 000000000..4e56cca33 --- /dev/null +++ b/tests/ui/issues/issue-49851/compiler-builtins-error.rs @@ -0,0 +1,13 @@ +//~ ERROR can't find crate for `core` +//~^ ERROR can't find crate for `compiler_builtins` + +// compile-flags: --target thumbv7em-none-eabihf +// needs-llvm-components: arm +#![deny(unsafe_code)] +#![deny(warnings)] +#![no_std] + +extern crate cortex_m; +//~^ ERROR can't find crate for `cortex_m` + +fn main() {} diff --git a/tests/ui/issues/issue-49851/compiler-builtins-error.stderr b/tests/ui/issues/issue-49851/compiler-builtins-error.stderr new file mode 100644 index 000000000..fcfa2bf11 --- /dev/null +++ b/tests/ui/issues/issue-49851/compiler-builtins-error.stderr @@ -0,0 +1,19 @@ +error[E0463]: can't find crate for `core` + | + = note: the `thumbv7em-none-eabihf` target may not be installed + = help: consider downloading the target with `rustup target add thumbv7em-none-eabihf` + = help: consider building the standard library from source with `cargo build -Zbuild-std` + +error[E0463]: can't find crate for `compiler_builtins` + +error[E0463]: can't find crate for `cortex_m` + --> $DIR/compiler-builtins-error.rs:10:1 + | +LL | extern crate cortex_m; + | ^^^^^^^^^^^^^^^^^^^^^^ can't find crate + +error: requires `sized` lang_item + +error: aborting due to 4 previous errors + +For more information about this error, try `rustc --explain E0463`. -- cgit v1.2.3