diff --git a/grep-regex/src/multi.rs b/grep-regex/src/multi.rs index 501e5aca..6e43e975 100644 --- a/grep-regex/src/multi.rs +++ b/grep-regex/src/multi.rs @@ -109,6 +109,7 @@ pub fn alternation_literals(expr: &Hir) -> Option>> { for alt in alts { let mut lit = vec![]; match *alt.kind() { + HirKind::Empty => {} HirKind::Literal(ref x) => extendlit(x, &mut lit), HirKind::Concat(ref exprs) => { for e in exprs {