libstd: deny(elided_lifetimes_in_paths), fixes in cloudabi
This commit is contained in:
parent
379c380a60
commit
6f4df8c0c2
@ -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 {
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user