]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_infer/infer/undo_log.rs
perf: Add inline on commonly used methods added in 69464
[rust.git] / src / librustc_infer / infer / undo_log.rs
index 56cb182dbf0f96bfa1d287f013e6058518d6d27c..e7f1869955d20cd84944370a6908fc48326f8d64 100644 (file)
@@ -100,10 +100,12 @@ impl<'tcx, T> UndoLogs<T> for InferCtxtUndoLogs<'tcx>
 where
     UndoLog<'tcx>: From<T>,
 {
+    #[inline]
     fn num_open_snapshots(&self) -> usize {
         self.num_open_snapshots
     }
 
+    #[inline]
     fn push(&mut self, undo: T) {
         if self.in_snapshot() {
             self.logs.push(undo.into())