Skip to content

hiaselhans/rust_reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducer

Reproducer for a regression bug introduced in rust 1.45 (thumbv6 target)

failing function:

pub fn foo(val: u128) -> u128 {
    let (_sum, carry) = val.overflowing_add(val);
    u128::from(carry) << 64
}

results in an infinite compilation.

Steps to reproduce

rustup target add thumbv6m-none-eabi
cargo build

Validate compilation in rust 1.44

rust-toolchain

[toolchain]
channel = "1.44.0"
components = ["rust-src"]
rustup target add thumbv6m-none-eabi
cargo build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages