We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
//@ run-rustfix
1 parent 5af2130 commit ad14a22Copy full SHA for ad14a22
src/tools/compiletest/src/runtest.rs
@@ -3938,10 +3938,15 @@ impl<'test> TestCx<'test> {
3938
self.props.compare_output_lines_by_subset,
3939
);
3940
} else if !expected_fixed.is_empty() {
3941
- panic!(
3942
- "the `// run-rustfix` directive wasn't found but a `*.fixed` \
3943
- file was found"
3944
- );
+ if self.config.suite == "ui" {
+ panic!(
+ "the `//@ run-rustfix` directive wasn't found but a `*.fixed` file was found"
+ );
3945
+ } else {
3946
3947
+ "the `// run-rustfix` directive wasn't found but a `*.fixed` file was found"
3948
3949
+ }
3950
}
3951
3952
if errors > 0 {
0 commit comments