Skip to content

MIRI: Tried to cache DefId(_), but was already existing as AllocId(_) #49081

@michaelwoerister

Description

@michaelwoerister
Member

The following crash occurs during incremental compilation of the rust-url crate:
https://travis-ci.org/rust-icci/rust-url/jobs/354013054#L1157-L1159

cc @oli-obk @eddyb

Activity

added
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Mar 16, 2018
self-assigned this
on Mar 16, 2018
oli-obk

oli-obk commented on Mar 16, 2018

@oli-obk
Contributor

minimal repro:

pub static A: i32 = 42;
pub static B: &i32 = &A;
michaelwoerister

michaelwoerister commented on Mar 16, 2018

@michaelwoerister
MemberAuthor

@oli-obk remarked on IRC that this might be temporarily worked around by not caching upstream constants.

nikomatsakis

nikomatsakis commented on Mar 16, 2018

@nikomatsakis
Contributor

triage: P-high

Regression.

added a commit that references this issue on Mar 19, 2018
a04b88d
added a commit that references this issue on Mar 30, 2018
051050d
added
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
on Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh 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

    Participants

    @nikomatsakis@RalfJung@oli-obk@michaelwoerister@rust-highfive

    Issue actions

      MIRI: Tried to cache DefId(_), but was already existing as AllocId(_) · Issue #49081 · rust-lang/rust