mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Update panic message for missing //@ run-rustfix
ui test suite when a .fixed file exists
This commit is contained in:
parent
5af2130440
commit
ad14a226c0
@ -3938,10 +3938,15 @@ impl<'test> TestCx<'test> {
|
||||
self.props.compare_output_lines_by_subset,
|
||||
);
|
||||
} else if !expected_fixed.is_empty() {
|
||||
panic!(
|
||||
"the `// run-rustfix` directive wasn't found but a `*.fixed` \
|
||||
file was found"
|
||||
);
|
||||
if self.config.suite == "ui" {
|
||||
panic!(
|
||||
"the `//@ run-rustfix` directive wasn't found but a `*.fixed` file was found"
|
||||
);
|
||||
} else {
|
||||
panic!(
|
||||
"the `// run-rustfix` directive wasn't found but a `*.fixed` file was found"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if errors > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user