Skip to content

Commit e876f17

Browse files
committed
silence ffi-check for private _PyCoLineInstrumentationData on 3.13 (#5063)
1 parent a177916 commit e876f17

File tree

1 file changed

+10
-0
lines changed
  • pyo3-ffi-check/macro/src

1 file changed

+10
-0
lines changed

pyo3-ffi-check/macro/src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ pub fn for_all_structs(input: proc_macro::TokenStream) -> proc_macro::TokenStrea
6262
continue;
6363
}
6464

65+
if struct_name == "_PyCoLineInstrumentationData"
66+
&& pyo3_build_config::get().version == PY_3_13
67+
{
68+
// private type, fields changed name in 3.13.2 -> 3.13.3
69+
//
70+
// PyO3 0.25 will remove this struct, for 0.24 we don't really care the names
71+
// changed, the size stayed the same.
72+
continue;
73+
}
74+
6575
let struct_ident = Ident::new(struct_name, Span::call_site());
6676
output.extend(quote!(#macro_name!(#struct_ident);));
6777
}

0 commit comments

Comments
 (0)