Remove codepath in test_round_trip that is no longer reached

I haven't been able to get the most recent rustc to produce that
message anymore.
This commit is contained in:
David Tolnay 2022-04-05 20:21:49 -07:00
parent 183e344d8d
commit 31e969c911
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -94,18 +94,11 @@ fn test(path: &Path, failed: &AtomicUsize, abort_after: usize) {
let before = match librustc_parse(content, &sess) {
Ok(before) => before,
Err(diagnostic) => {
if diagnostic
.message()
.starts_with("file not found for module")
{
errorf!("=== {}: ignore\n", path.display());
} else {
errorf!(
"=== {}: ignore - librustc failed to parse original content: {}\n",
path.display(),
diagnostic.message(),
);
}
errorf!(
"=== {}: ignore - librustc failed to parse original content: {}\n",
path.display(),
diagnostic.message(),
);
diagnostic.cancel();
return Err(true);
}