File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
trunk/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 1
1
---
2
- refs/heads/master: 399149ac7efda98e2290d5bf5c38f51d51b5b18f
2
+ refs/heads/master: fd0632fad63d5eb83a1571a1f854af98c5557b2a
3
3
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4
4
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
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