@@ -71,7 +71,6 @@ unsafe extern "Rust" {
7171/// with our panic count.
7272#[ cfg( not( test) ) ]
7373#[ rustc_std_internal_symbol]
74- #[ allow( missing_panic_entrypoint) ]
7574extern "C" fn __rust_drop_panic ( ) -> ! {
7675 rtabort ! ( "Rust panics must be rethrown" ) ;
7776}
@@ -80,7 +79,6 @@ extern "C" fn __rust_drop_panic() -> ! {
8079/// object which does not correspond to a Rust panic.
8180#[ cfg( not( test) ) ]
8281#[ rustc_std_internal_symbol]
83- #[ allow( missing_panic_entrypoint) ]
8482extern "C" fn __rust_foreign_exception ( ) -> ! {
8583 rtabort ! ( "Rust cannot catch foreign exceptions" ) ;
8684}
@@ -621,7 +619,6 @@ pub fn panicking() -> bool {
621619/// Entry point of panics from the core crate (`panic_impl` lang item).
622620#[ cfg( not( any( test, doctest) ) ) ]
623621#[ panic_handler]
624- #[ allow( missing_panic_entrypoint) ]
625622pub fn panic_handler ( info : & core:: panic:: PanicInfo < ' _ > ) -> ! {
626623 struct FormatStringPayload < ' a > {
627624 inner : & ' a core:: panic:: PanicMessage < ' a > ,
@@ -784,7 +781,6 @@ fn payload_as_str(payload: &dyn Any) -> &str {
784781/// panics, panic hooks, and finally dispatching to the panic runtime to either
785782/// abort or unwind.
786783#[ optimize( size) ]
787- #[ allow( missing_panic_entrypoint) ]
788784fn panic_with_hook (
789785 payload : & mut dyn PanicPayload ,
790786 location : & Location < ' _ > ,
@@ -854,7 +850,6 @@ fn panic_with_hook(
854850/// This is the entry point for `resume_unwind`.
855851/// It just forwards the payload to the panic runtime.
856852#[ cfg_attr( panic = "immediate-abort" , inline) ]
857- #[ allow( missing_panic_entrypoint) ]
858853pub fn resume_unwind ( payload : Box < dyn Any + Send > ) -> ! {
859854 panic_count:: increase ( false ) ;
860855
0 commit comments