Skip to content

Commit 1852389

Browse files
committed
libstd: deny(elided_lifetimes_in_paths), fixes in cloudabi
1 parent c3e2d2c commit 1852389

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/libstd/sys/cloudabi/backtrace.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ impl fmt::Display for UnwindError {
3333
// tracing
3434
pub 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 {

src/libstd/sys/cloudabi/shims/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn unsetenv(_: &OsStr) -> io::Result<()> {
3434

3535
pub 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

0 commit comments

Comments
 (0)