diff options
| author | bors <bors@rust-lang.org> | 2017-12-25 04:55:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-25 04:55:57 +0000 |
| commit | a6fc84440f3353b1090dc52d7859136880db89ec (patch) | |
| tree | ae9034dfdbd3fa7ad9b228758573a9d5b1f2b584 /src/libstd/sys_common | |
| parent | ae65dcc30f421fd91b9e2d67cf77c86bfb20ee3a (diff) | |
| parent | 60e66290451644e81323daa7cf03c337a6569c83 (diff) | |
| download | rust-a6fc84440f3353b1090dc52d7859136880db89ec.tar.gz rust-a6fc84440f3353b1090dc52d7859136880db89ec.zip | |
Auto merge of #46914 - mikeyhew:raw_pointer_self, r=arielb1
Convert warning about `*const _` to a future-compat lint #46664 was merged before I could convert the soft warning about method lookup on `*const _` into a future-compatibility lint. This PR makes that change. fixes #46837 tracking issue for the future-compatibility lint: #46906 r? @arielb1
Diffstat (limited to 'src/libstd/sys_common')
| -rw-r--r-- | src/libstd/sys_common/gnu/libbacktrace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys_common/gnu/libbacktrace.rs b/src/libstd/sys_common/gnu/libbacktrace.rs index 75c6bd5d2a2..6ad3af6aee1 100644 --- a/src/libstd/sys_common/gnu/libbacktrace.rs +++ b/src/libstd/sys_common/gnu/libbacktrace.rs @@ -73,7 +73,7 @@ pub fn resolve_symname<F>(frame: Frame, "failed to allocate libbacktrace state") ) } - let mut data = ptr::null(); + let mut data: *const libc::c_char = ptr::null(); let data_addr = &mut data as *mut *const libc::c_char; let ret = unsafe { backtrace_syminfo(state, |
