We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a78b257 + 6390c89 commit 082ecd8Copy full SHA for 082ecd8
src/tools/rust-analyzer/crates/vfs/src/path_interner.rs
@@ -28,7 +28,7 @@ impl PathInterner {
28
/// - Else, returns a newly allocated id.
29
pub(crate) fn intern(&mut self, path: VfsPath) -> FileId {
30
let (id, _added) = self.map.insert_full(path);
31
- assert!(id < u32::MAX as usize);
+ assert!(id < FileId::MAX as usize);
32
FileId(id as u32)
33
}
34
0 commit comments