File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
79
79
#[ lang = "panic" ]
80
80
#[ track_caller]
81
81
#[ no_mangle]
82
- pub fn panic ( _msg : & str ) -> ! {
82
+ pub fn panic ( _msg : & ' static str ) -> ! {
83
83
unsafe {
84
84
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
85
85
intrinsics:: abort ( ) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ mod intrinsics {
64
64
#[ lang = "panic" ]
65
65
#[ track_caller]
66
66
#[ no_mangle]
67
- pub fn panic ( _msg : & str ) -> ! {
67
+ pub fn panic ( _msg : & ' static str ) -> ! {
68
68
unsafe {
69
69
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
70
70
libc:: fflush ( libc:: stdout) ;
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ impl Add for isize {
177
177
#[ lang = "panic" ]
178
178
#[ track_caller]
179
179
#[ no_mangle]
180
- pub fn panic ( _msg : & str ) -> ! {
180
+ pub fn panic ( _msg : & ' static str ) -> ! {
181
181
unsafe {
182
182
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
183
183
intrinsics:: abort ( ) ;
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
82
82
#[ lang = "panic" ]
83
83
#[ track_caller]
84
84
#[ no_mangle]
85
- pub fn panic ( _msg : & str ) -> ! {
85
+ pub fn panic ( _msg : & ' static str ) -> ! {
86
86
unsafe {
87
87
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
88
88
intrinsics:: abort ( ) ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
76
76
#[ lang = "panic" ]
77
77
#[ track_caller]
78
78
#[ no_mangle]
79
- pub fn panic ( _msg : & str ) -> ! {
79
+ pub fn panic ( _msg : & ' static str ) -> ! {
80
80
unsafe {
81
81
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
82
82
intrinsics:: abort ( ) ;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ mod intrinsics {
62
62
#[ lang = "panic" ]
63
63
#[ track_caller]
64
64
#[ no_mangle]
65
- pub fn panic ( _msg : & str ) -> ! {
65
+ pub fn panic ( _msg : & ' static str ) -> ! {
66
66
unsafe {
67
67
// Panicking is expected iff overflow checking is enabled.
68
68
#[ cfg( debug_assertions) ]
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ mod intrinsics {
66
66
#[ lang = "panic" ]
67
67
#[ track_caller]
68
68
#[ no_mangle]
69
- pub fn panic ( _msg : & str ) -> ! {
69
+ pub fn panic ( _msg : & ' static str ) -> ! {
70
70
unsafe {
71
71
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
72
72
libc:: fflush ( libc:: stdout) ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ mod intrinsics {
72
72
#[ lang = "panic" ]
73
73
#[ track_caller]
74
74
#[ no_mangle]
75
- pub fn panic ( _msg : & str ) -> ! {
75
+ pub fn panic ( _msg : & ' static str ) -> ! {
76
76
unsafe {
77
77
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
78
78
libc:: fflush ( libc:: stdout) ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
76
76
#[ lang = "panic" ]
77
77
#[ track_caller]
78
78
#[ no_mangle]
79
- pub fn panic ( _msg : & str ) -> ! {
79
+ pub fn panic ( _msg : & ' static str ) -> ! {
80
80
unsafe {
81
81
libc:: puts ( "Panicking\0 " as * const str as * const u8 ) ;
82
82
intrinsics:: abort ( ) ;
You can’t perform that action at this time.
0 commit comments