Skip to content

Crown doesn't check code inside closures #37330

@gterzian

Description

@gterzian

See for example:

let rejection_handler = Box::new(TransmitBodyPromiseRejectionHandler {

This should fail because of

#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]

and it fact it does fail if you construct the promise handler outside of task!.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions