File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ impl fmt::Display for UnwindError {
3333 // tracing
3434pub fn unwind_backtrace ( frames : & mut [ Frame ] ) -> io:: Result < ( usize , BacktraceContext ) > {
3535 let mut cx = Context { idx : 0 , frames } ;
36- let result_unwind =
37- unsafe { uw:: _Unwind_Backtrace ( trace_fn, & mut cx as * mut Context as * mut libc:: c_void ) } ;
36+ let result_unwind = unsafe {
37+ uw:: _Unwind_Backtrace ( trace_fn, & mut cx as * mut Context < ' _ > as * mut libc:: c_void )
38+ } ;
3839 // See libunwind:src/unwind/Backtrace.c for the return values.
3940 // No, there is no doc.
4041 match result_unwind {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pub fn unsetenv(_: &OsStr) -> io::Result<()> {
3434
3535pub struct SplitPaths < ' a > ( & ' a Void ) ;
3636
37- pub fn split_paths ( _unparsed : & OsStr ) -> SplitPaths {
37+ pub fn split_paths ( _unparsed : & OsStr ) -> SplitPaths < ' _ > {
3838 panic ! ( "unsupported" )
3939}
4040
You can’t perform that action at this time.
0 commit comments