Skip to content

Termination documentation should describe only the standard library runtime's use of Termination #93448

Closed
@Lokathor

Description

@Lokathor

The docs for the Termination are currently a little light. When the docs are expanded/updated as part of the stabilization the likely path forward is that they'll describe that a Termination returned from main will print any errors and then use std::process::exit to end the program.

When the Termination docs are expanded, we should be sure to maintain clearly that what the standard library's runtime does is not a hard requirement on what other runtimes must do with the Termination data. Particularly, a no_std binary being run on an embedded system does not necessarily have anywhere to print, and it certainly can't call the specific function std::process::exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions