Skip NLL compiletest in rustfix mode for now

This commit is contained in:
Pascal Hertleif 2018-05-02 00:33:59 +02:00 committed by Alex Crichton
parent c02aedfcaf
commit 9680f3b381
2 changed files with 6 additions and 3 deletions

View File

@ -95,9 +95,9 @@ impl fmt::Display for Mode {
}
}
#[derive(Clone)]
#[derive(Clone, PartialEq)]
pub enum CompareMode {
Nll
Nll,
}
impl CompareMode {

View File

@ -2605,7 +2605,10 @@ impl<'test> TestCx<'test> {
}
let fixture_path = expected_output_path(&self.testpaths, None, &None, UI_FIXED);
if fixture_path.exists() {
// TODO(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};