Closed
Description
Last good version: rustc 1.19.0-nightly (6a5fc9eec 2017-05-02)
(previous nightly)
Version: rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)
Unfortunately I can't provide a small testcase for reproduction,
but the following works reliably:
Reproduction
EDIT: For readability the reduced example from below:
trait Tc {}
impl Tc for bool {}
fn main() {
let _: &[&Tc] = &[&true];
}
OLD:
# You'll need openssl for the build process on linux, e.g. for ubuntu:
sudo apt-get install libssl-dev
git clone https://github.com/steffengy/tiberius -b ssl
cd tiberius && cargo test
Output:
rustc: /checkout/src/llvm/lib/IR/Constants.cpp:1568: static llvm::Constant*
llvm::ConstantExpr::getTrunc(llvm::Constant*, llvm::Type*, bool):
Assertion `C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&&
SrcTy must be larger than DestTy for Trunc!"' failed.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.High priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.