Skip to content

assertion failed: st.sized && offset <= st.size #30355

Closed

Description

@mahkoh
pub struct X([u8]);

pub static Y: &'static X = {
    const Y: &'static [u8] = b"";
    &X(*Y)
};

fn main() { }
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: st.sized && offset <= st.size', ../src/librustc_trans/trans/adt.rs:1307

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    on Dec 13, 2015
  2. chordowl commented on Apr 2, 2017

    @chordowl
    Contributor

    Triage: this no longer ICEs.

    Meta

    rustc --version --verbose:

    rustc 1.16.0 (30cf806 2017-03-10)
    binary: rustc
    commit-hash: 30cf806
    commit-date: 2017-03-10
    host: x86_64-pc-windows-gnu
    release: 1.16.0
    LLVM version: 3.9

  3. added
    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.
    on Apr 2, 2017
  4. added a commit that references this issue on Oct 4, 2017
    7428806
  5. added a commit that references this issue on Oct 8, 2017
    ade0b01
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.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions