File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ error[E0643]: method `hash` has incompatible signature for trait
34
34
LL | fn hash(&self, hasher: &mut impl Hasher) {}
35
35
| ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
36
36
|
37
- ::: /home/oliver/Projects/rust/rust3/src /libcore/hash/mod.rs:185:13
37
+ ::: $SRC_DIR /libcore/hash/mod.rs:185:13
38
38
|
39
39
LL | fn hash<H: Hasher>(&self, state: &mut H);
40
40
| - declaration in trait here
Original file line number Diff line number Diff line change @@ -2861,6 +2861,15 @@ impl<'test> TestCx<'test> {
2861
2861
2862
2862
let mut normalized = output. replace ( & parent_dir_str, "$DIR" ) ;
2863
2863
2864
+ // Paths into the libstd/libcore
2865
+ let src_dir = self . config . src_base . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) ;
2866
+ let src_dir_str = if json {
2867
+ src_dir. display ( ) . to_string ( ) . replace ( "\\ " , "\\ \\ " )
2868
+ } else {
2869
+ src_dir. display ( ) . to_string ( )
2870
+ } ;
2871
+ normalized = normalized. replace ( & src_dir_str, "$SRC_DIR" ) ;
2872
+
2864
2873
if json {
2865
2874
// escaped newlines in json strings should be readable
2866
2875
// in the stderr files. There's no point int being correct,
You can’t perform that action at this time.
0 commit comments