From 4102a9e624596828aa36f4b9c487be928687b561 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 4 Oct 2018 14:43:07 +0200 Subject: [PATCH] bump clang-sys to 0.24 Signed-off-by: Igor Gnatenko --- tests/clang.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/clang.rs b/tests/clang.rs index 8578811..93cb8dc 100644 --- a/tests/clang.rs +++ b/tests/clang.rs @@ -149,11 +149,11 @@ unsafe fn visit_children(cursor: CXCursor, mut f: F) unsafe fn location_in_scope(r: CXSourceRange) -> bool { let start=clang_getRangeStart(r); - let mut file=CXFile(ptr::null_mut()); + let mut file: CXFile=ptr::null_mut(); clang_getSpellingLocation(start,&mut file,ptr::null_mut(),ptr::null_mut(),ptr::null_mut()); clang_Location_isFromMainFile(start)!=0 && clang_Location_isInSystemHeader(start)==0 - && file.0!=ptr::null_mut() + && file!=ptr::null_mut() } /// tokenize_range_adjust can be used to work around LLVM bug 9069 -- 2.19.0