Skip to content

Commit c38b91c

Browse files
sinkuuMark-Simulacrum
authored andcommitted
Do not collect to vec for debug output
1 parent 7a75c4c commit c38b91c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/librustc_typeck/check/generator_interior.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,7 @@ pub fn resolve_interior<'a, 'tcx>(
132132
// if a Sync generator contains an &'α T, we need to check whether &'α T: Sync),
133133
// so knowledge of the exact relationships between them isn't particularly important.
134134

135-
debug!(
136-
"types in generator {:?}, span = {:?}",
137-
types.iter().map(|t| (t.0).ty).collect::<Vec<_>>(),
138-
body.value.span,
139-
);
135+
debug!("types in generator {:?}, span = {:?}", types, body.value.span);
140136

141137
// Replace all regions inside the generator interior with late bound regions
142138
// Note that each region slot in the types gets a new fresh late bound region,

src/test/ui/async-await/issues/issue-64964.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// compile-flags: -Z query-dep-graph
33
// edition:2018
44

5-
// Regression test for ICE related to `await`ing in a method. (#64964)
5+
// Regression test for ICE related to `await`ing in a method + incr. comp. (#64964)
66

77
struct Body;
88
impl Body {

0 commit comments

Comments
 (0)