From 07c7e5ffb3c096f80ffede421fb20089fbe7fe3f Mon Sep 17 00:00:00 2001 From: Alexandru RADOVICI Date: Wed, 30 Apr 2025 14:52:15 +0300 Subject: error when using no_mangle on language items add suggestion on how to add a panic breakpoint Co-authored-by: Pat Pannuto delete no_mangle from ui/panic-handler/panic-handler-wrong-location test issue an error for the usage of #[no_mangle] on internal language items delete the comments add newline rephrase note Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com> update error not to leak implementation details delete no_mangle_span Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com> delete commented code --- tests/ui/panic-handler/panic-handler-wrong-location.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/ui/panic-handler') diff --git a/tests/ui/panic-handler/panic-handler-wrong-location.rs b/tests/ui/panic-handler/panic-handler-wrong-location.rs index c91580ae0c4..8fff7067136 100644 --- a/tests/ui/panic-handler/panic-handler-wrong-location.rs +++ b/tests/ui/panic-handler/panic-handler-wrong-location.rs @@ -4,7 +4,6 @@ #![no_main] #[panic_handler] //~ ERROR `panic_impl` lang item must be applied to a function -#[no_mangle] static X: u32 = 42; //~? ERROR `#[panic_handler]` function required, but not found -- cgit 1.4.1-3-g733a5