From 0afcfce8d85b23c85303b7184c9a3d0bb28a4f6b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 2 May 2017 06:33:11 -0400 Subject: [PATCH] update comment about heuristics --- src/librustc_mir/transform/inline.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_mir/transform/inline.rs b/src/librustc_mir/transform/inline.rs index 3f6ce9c9446f..f60dcbed6ba4 100644 --- a/src/librustc_mir/transform/inline.rs +++ b/src/librustc_mir/transform/inline.rs @@ -72,7 +72,9 @@ fn run_pass(&self, caller_mir: &mut Mir<'tcx>) { // inline. // // We use a queue so that we inline "broadly" before we inline - // in depth. It is unclear if this is the current heuristic. + // in depth. It is unclear if this is the best heuristic, + // really, but that's true of all the heuristics in this + // file. =) let mut callsites = VecDeque::new();