diff options
Diffstat (limited to 'vendor/syn/src/lookahead.rs')
-rw-r--r-- | vendor/syn/src/lookahead.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/syn/src/lookahead.rs b/vendor/syn/src/lookahead.rs index 0cf5cf5a8..e89a4c7fd 100644 --- a/vendor/syn/src/lookahead.rs +++ b/vendor/syn/src/lookahead.rs @@ -24,7 +24,7 @@ use std::cell::RefCell; /// # Example /// /// ``` -/// use syn::{ConstParam, Ident, Lifetime, LifetimeDef, Result, Token, TypeParam}; +/// use syn::{ConstParam, Ident, Lifetime, LifetimeParam, Result, Token, TypeParam}; /// use syn::parse::{Parse, ParseStream}; /// /// // A generic parameter, a single one of the comma-separated elements inside @@ -40,7 +40,7 @@ use std::cell::RefCell; /// // | ^ /// enum GenericParam { /// Type(TypeParam), -/// Lifetime(LifetimeDef), +/// Lifetime(LifetimeParam), /// Const(ConstParam), /// } /// @@ -65,7 +65,7 @@ pub struct Lookahead1<'a> { comparisons: RefCell<Vec<&'static str>>, } -pub fn new(scope: Span, cursor: Cursor) -> Lookahead1 { +pub(crate) fn new(scope: Span, cursor: Cursor) -> Lookahead1 { Lookahead1 { scope, cursor, @@ -162,7 +162,7 @@ impl<S> IntoSpans<S> for TokenMarker { } } -pub fn is_delimiter(cursor: Cursor, delimiter: Delimiter) -> bool { +pub(crate) fn is_delimiter(cursor: Cursor, delimiter: Delimiter) -> bool { cursor.group(delimiter).is_some() } |