]> git.lizzy.rs Git - rust.git/commit
proc_macro: use fxhash within the proc_macro crate
authorNika Layzell <nika@thelayzells.com>
Sun, 3 Jul 2022 04:53:20 +0000 (00:53 -0400)
committerNika Layzell <nika@thelayzells.com>
Mon, 18 Jul 2022 16:59:14 +0000 (12:59 -0400)
commit17e96879d8ea81ff9b4194ad6529df1a5784a70c
tree7eeb0e3f8bde3fadd82c305a38db7239f3cbad42
parent144227dae949fb98896a2ba077d8fe7f36c3238e
proc_macro: use fxhash within the proc_macro crate

Unfortunately, as it is difficult to depend on crates from within proc_macro,
this is done by vendoring a copy of the hasher as a module rather than
depending on the rustc_hash crate.

This probably doesn't have a substantial impact up-front, however will be more
relevant once symbols are interned within the proc_macro client.
library/proc_macro/src/bridge/fxhash.rs [new file with mode: 0644]
library/proc_macro/src/bridge/handle.rs
library/proc_macro/src/bridge/mod.rs