mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2025-02-17 05:57:30 +00:00
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:
parent
183e344d8d
commit
31e969c911
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user