Skip to content

Commit 9680f3b

Browse files
killercupalexcrichton
authored andcommitted
Skip NLL compiletest in rustfix mode for now
1 parent c02aedf commit 9680f3b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/tools/compiletest/src/common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ impl fmt::Display for Mode {
9595
}
9696
}
9797

98-
#[derive(Clone)]
98+
#[derive(Clone, PartialEq)]
9999
pub enum CompareMode {
100-
Nll
100+
Nll,
101101
}
102102

103103
impl CompareMode {

src/tools/compiletest/src/runtest.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,10 @@ impl<'test> TestCx<'test> {
26052605
}
26062606

26072607
let fixture_path = expected_output_path(&self.testpaths, None, &None, UI_FIXED);
2608-
if fixture_path.exists() {
2608+
2609+
// TODO(killercup): Add `nll.rs.fixed` files matching
2610+
let nll = self.config.compare_mode.as_ref().map(|x| *x == CompareMode::Nll).unwrap_or(false);
2611+
if fixture_path.exists() && !nll {
26092612
use std::collections::HashSet;
26102613
use rustfix::{apply_suggestions, get_suggestions_from_json};
26112614

0 commit comments

Comments
 (0)