Hash Symbol directly

This commit is contained in:
Cameron Steffen 2021-05-24 10:51:33 -05:00
parent 9d61b4e081
commit 7f340578cc

View file

@ -745,7 +745,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
}
pub fn hash_name(&mut self, n: Symbol) {
n.as_str().hash(&mut self.s);
n.hash(&mut self.s);
}
pub fn hash_qpath(&mut self, p: &QPath<'_>) {