Coroutine state transform check_must_not_suspend_ty
ignores allocator field of Box
#122643
Labels
A-coroutines
Area: Coroutines
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
This code here has a potential issue:
rust/compiler/rustc_mir_transform/src/coroutine.rs
Lines 1967 to 1977 in 010f394
If the Box has a custom allocator, then that will not be checked at all. So whatever
check_must_not_suspend_ty
is used for, it ignores anything stored in custom allocators.It seems like this is just for a lint, so this is probably not critical, but I guess should still be fixed.
Cc @cjgillot -- not sure whom else to ping for coroutine state machine transform things?
The text was updated successfully, but these errors were encountered: