From 15b2e37cb1363467aa0900eda1fedaeb39ec6a1e Mon Sep 17 00:00:00 2001 From: Guillem Nieto Date: Wed, 4 Apr 2018 21:05:16 +0200 Subject: [PATCH] Fix compile error Fixing compile error, but still not allow mutate single expression or statements --- plugin/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/lib.rs b/plugin/src/lib.rs index 68750f6..40561e5 100644 --- a/plugin/src/lib.rs +++ b/plugin/src/lib.rs @@ -63,6 +63,7 @@ pub fn mutator(cx: &mut ExtCtxt, _span: Span, _mi: &MetaItem, a: Annotatable) -> Annotatable::ImplItem(i) => Annotatable::ImplItem(i.map(|i| { p.fold_impl_item(i).expect_one("expected exactly one item") })), + stmt_or_expr => stmt_or_expr, }; p.m.mutations.flush().unwrap(); MUTATION_COUNT.store(p.m.current_count, SeqCst);