Upgrade rust/crates/regex-syntax to 0.6.18
Test: None
Change-Id: Ibb0a5495aac0d848e661ddd70f729a76b949248f
diff --git a/src/hir/mod.rs b/src/hir/mod.rs
index a2f166c..53d90b8 100644
--- a/src/hir/mod.rs
+++ b/src/hir/mod.rs
@@ -241,8 +241,8 @@
info.set_any_anchored_start(false);
info.set_any_anchored_end(false);
info.set_match_empty(true);
- info.set_literal(true);
- info.set_alternation_literal(true);
+ info.set_literal(false);
+ info.set_alternation_literal(false);
Hir { kind: HirKind::Empty, info: info }
}
@@ -671,8 +671,8 @@
/// true when this HIR expression is either itself a `Literal` or a
/// concatenation of only `Literal`s.
///
- /// For example, `f` and `foo` are literals, but `f+`, `(foo)`, `foo()`
- /// are not (even though that contain sub-expressions that are literals).
+ /// For example, `f` and `foo` are literals, but `f+`, `(foo)`, `foo()`,
+ /// `` are not (even though that contain sub-expressions that are literals).
pub fn is_literal(&self) -> bool {
self.info.is_literal()
}
@@ -682,8 +682,8 @@
/// true when this HIR expression is either itself a `Literal` or a
/// concatenation of only `Literal`s or an alternation of only `Literal`s.
///
- /// For example, `f`, `foo`, `a|b|c`, and `foo|bar|baz` are alternaiton
- /// literals, but `f+`, `(foo)`, `foo()`
+ /// For example, `f`, `foo`, `a|b|c`, and `foo|bar|baz` are alternation
+ /// literals, but `f+`, `(foo)`, `foo()`, ``
/// are not (even though that contain sub-expressions that are literals).
pub fn is_alternation_literal(&self) -> bool {
self.info.is_alternation_literal()
@@ -1496,7 +1496,7 @@
self.bools &= !(1 << $bit);
}
}
- }
+ };
}
impl HirInfo {