Skip to content

Commit f499192

Browse files
author
bors-servo
authored
Auto merge of #108 - fitzgen:remove-dtor-attrs, r=emilio
Remove dtor attrs r? @emilio
2 parents 8f8dc0f + 28dbdfa commit f499192

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/lib.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ impl Builder {
5757
self.clang_arg(header)
5858
}
5959

60-
pub fn match_pat<T: Into<String>>(mut self, arg: T) -> Builder {
61-
self.options.match_pat.insert(arg.into());
62-
self
63-
}
64-
6560
pub fn hide_type<T: Into<String>>(mut self, arg: T) -> Builder {
6661
self.options.hidden_types.insert(arg.into());
6762
self
@@ -112,11 +107,6 @@ impl Builder {
112107
self
113108
}
114109

115-
pub fn dtor_attr<T: Into<String>>(mut self, attr: T) -> Builder {
116-
self.options.dtor_attrs.push(attr.into());
117-
self
118-
}
119-
120110
pub fn forbid_unknown_types(mut self) -> Builder {
121111
self.options.fail_on_unknown_type = true;
122112
self
@@ -159,7 +149,6 @@ impl Builder {
159149
/// Deprecated - use a `Builder` instead
160150
#[derive(Debug)]
161151
pub struct BindgenOptions {
162-
pub match_pat: HashSet<String>,
163152
pub hidden_types: HashSet<String>,
164153
pub opaque_types: HashSet<String>,
165154
pub whitelisted_types: RegexSet,
@@ -186,15 +175,12 @@ pub struct BindgenOptions {
186175
pub msvc_mangling: bool,
187176
pub override_enum_ty: String,
188177
pub raw_lines: Vec<String>,
189-
/// Attributes for a type with destructor
190-
pub dtor_attrs: Vec<String>,
191178
pub clang_args: Vec<String>,
192179
}
193180

194181
impl Default for BindgenOptions {
195182
fn default() -> BindgenOptions {
196183
BindgenOptions {
197-
match_pat: Default::default(),
198184
hidden_types: Default::default(),
199185
opaque_types: Default::default(),
200186
whitelisted_types: Default::default(),
@@ -217,7 +203,6 @@ impl Default for BindgenOptions {
217203
namespaced_constants: true,
218204
msvc_mangling: false,
219205
raw_lines: vec![],
220-
dtor_attrs: vec![],
221206
clang_args: vec![],
222207
}
223208
}

0 commit comments

Comments
 (0)