Skip to content

ICE in rollup  #94523

Description

@Dylan-DPC

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

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

  3. Urgau commented on Mar 2, 2022

    @Urgau
    Member

    Further reduced to:

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

      No branches or pull requests

      Issue actions