Skip to content

Commit 0e9f6f0

Browse files
author
Jonathan Turner
committed
---
yaml --- r: 275827 b: refs/heads/auto c: fd0632f h: refs/heads/master i: 275825: e569e67 275823: 910ad22
1 parent 0d9c0f6 commit 0e9f6f0

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
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 399149ac7efda98e2290d5bf5c38f51d51b5b18f
11+
refs/heads/auto: fd0632fad63d5eb83a1571a1f854af98c5557b2a
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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)