Skip to content

Decide whether to suggest anything when encountering break and expecting ! #63390

Closed
@estebank

Description

@estebank

#63337 (comment) introduces suggestions when encountering break without a value in a context that expects a value other than (). In the case that the expected value is ! we don't suggest anything. Once ! is stabilized, we should look at the actual usage and see if there's any sane situation where we would like to suggest something like break loop {}.

CC @Centril

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`F-never_type`#![feature(never_type)]`P-lowLow priorityT-compilerRelevant to the compiler 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