From f82a549ad60cb90cca51f55c72fde8e3089ac9c1 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Sat, 29 Dec 2018 18:48:04 +0100 Subject: [PATCH] mark the method combinators as deprecated --- src/methods.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/methods.rs b/src/methods.rs index 9e31fd0a1..8e5afc67d 100644 --- a/src/methods.rs +++ b/src/methods.rs @@ -107,6 +107,7 @@ /// //prefix them with 'pub' to make the methods public /// method!(pub my_function,&[u8], &[u8]>, tag!("abcd")); /// ``` +#[deprecated(since = "4.2.0", note = "Please use the nom-methods crate instead")] #[macro_export(local_inner_macros)] macro_rules! method ( // Non-public immutable self @@ -256,6 +257,7 @@ macro_rules! method ( ); /// Used to called methods then move self back into self +#[deprecated(since = "4.2.0", note = "Please use the nom-methods crate instead")] #[macro_export(local_inner_macros)] macro_rules! call_m ( ($i:expr, $self_:ident.$method:ident) => ( @@ -278,6 +280,7 @@ macro_rules! call_m ( /// `apply_m!(self.my_function, arg1, arg2, ...)` becomes `self.my_function(input, arg1, arg2, ...)` /// /// Supports up to 6 arguments +#[deprecated(since = "4.2.0", note = "Please use the nom-methods crate instead")] #[macro_export(local_inner_macros)] macro_rules! apply_m ( ($i:expr, $self_:ident.$method:ident, $($args:expr),* ) => ( { let (tmp, res) = $self_.$method( $i, $($args),* ); $self_ = tmp; res } );