From f0fddb1a89eda1c5588725e23a50b3073f4e7e97 Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Wed, 2 Oct 2019 18:59:05 +0900 Subject: [PATCH] Do not collect to vec for debug output --- src/librustc_typeck/check/generator_interior.rs | 6 +----- src/test/ui/async-await/issues/issue-64964.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/librustc_typeck/check/generator_interior.rs b/src/librustc_typeck/check/generator_interior.rs index c947d552a01a7..940537a5f48af 100644 --- a/src/librustc_typeck/check/generator_interior.rs +++ b/src/librustc_typeck/check/generator_interior.rs @@ -132,11 +132,7 @@ pub fn resolve_interior<'a, 'tcx>( // if a Sync generator contains an &'α T, we need to check whether &'α T: Sync), // so knowledge of the exact relationships between them isn't particularly important. - debug!( - "types in generator {:?}, span = {:?}", - types.iter().map(|t| (t.0).ty).collect::>(), - body.value.span, - ); + debug!("types in generator {:?}, span = {:?}", types, body.value.span); // Replace all regions inside the generator interior with late bound regions // Note that each region slot in the types gets a new fresh late bound region, diff --git a/src/test/ui/async-await/issues/issue-64964.rs b/src/test/ui/async-await/issues/issue-64964.rs index af20bc5bf9a2b..11f6cb6af9cc6 100644 --- a/src/test/ui/async-await/issues/issue-64964.rs +++ b/src/test/ui/async-await/issues/issue-64964.rs @@ -2,7 +2,7 @@ // compile-flags: -Z query-dep-graph // edition:2018 -// Regression test for ICE related to `await`ing in a method. (#64964) +// Regression test for ICE related to `await`ing in a method + incr. comp. (#64964) struct Body; impl Body {