File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/auto/src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
8
8
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
9
9
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
10
10
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11
- refs/heads/auto: 399149ac7efda98e2290d5bf5c38f51d51b5b18f
11
+ refs/heads/auto: fd0632fad63d5eb83a1571a1f854af98c5557b2a
12
12
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
13
13
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
14
14
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1
Original file line number Diff line number Diff line change 11
11
use errors:: { Error , ErrorKind } ;
12
12
use rustc_serialize:: json;
13
13
use std:: str:: FromStr ;
14
+ use std:: path:: Path ;
14
15
15
16
// These structs are a subset of the ones found in
16
17
// `syntax::errors::json`.
@@ -82,7 +83,9 @@ fn push_expected_errors(expected_errors: &mut Vec<Error>,
82
83
file_name : & str ) {
83
84
// We only consider messages pertaining to the current file.
84
85
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
+ } )
86
89
} ;
87
90
88
91
// We break the output into multiple lines, and then append the
You can’t perform that action at this time.
0 commit comments