Skip to content

Commit 34e92bb

Browse files
committed
Hash SyntaxContext first.
1 parent fe2d728 commit 34e92bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_span/src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1902,9 +1902,10 @@ where
19021902
return;
19031903
}
19041904

1905+
self.ctxt().hash_stable(ctx, hasher);
1906+
19051907
if self.is_dummy() {
19061908
Hash::hash(&TAG_INVALID_SPAN, hasher);
1907-
self.ctxt().hash_stable(ctx, hasher);
19081909
return;
19091910
}
19101911

@@ -1917,7 +1918,6 @@ where
19171918
Some(pos) => pos,
19181919
None => {
19191920
Hash::hash(&TAG_INVALID_SPAN, hasher);
1920-
span.ctxt.hash_stable(ctx, hasher);
19211921
return;
19221922
}
19231923
};
@@ -1944,7 +1944,6 @@ where
19441944
let len = (span.hi - span.lo).0;
19451945
Hash::hash(&col_line, hasher);
19461946
Hash::hash(&len, hasher);
1947-
span.ctxt.hash_stable(ctx, hasher);
19481947
}
19491948
}
19501949

0 commit comments

Comments
 (0)