From d8e0807052b5e90b8d4d049d90b6325137244042 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Fri, 8 May 2020 10:15:04 -0700 Subject: [PATCH] Add comment for strange conditional --- src/librustc_mir/transform/generator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_mir/transform/generator.rs b/src/librustc_mir/transform/generator.rs index 0d4ca6e7689..3920057d31e 100644 --- a/src/librustc_mir/transform/generator.rs +++ b/src/librustc_mir/transform/generator.rs @@ -580,6 +580,7 @@ fn record_conflicts_at_curr_loc( local_conflicts.union_row_with(&requires_storage, local); } + // `>1` because the `self` argument always requires storage. if requires_storage.count() > 1 { trace!("requires_storage={:?}", requires_storage); }