Skip to content

Commit 32892f4

Browse files
committed
add comment explaining lack of recursion in type_id_info
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent a3100f7 commit 32892f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ impl Types {
194194
info |= self.optional_type_info(resolve, r.err.as_ref());
195195
}
196196
TypeDefKind::Future(_) | TypeDefKind::Stream(_) | TypeDefKind::ErrorContext => {
197+
// These are all u32 handles regardless of payload type, so no
198+
// need to recurse.
197199
info.has_resource = true;
198200
}
199201
TypeDefKind::Unknown => unreachable!(),

0 commit comments

Comments
 (0)