about summary refs log tree commit diff
path: root/src/test/ui/panic-handler
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-14 11:30:17 +0000
committerbors <bors@rust-lang.org>2021-12-14 11:30:17 +0000
commit404c8471aba60c2d837fa728e7c729a0f52d5830 (patch)
treefea112a2f7f32d0c68df6fe15f0440bb49436ff4 /src/test/ui/panic-handler
parent83b32f27fc6c34b0b411f47be31ab4ae07eafed4 (diff)
parent1dde0dbbf5ab3698240749f418b7270de5c31def (diff)
downloadrust-404c8471aba60c2d837fa728e7c729a0f52d5830.tar.gz
rust-404c8471aba60c2d837fa728e7c729a0f52d5830.zip
Auto merge of #91902 - matthiaskrgr:rollup-hjjyhow, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #91529 (add BinaryHeap::try_reserve and BinaryHeap::try_reserve_exact)
 - #91820 (Suggest to specify a target triple when lang item is missing)
 - #91851 (Make `MaybeUninit::zeroed` `const`)
 - #91875 (Use try_normalize_erasing_regions in RevealAllVisitor)
 - #91887 (Remove `in_band_lifetimes` from `rustc_const_eval`)
 - #91892 (Fix HashStable implementation on InferTy)
 - #91893 (Remove `in_band_lifetimes` from `rustc_hir`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
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