]> git.lizzy.rs Git - rust.git/commitdiff
rustc_query_system: remove inline annotation from edge_count
authorTyson Nottingham <tgnottingham@gmail.com>
Wed, 16 Dec 2020 06:42:38 +0000 (22:42 -0800)
committerTyson Nottingham <tgnottingham@gmail.com>
Tue, 22 Dec 2020 22:12:57 +0000 (14:12 -0800)
This isn't called frequently enough to justify inlining.

compiler/rustc_query_system/src/dep_graph/graph.rs

index fefc8ed6f1a99720373a58efd099963a16e7bed7..87087dc7b7bf90362a4f60a75614d30327fded0f 100644 (file)
@@ -548,7 +548,6 @@ pub fn edge_deduplication_data(&self) -> Option<(u64, u64)> {
         }
     }
 
-    #[inline]
     fn edge_count(&self) -> usize {
         let data = self.data.as_ref().unwrap();
         let previous = &data.previous;