Closed
Description
I tried this code:
rustc treereduce.out -Clto -Zsanitizer=cfi -Copt-level=1 -Cdebuginfo=2 --crate-type lib
pub fn main() {
std::process::Command::new("");
}
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose
:
eac35583d2ffb5ed9e564dee0822c9a244058ee0
Backtrace
rustc: /home/matthias/vcs/github/rust_debug_assertions/src/llvm-project/llvm/include/llvm/Support/Casting.h:579: decltype(auto) llvm::cast(From *) [To = llvm::MDNode, From = llvm::Metadata]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
[2] 3933595 IOT instruction RUSTFLAGS="" ~/.rustup/toolchains/local-debug-assertions/bin/rustc -Clto