Skip to content

Commit 1a457b4

Browse files
author
Jonathan Turner
committed
---
yaml --- r: 275692 b: refs/heads/master c: fd0632f h: refs/heads/master
1 parent eed74c2 commit 1a457b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 399149ac7efda98e2290d5bf5c38f51d51b5b18f
2+
refs/heads/master: fd0632fad63d5eb83a1571a1f854af98c5557b2a
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/tools/compiletest/src/json.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use errors::{Error, ErrorKind};
1212
use rustc_serialize::json;
1313
use std::str::FromStr;
14+
use std::path::Path;
1415

1516
// These structs are a subset of the ones found in
1617
// `syntax::errors::json`.
@@ -82,7 +83,9 @@ fn push_expected_errors(expected_errors: &mut Vec<Error>,
8283
file_name: &str) {
8384
// We only consider messages pertaining to the current file.
8485
let matching_spans = || {
85-
diagnostic.spans.iter().filter(|span| span.file_name == file_name)
86+
diagnostic.spans.iter().filter(|span| {
87+
Path::new(&span.file_name) == Path::new(&file_name)
88+
})
8689
};
8790

8891
// We break the output into multiple lines, and then append the

0 commit comments

Comments
 (0)