Skip to content

regression: no name for DefPath ICE #123274

Closed

Description

@Mark-Simulacrum
[INFO] [stdout] error: internal compiler error: compiler/rustc_middle/src/ty/mod.rs:1582:13: item_name: no name for DefPath { data: [DisambiguatedDefPathData { data: ValueNs("hello_struct"), disambiguator: 0 }, DisambiguatedDefPathData { data: AnonConst, disambiguator: 0 }], krate: crate0 }

https://crater-reports.s3.amazonaws.com/beta-1.78-3/beta-2024-03-30/reg/hello_bash_plugin-0.1.0/log.txt

Activity

  1. 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 31, 2024
  2. added this to the 1.78.0 milestone on Mar 31, 2024
  3. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Mar 31, 2024
  4. matthiaskrgr commented on Mar 31, 2024

    @matthiaskrgr
    Member

    might be related to #123243

  5. compiler-errors commented on Apr 1, 2024

    @compiler-errors
    Contributor

    Yep, this is due to #121644, cc @oli-obk.

    Specifically, it's kind of sketchy that the static allocations inherit the codegen flags from their parent statics -- in this case (see the issue @matthiaskrgr linked), we have an static allocation who inherits the #[no_mangle] flag from the parent; however, the allocation doesn't actually have an item name to use for #[no_mangle].

    This should also affect other attrs like #[export_name], #[link_name]...

    I'm gonna put up a fix PR.

  6. added a commit that references this issue on Apr 1, 2024
  7. removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Apr 2, 2024
  8. cuviper commented on Apr 12, 2024

    @cuviper
    Member

    Backported in #123466.

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

Metadata

Metadata

Labels

A-codegenArea: Code generationI-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.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions