Skip to content

Attempt to add with overflow in GVN when building chrono-tz #119008

Closed
@saethlin

Description

@saethlin

https://github.com/chronotope/chrono-tz on commit 97d1680189e61fbd66fcb1c52f6d51b55389919e

RUSTFLAGS="-Zinline-mir -Zmir-opt-level=1 -Zmir-enable-passes=+GVN -Zcross-crate-inline-threshold=yes -Copt-level=1" cargo +master-stage1 build

Where master-stage1 is a toolchain build with debug assertions.

   Compiling chrono-tz v0.8.4 (/home/ben/chrono-tz/chrono-tz)
thread 'rustc' panicked at compiler/rustc_mir_transform/src/gvn.rs:650:37:
attempt to add with overflow
stack backtrace:

rustc-ice-2023-12-16T04_53_09-27142.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-mir-optArea: MIR optimizationsC-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.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions