about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorjackh726 <jack.huey@umassmed.edu>2021-07-16 16:23:42 -0400
committerjackh726 <jack.huey@umassmed.edu>2021-07-17 16:09:17 -0400
commitd954a8ee8e76fc69ddc6a3e785a6e986a2e08e52 (patch)
tree55f362277a14c551ef0d52b796ac1c37ed9f2492 /compiler/rustc_data_structures/src
parent32c447e179cb4c3ae34e51b2f37b4390953ff55c (diff)
downloadrust-d954a8ee8e76fc69ddc6a3e785a6e986a2e08e52.tar.gz
rust-d954a8ee8e76fc69ddc6a3e785a6e986a2e08e52.zip
Some perf optimizations and logging
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/obligation_forest/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/obligation_forest/mod.rs b/compiler/rustc_data_structures/src/obligation_forest/mod.rs
index 05b1a85381f..25b7a84b3a0 100644
--- a/compiler/rustc_data_structures/src/obligation_forest/mod.rs
+++ b/compiler/rustc_data_structures/src/obligation_forest/mod.rs
@@ -418,6 +418,7 @@ impl<O: ForestObligation> ObligationForest<O> {
     /// be called in a loop until `outcome.stalled` is false.
     ///
     /// This _cannot_ be unrolled (presently, at least).
+    #[inline(never)]
     pub fn process_obligations<P, OUT>(&mut self, processor: &mut P) -> OUT
     where
         P: ObligationProcessor<Obligation = O>,
@@ -671,6 +672,7 @@ impl<O: ForestObligation> ObligationForest<O> {
         self.reused_node_vec = node_rewrites;
     }
 
+    #[inline(never)]
     fn apply_rewrites(&mut self, node_rewrites: &[usize]) {
         let orig_nodes_len = node_rewrites.len();