File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -477,8 +477,7 @@ impl Cursor {
477
477
478
478
/// Is the referent an inlined function?
479
479
pub fn is_inlined_function ( & self ) -> bool {
480
- clang_Cursor_isFunctionInlined:: is_loaded ( ) &&
481
- unsafe { clang_Cursor_isFunctionInlined ( self . x ) != 0 }
480
+ unsafe { clang_Cursor_isFunctionInlined ( self . x ) != 0 }
482
481
}
483
482
484
483
/// Get the width of this cursor's referent bit field, or `None` if the
@@ -1245,11 +1244,7 @@ impl Type {
1245
1244
pub fn named ( & self ) -> Type {
1246
1245
unsafe {
1247
1246
Type {
1248
- x : if clang_Type_getNamedType:: is_loaded ( ) {
1249
- clang_Type_getNamedType ( self . x )
1250
- } else {
1251
- self . x
1252
- } ,
1247
+ x : clang_Type_getNamedType ( self . x ) ,
1253
1248
}
1254
1249
}
1255
1250
}
@@ -1960,10 +1955,6 @@ pub struct EvalResult {
1960
1955
impl EvalResult {
1961
1956
/// Evaluate `cursor` and return the result.
1962
1957
pub fn new ( cursor : Cursor ) -> Option < Self > {
1963
- if !clang_Cursor_Evaluate:: is_loaded ( ) {
1964
- return None ;
1965
- }
1966
-
1967
1958
// Work around https://bugs.llvm.org/show_bug.cgi?id=42532, see:
1968
1959
// * https://github.com/rust-lang/rust-bindgen/issues/283
1969
1960
// * https://github.com/rust-lang/rust-bindgen/issues/1590
You can’t perform that action at this time.
0 commit comments