Skip to content

ICE in rollup  #94523

@Dylan-DPC

Description

@Dylan-DPC
Member

ICE encountered in a rollup, will post more details when i trace it further:

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.
C-bugCategory: This is a bug.
on Mar 2, 2022
Urgau

Urgau commented on Mar 2, 2022

@Urgau
Member

I am able to reproduce the issue with this code and rustc -Z unstable-options --check-cfg=names():

macro_rules! aa {
    () => {
        fn gg() {
            #[cfg(crossbeam_loom)]
            {
                let _ = val;
                unimplemented!("loom does not support non-atomic atomic ops");
            }
        }
    };
}

fn main() {
    aa!();
}

And it's combination of #94433 ("introduce" the ICE, preexisting issue) and #94298 (trigger the lint which trigger the ICE).

Urgau

Urgau commented on Mar 2, 2022

@Urgau
Member

Further reduced to:

fn main() {
    #[cfg(crossbeam_loom)]
    {}
}
added 5 commits that reference this issue on Mar 3, 2022
2f84a84
31eed28
added 2 commits that reference this issue on Mar 3, 2022
7ea81d6
26cbf91
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

    C-bugCategory: This is a bug.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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Urgau@Dylan-DPC

      Issue actions

        ICE in rollup · Issue #94523 · rust-lang/rust