libstd: deny(elided_lifetimes_in_paths), fixes in cloudabi

This commit is contained in:
Mazdak Farrokhzad 2019-03-30 10:30:57 +01:00
parent 379c380a60
commit 6f4df8c0c2
2 changed files with 4 additions and 3 deletions

View File

@ -33,8 +33,9 @@ impl fmt::Display for UnwindError {
// tracing
pub fn unwind_backtrace(frames: &mut [Frame]) -> io::Result<(usize, BacktraceContext)> {
let mut cx = Context { idx: 0, frames };
let result_unwind =
unsafe { uw::_Unwind_Backtrace(trace_fn, &mut cx as *mut Context as *mut libc::c_void) };
let result_unwind = unsafe {
uw::_Unwind_Backtrace(trace_fn, &mut cx as *mut Context<'_> as *mut libc::c_void)
};
// See libunwind:src/unwind/Backtrace.c for the return values.
// No, there is no doc.
match result_unwind {

View File

@ -34,7 +34,7 @@ pub fn unsetenv(_: &OsStr) -> io::Result<()> {
pub struct SplitPaths<'a>(&'a Void);
pub fn split_paths(_unparsed: &OsStr) -> SplitPaths {
pub fn split_paths(_unparsed: &OsStr) -> SplitPaths<'_> {
panic!("unsupported")
}