Skip to content

Commit af2c8b8

Browse files
committed
Re-introduce whitelist_recursively (with deprecation notice)
Seems like an oversight from rust-lang#1990. Fixes rust-lang#2022.
1 parent bf61569 commit af2c8b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,12 @@ impl Builder {
696696
self
697697
}
698698

699+
/// Deprecated alias for allowlist_recursively.
700+
#[deprecated(note = "Use allowlist_recursively instead")]
701+
pub fn whitelist_recursively(self, doit: bool) -> Self {
702+
self.allowlist_recursively(doit)
703+
}
704+
699705
/// Generate `#[macro_use] extern crate objc;` instead of `use objc;`
700706
/// in the prologue of the files generated from objective-c files
701707
pub fn objc_extern_crate(mut self, doit: bool) -> Self {

0 commit comments

Comments
 (0)