@@ -503,8 +503,8 @@ pub enum Ast {
503503 Dot ( Box < Span > ) ,
504504 /// A single zero-width assertion.
505505 Assertion ( Box < Assertion > ) ,
506- #[ cfg( feature = "look-behinds" ) ]
507506 /// A single look-around regular expression.
507+ #[ cfg( feature = "look-behinds" ) ]
508508 LookAround ( Box < LookAround > ) ,
509509 /// A single Unicode character class, e.g., `\pL` or `\p{Greek}`.
510510 ClassUnicode ( Box < ClassUnicode > ) ,
@@ -1384,6 +1384,7 @@ pub enum AssertionKind {
13841384/// A single zero-width look-around.
13851385#[ derive( Clone , Debug , Eq , PartialEq ) ]
13861386#[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
1387+ #[ cfg( feature = "look-behinds" ) ]
13871388pub struct LookAround {
13881389 /// The span of this look-around.
13891390 pub span : Span ,
@@ -1396,6 +1397,7 @@ pub struct LookAround {
13961397/// A look-around kind.
13971398#[ derive( Clone , Debug , Eq , PartialEq ) ]
13981399#[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
1400+ #[ cfg( feature = "look-behinds" ) ]
13991401pub enum LookAroundKind {
14001402 /// `(?<=...)`
14011403 PositiveLookBehind ,
0 commit comments