]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/trace.rs
parameters.split_last()
[rust.git] / crates / hir_def / src / trace.rs
index 0a9beae8ef2d50cb20c2cfd7d5f534d605818f7e..6e6ceb8e47495b28495e3670ad39620fa1b89b4c 100644 (file)
@@ -9,7 +9,7 @@
 //! absolute offsets. The `Trace` structure (inspired, at least in name, by
 //! Kotlin's `BindingTrace`) allows use the same code to compute both
 //! projections.
-use la_arena::{map::ArenaMap, Arena, Idx, RawId};
+use la_arena::{Arena, ArenaMap, Idx, RawIdx};
 
 pub(crate) struct Trace<T, V> {
     arena: Option<Arena<T>>,
@@ -30,7 +30,7 @@ pub(crate) fn alloc(&mut self, value: impl FnOnce() -> V, data: impl FnOnce() ->
         let id = if let Some(arena) = &mut self.arena {
             arena.alloc(data())
         } else {
-            let id = Idx::<T>::from_raw(RawId::from(self.len));
+            let id = Idx::<T>::from_raw(RawIdx::from(self.len));
             self.len += 1;
             id
         };