Skip to content

ICE: "shouldn't exist at codegen" #1354

Closed
@matthiaskrgr

Description

@matthiaskrgr

rustc @ bd39bbb4bb92df439bf6d85470e296cc6a47ffbd compiled with debug assertions and cranelift
rustc -Zcodegen-backend=cranelift file.rs

#![crate_type="lib"]
use std::{collections::HashMap, hash::Hash};

struct C;

trait Ctx {
    type BindGroupId;
}

impl Ctx for C {
    type BindGroupId = u32;
}

pub struct BindGroup {
    _id: <C as Ctx>::BindGroupId,
}

pub fn insert(map: &mut HashMap<*const BindGroup, u32>, bind_group: *const BindGroup) {
    map.insert(bind_group, 1);
}

Stacktrace does not fit 🙄

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