Skip to content

Commit

Permalink
Work around ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Jespersen committed Apr 15, 2015
1 parent 0a1cf0a commit c41b362
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> = None;
//
// TODO: Replace with Option<Self> once rust-lang/rust/issues/24227
// is fixed
let mut old: Option<MyVisitor> = None;
for arm in arms {
let mut v = self.clone();
v.visit_arm(&arm);
Expand Down

0 comments on commit c41b362

Please sign in to comment.