Skip to content

Commit

Permalink
libstd: deny(elided_lifetimes_in_paths), fixes in cloudabi
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Mar 31, 2019
1 parent c3e2d2c commit 1852389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/libstd/sys/cloudabi/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/cloudabi/shims/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 1852389

Please sign in to comment.