Skip to content

Replace fail invocations with ice_condition.raise in rustc #1928

Closed
@brson

Description

@brson

We should see if conditions can suit our purposes; we may not be able to get rid of every fail! invocation that rustc can reach, but it would not hurt to try.


Original title: Replace fail with session.bug in rustc

When possible rustc should be using session.bug or session.span_bug instead of fail because that prints out proper error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions