mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Use nohash_hasher, rm comment
This commit is contained in:
parent
7e1992a0d9
commit
85dd7b22b4
11 changed files with 21 additions and 123 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue