]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/snapshot_map/mod.rs
perf: Add inline on commonly used methods added in 69464
[rust.git] / src / librustc_data_structures / snapshot_map / mod.rs
index 52865f55f786b590289259d43faf8c0cfe17e14a..b4cc85293f7c19b84d27b612d0b09f56a25f7cd6 100644 (file)
@@ -37,6 +37,7 @@ pub enum UndoLog<K, V> {
 }
 
 impl<K, V, M, L> SnapshotMap<K, V, M, L> {
+    #[inline]
     pub fn with_log<L2>(&mut self, undo_log: L2) -> SnapshotMap<K, V, &mut M, L2> {
         SnapshotMap { map: &mut self.map, undo_log, _marker: PhantomData }
     }