Skip to content

Commit

Permalink
Do not collect to vec for debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkuu authored and Mark-Simulacrum committed Oct 23, 2019
1 parent 7a75c4c commit c38b91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/librustc_typeck/check/generator_interior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/issues/issue-64964.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c38b91c

Please sign in to comment.