Skip to content

multicore::Core::spawn's entrypoint should return ! according to docs #912

@not-nullptr

Description

@not-nullptr

from the docs:

Spawn a function on this core.
The closure should not return. It is currently defined as -> () because -> ! is not yet stable.

returning ! has been stable for a while now -- the following code compiles under rustc 1.85.0:

fn core_entry() -> ! {
    loop {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions