Hash SyntaxContext first.
This commit is contained in:
parent
fe2d728e62
commit
34e92bbf65
1 changed files with 2 additions and 3 deletions
|
@ -1902,9 +1902,10 @@ where
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.ctxt().hash_stable(ctx, hasher);
|
||||||
|
|
||||||
if self.is_dummy() {
|
if self.is_dummy() {
|
||||||
Hash::hash(&TAG_INVALID_SPAN, hasher);
|
Hash::hash(&TAG_INVALID_SPAN, hasher);
|
||||||
self.ctxt().hash_stable(ctx, hasher);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1917,7 +1918,6 @@ where
|
||||||
Some(pos) => pos,
|
Some(pos) => pos,
|
||||||
None => {
|
None => {
|
||||||
Hash::hash(&TAG_INVALID_SPAN, hasher);
|
Hash::hash(&TAG_INVALID_SPAN, hasher);
|
||||||
span.ctxt.hash_stable(ctx, hasher);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1944,7 +1944,6 @@ where
|
||||||
let len = (span.hi - span.lo).0;
|
let len = (span.hi - span.lo).0;
|
||||||
Hash::hash(&col_line, hasher);
|
Hash::hash(&col_line, hasher);
|
||||||
Hash::hash(&len, hasher);
|
Hash::hash(&len, hasher);
|
||||||
span.ctxt.hash_stable(ctx, hasher);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue