about summary refs log tree commit diff
path: root/src/test/ui/panic-handler
diff options
context:
space:
mode:
authorLucas Kent <rubickent@gmail.com>2021-12-12 13:04:00 +1100
committerLucas Kent <rubickent@gmail.com>2021-12-14 00:04:15 +1100
commitfae40c507068b2d7aa5dc7bda729762e536aa8c2 (patch)
tree78562195a27fca1282342d96a9cc7a40503d5735 /src/test/ui/panic-handler
parent6d6d0899c8bf9d321ffa12426ca7ae7e3e15478a (diff)
downloadrust-fae40c507068b2d7aa5dc7bda729762e536aa8c2.tar.gz
rust-fae40c507068b2d7aa5dc7bda729762e536aa8c2.zip
Suggest to specify a target triple when eh_personality lang item is missing
Diffstat (limited to 'src/test/ui/panic-handler')
-rw-r--r--src/test/ui/panic-handler/weak-lang-item.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/panic-handler/weak-lang-item.stderr b/src/test/ui/panic-handler/weak-lang-item.stderr
index 1f14b20e451..cc25f08e33a 100644
--- a/src/test/ui/panic-handler/weak-lang-item.stderr
+++ b/src/test/ui/panic-handler/weak-lang-item.stderr
@@ -11,6 +11,9 @@ LL | extern crate core as other_core;
    |
 
 error: language item required, but not found: `eh_personality`
+   |
+   = note: this can occur when a binary crate with `#![no_std]` is compiled for a target where `eh_personality` is defined in the standard library
+   = help: you may be able to compile for a target that doesn't need `eh_personality`, specify a target with `--target` or in `.cargo/config`
 
 error: `#[panic_handler]` function required, but not found