summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-02-27 10:53:24 +0100
committerGitHub <noreply@github.com>2018-02-27 10:53:24 +0100
commitd5ca4e7e90a3a5ebfeff1041c7eaeb7596d9c1a5 (patch)
tree79fcef4362d703720ed6066d02e131e0ddb1b5d2
parent3379a90a2d88c7d6333d64fe33ea1bd992904c71 (diff)
parent5c895698c7defb713436709a167b0cc402b109b2 (diff)
Merge pull request #1264 from emilio/deprecated-proper. r=fitzgen
lib: Use #[deprecated] properly.
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1cd64b2e..8665c2cd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -673,7 +673,7 @@ impl Builder {
/// Hide the given type from the generated bindings. Regular expressions are
/// supported.
- #[deprecated = "Use blacklist_type instead"]
+ #[deprecated(note = "Use blacklist_type instead")]
pub fn hide_type<T: AsRef<str>>(self, arg: T) -> Builder {
self.blacklist_type(arg)
}
@@ -695,7 +695,7 @@ impl Builder {
/// Whitelist the given type so that it (and all types that it transitively
/// refers to) appears in the generated bindings. Regular expressions are
/// supported.
- #[deprecated = "use whitelist_type instead"]
+ #[deprecated(note = "use whitelist_type instead")]
pub fn whitelisted_type<T: AsRef<str>>(self, arg: T) -> Builder {
self.whitelist_type(arg)
}
@@ -719,7 +719,7 @@ impl Builder {
/// Whitelist the given function.
///
/// Deprecated: use whitelist_function instead.
- #[deprecated = "use whitelist_function instead"]
+ #[deprecated(note = "use whitelist_function instead")]
pub fn whitelisted_function<T: AsRef<str>>(self, arg: T) -> Builder {
self.whitelist_function(arg)
}
@@ -735,7 +735,7 @@ impl Builder {
/// Whitelist the given variable.
///
/// Deprecated: use whitelist_var instead.
- #[deprecated = "use whitelist_var instead"]
+ #[deprecated(note = "use whitelist_var instead")]
pub fn whitelisted_var<T: AsRef<str>>(self, arg: T) -> Builder {
self.whitelist_var(arg)
}