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.
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:
OLD:
Output: