Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup authored and alexcrichton committed May 4, 2018
1 parent 9680f3b commit b264504
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tools/compiletest/src/runtest.rs
Expand Up @@ -2606,8 +2606,11 @@ impl<'test> TestCx<'test> {

let fixture_path = expected_output_path(&self.testpaths, None, &None, UI_FIXED);

// TODO(killercup): Add `nll.rs.fixed` files matching
let nll = self.config.compare_mode.as_ref().map(|x| *x == CompareMode::Nll).unwrap_or(false);
// FIXME(killercup): Add `nll.rs.fixed` files matching
let nll = self.config.compare_mode
.as_ref()
.map(|x| *x == CompareMode::Nll)
.unwrap_or(false);
if fixture_path.exists() && !nll {
use std::collections::HashSet;
use rustfix::{apply_suggestions, get_suggestions_from_json};
Expand All @@ -2620,7 +2623,7 @@ impl<'test> TestCx<'test> {
let errors = self.compare_output("rs.fixed", &fixed_code, &expected_fixed);
if errors > 0 {
panic!("rustfix produced different fixed file!");
// TODO: Add info for update-references.sh call
// FIXME(killercup): Add info for update-references.sh call
}
}
}
Expand Down

0 comments on commit b264504

Please sign in to comment.