about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2019-10-02 18:59:05 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2019-10-02 18:59:05 +0900
commitf0fddb1a89eda1c5588725e23a50b3073f4e7e97 (patch)
tree28a115ad0d20ac85bcd2acbc6b123c560e10a952
parent8e67180c526720262c03adbd8fd4d7ca71212f41 (diff)
downloadrust-f0fddb1a89eda1c5588725e23a50b3073f4e7e97.tar.gz
rust-f0fddb1a89eda1c5588725e23a50b3073f4e7e97.zip
Do not collect to vec for debug output
-rw-r--r--src/librustc_typeck/check/generator_interior.rs6
-rw-r--r--src/test/ui/async-await/issues/issue-64964.rs2
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 c947d552a01..940537a5f48 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::<Vec<_>>(),
-        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 af20bc5bf9a..11f6cb6af9c 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 {