Skip to content

ICE in trans with guarded match arms #3257

Closed
@brson

Description

@brson
Contributor
fn main() {
    match some(true) {
      some(false) => {
      }
      whatever if false => {
      }
      some(true) => {
      }
      none => ()
    }
}
rust: task failed at 'Assertion m.len() > 0u || is_some(chk) failed', /home/banderson/Dev/rust3/src/rustc/middle/trans/alt.rs:451

Activity

catamorphism

catamorphism commented on Aug 23, 2012

@catamorphism
Contributor

May be a dup of #2869

nikomatsakis

nikomatsakis commented on Aug 29, 2012

@nikomatsakis
Contributor

not a dup, I think.

catamorphism

catamorphism commented on Dec 8, 2012

@catamorphism
Contributor

This is indeed a dup of #2869.

added a commit that references this issue on Dec 24, 2018

Auto merge of #57079 - matthiaskrgr:clippy, r=oli-obk

added a commit that references this issue on Jan 7, 2024

Auto merge of rust-lang#3257 - RalfJung:build-tests, r=RalfJung

rust-log-analyzer

rust-log-analyzer commented on Jan 7, 2024

@rust-log-analyzer
Collaborator

The job x86_64-gnu-llvm-16 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Built container sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Looks like docker image is the same as before, not uploading
https://ci-caches.rust-lang.org/docker/7ebc15c01a233894034d277c8cce4e949f4e7791f66b4727c8fb6e058a0b8171d6152e1441d677cef0653843ceeee469c097b8699b2bb74249e674f6aa1a8813
sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-16]
##[group]Clock drift check
  local time: Sun Jan  7 16:29:44 UTC 2024
  network time: Sun, 07 Jan 2024 16:29:44 GMT
  network time: Sun, 07 Jan 2024 16:29:44 GMT
##[endgroup]
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-16', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'build.optimized-compiler-builtins', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
##[endgroup]
Skipping Set({test::src/tools/tidy}) because it is excluded
##[group]Building stage0 library artifacts (x86_64-unknown-linux-gnu)
    Updating crates.io index
error: the lock file /checkout/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.
  local time: Sun Jan  7 16:30:20 UTC 2024
  network time: Sun, 07 Jan 2024 16:30:20 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
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

    A-codegenArea: Code generationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @brson@nikomatsakis@catamorphism@rust-log-analyzer

        Issue actions

          ICE in trans with guarded match arms · Issue #3257 · rust-lang/rust