From c41b3627916189050c383bb7bd496aa912c987e9 Mon Sep 17 00:00:00 2001 From: Thomas Jespersen Date: Wed, 15 Apr 2015 10:33:52 +0200 Subject: [PATCH] Work around ICE See rust-lang/rust/issues/24227 --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d79d94c..fde9816 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,7 +280,10 @@ impl<'a, 'b, 'tcx, 'v> Visitor<'v> for MyVisitor<'a, 'tcx, 'b> { if !is_for_loop { // Walk each of the arms, and check that outcoming hms are // identical - let mut old: Option = None; + // + // TODO: Replace with Option once rust-lang/rust/issues/24227 + // is fixed + let mut old: Option = None; for arm in arms { let mut v = self.clone(); v.visit_arm(&arm);