diff --git a/examples/group/src/main.rs b/examples/group/src/main.rs index 163e0f3..eb9f86b 100644 --- a/examples/group/src/main.rs +++ b/examples/group/src/main.rs @@ -1,4 +1,3 @@ -#![feature(proc_macro_hygiene)] #![warn(rust_2018_idioms)] use pear::macros::{parser, switch, parse}; diff --git a/examples/ini/src/main.rs b/examples/ini/src/main.rs index cdbb650..805d9af 100644 --- a/examples/ini/src/main.rs +++ b/examples/ini/src/main.rs @@ -1,4 +1,3 @@ -#![feature(proc_macro_hygiene)] #![warn(rust_2018_idioms)] use std::fmt; diff --git a/examples/json/src/main.rs b/examples/json/src/main.rs index d004282..a105af9 100644 --- a/examples/json/src/main.rs +++ b/examples/json/src/main.rs @@ -1,4 +1,3 @@ -#![feature(proc_macro_hygiene)] #![warn(rust_2018_idioms)] use std::collections::HashMap; diff --git a/examples/parens/src/main.rs b/examples/parens/src/main.rs index beb247f..1b307a5 100644 --- a/examples/parens/src/main.rs +++ b/examples/parens/src/main.rs @@ -1,4 +1,3 @@ -#![feature(proc_macro_hygiene)] #![warn(rust_2018_idioms)] use pear::input::{Text, Result}; diff --git a/lib/src/input/string.rs b/lib/src/input/string.rs index 1e64486..0c74d41 100644 --- a/lib/src/input/string.rs +++ b/lib/src/input/string.rs @@ -1,7 +1,5 @@ pub use crate::input::{Input, Token, Slice, ParserInfo}; -impl<'a, 'b: 'a> Slice<&'a str> for &'b str { } - // ident_impl_token!(&str); impl<'a> Input for &'a str { diff --git a/lib/src/input/text.rs b/lib/src/input/text.rs index 38c8d63..6212687 100644 --- a/lib/src/input/text.rs +++ b/lib/src/input/text.rs @@ -42,8 +42,6 @@ impl<'a> From<&'a str> for Text<'a> { } } -impl<'a, 'b> Slice> for &'b str { } - // ident_impl_token!(Text<'_>); impl Rewind for Text<'_> { diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 27b9615..70053b4 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1,6 +1,3 @@ -#![feature(proc_macro_hygiene)] -#![feature(specialization)] - #![warn(rust_2018_idioms)] #[macro_use] pub mod macros; diff --git a/lib/tests/parsers.rs b/lib/tests/parsers.rs index 833a13c..0058f4c 100644 --- a/lib/tests/parsers.rs +++ b/lib/tests/parsers.rs @@ -11,7 +11,7 @@ fn take_until_str<'a>(input: &mut Text<'a>, s: &str) -> Result<'a, &'a str> { } #[parser] -fn test_until<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> { +fn test_until<'a>(input: &mut Text<'a>, s: &str, r: &'a str) -> Result<'a, &'a str> { (take_until_str(s)?, eat_slice(r)?).0 } @@ -43,7 +43,7 @@ fn take_until_and_str<'a>(input: &mut Text<'a>, s: &str) -> Result<'a, &'a str> } #[parser] -fn test_until_and<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> { +fn test_until_and<'a>(input: &mut Text<'a>, s: &'a str, r: &'a str) -> Result<'a, &'a str> { (take_until_and_str(s)?, eat_slice(r)?).0 } @@ -69,7 +69,7 @@ fn test_while_slice_and() { } #[parser] -fn test_until_window<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> { +fn test_until_window<'a>(input: &mut Text<'a>, s: &'a str, r: &'a str) -> Result<'a, &'a str> { (take_until_slice(s)?, eat_slice(r)?).0 }