1
Fork 0

Do not collect to vec for debug output

This commit is contained in:
Shotaro Yamada 2019-10-02 18:59:05 +09:00
parent 8e67180c52
commit f0fddb1a89
2 changed files with 2 additions and 6 deletions

View file

@ -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,

View file

@ -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 {