Skip to content

Commit 5c89569

Browse files
committed
lib: Use #[deprecated] properly.
Fixes rust-lang#1258
1 parent 3379a90 commit 5c89569

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ impl Builder {
673673

674674
/// Hide the given type from the generated bindings. Regular expressions are
675675
/// supported.
676-
#[deprecated = "Use blacklist_type instead"]
676+
#[deprecated(note = "Use blacklist_type instead")]
677677
pub fn hide_type<T: AsRef<str>>(self, arg: T) -> Builder {
678678
self.blacklist_type(arg)
679679
}
@@ -695,7 +695,7 @@ impl Builder {
695695
/// Whitelist the given type so that it (and all types that it transitively
696696
/// refers to) appears in the generated bindings. Regular expressions are
697697
/// supported.
698-
#[deprecated = "use whitelist_type instead"]
698+
#[deprecated(note = "use whitelist_type instead")]
699699
pub fn whitelisted_type<T: AsRef<str>>(self, arg: T) -> Builder {
700700
self.whitelist_type(arg)
701701
}
@@ -719,7 +719,7 @@ impl Builder {
719719
/// Whitelist the given function.
720720
///
721721
/// Deprecated: use whitelist_function instead.
722-
#[deprecated = "use whitelist_function instead"]
722+
#[deprecated(note = "use whitelist_function instead")]
723723
pub fn whitelisted_function<T: AsRef<str>>(self, arg: T) -> Builder {
724724
self.whitelist_function(arg)
725725
}
@@ -735,7 +735,7 @@ impl Builder {
735735
/// Whitelist the given variable.
736736
///
737737
/// Deprecated: use whitelist_var instead.
738-
#[deprecated = "use whitelist_var instead"]
738+
#[deprecated(note = "use whitelist_var instead")]
739739
pub fn whitelisted_var<T: AsRef<str>>(self, arg: T) -> Builder {
740740
self.whitelist_var(arg)
741741
}

0 commit comments

Comments
 (0)