@@ -225,35 +225,6 @@ options! {
225
225
as_args: "--use-reference-newtype-wrapper" ,
226
226
} ,
227
227
228
- /// Use a newtype wrapper to denote types with "missing" C++ template
229
- /// arguments. Sometimes bindgen is unable to see the purpose of
230
- /// a given template argument, because it doesn't translate to
231
- /// a real purpose in the generated Rust code (e.g. for SFINAE type
232
- /// tricks for compile-time evaluation on the C++ side). Bindgen
233
- /// thus omits these template parameters. But this can cause problems
234
- /// for postprocessors which expect to see all template parameters;
235
- /// when this option is enabled we denote these types using a newtype
236
- /// wrapper.
237
- /// The newtype wrapper will be a fake type called
238
- /// `bindgen_marker_MissingTemplateParam`.
239
- /// It's assumed that you will replace this with some
240
- /// real sensible newtype wrapper of your own, either by post-processing
241
- /// the output of bindgen, or by using a `use` statemet injected using
242
- /// `--module-raw-lines` or similar.
243
- use_unused_template_param_newtype_wrapper: bool {
244
- methods: {
245
- /// If this is true, wrap types that don't have a complete set
246
- /// of template parameters in a fake newtype
247
- /// wrapper which post-processors can replace with something
248
- /// more sensible.
249
- pub fn use_unused_template_param_newtype_wrapper( mut self , doit: bool ) -> Builder {
250
- self . options. use_unused_template_param_newtype_wrapper = doit;
251
- self
252
- }
253
- } ,
254
- as_args: "--use-unused-template-param-newtype-wrapper" ,
255
- } ,
256
-
257
228
/// Whether we should distinguish between C++'s 'char16_t' and 'u16'.
258
229
/// The C++ type `char16_t` is its own special type; it's not a typedef
259
230
/// of some other integer (this differs from C).
0 commit comments