Skip to content

native::run is useless #18687

@huonw

Description

@huonw

The current implementation is

/// Executes a procedure on the current thread in a Rust task context.
///
/// This function has all of the same details as `start` except for a different
/// number of arguments.
pub fn run(main: proc()) -> int {
    main();
    os::get_exit_status()
}

which is very different to start. It seems it should either be removed, or be adjusted to actually run main inside a Rust context.

(I guess this may be changing dramatically with IO removal.)

cc @aturon, @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions