Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Convert panics to compiler errors #43

Description

@khyperia

There's a whole heck of a lot of panics, unwraps, and what-have-yous in rustc_codegen_spirv right now. Nearly all of them should probably be compiler errors instead.

Note this may require some rustc PRs, since right now, backends don't have access to span information. @eddyb may have some ideas around how to get span information, e.g. a bx.set_span method.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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