Use nohash_hasher, rm comment

This commit is contained in:
Ariel Davis 2023-05-03 23:48:59 -07:00
parent 7e1992a0d9
commit 85dd7b22b4
11 changed files with 21 additions and 123 deletions

View file

@ -62,7 +62,8 @@ pub use paths::{AbsPath, AbsPathBuf};
#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub struct FileId(pub u32);
impl stdx::hash::NoHashHashable for FileId {}
/// safe because `FileId` is a newtype of `u32`
impl stdx::hash::IsEnabled for FileId {}
/// Storage for all files read by rust-analyzer.
///