mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
compiletest: display the error if rustfix fails
This commit is contained in:
parent
2817be94cc
commit
f2ef8bf776
@ -3328,8 +3328,11 @@ impl<'test> TestCx<'test> {
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
let fixed_code = apply_suggestions(&unfixed_code, &suggestions).unwrap_or_else(|_| {
|
||||
panic!("failed to apply suggestions for {:?} with rustfix", self.testpaths.file)
|
||||
let fixed_code = apply_suggestions(&unfixed_code, &suggestions).unwrap_or_else(|e| {
|
||||
panic!(
|
||||
"failed to apply suggestions for {:?} with rustfix: {}",
|
||||
self.testpaths.file, e
|
||||
)
|
||||
});
|
||||
|
||||
errors += self.compare_output("fixed", &fixed_code, &expected_fixed);
|
||||
|
Loading…
Reference in New Issue
Block a user