Closed
Description
use std::simd::u32x4;
fn main() {
let a = u32x4(1,2,3,4);
let b = u32x4(1,2,3,4);
let c = a/b;
}
error: internal compiler error: fail-if-zero on unexpected type: core::simd::u32x4
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:189
stack backtrace:
1: 0x7f29cc0eee2f - sys::backtrace::write::h947ec7660f7e4c8cSBC
2: 0x7f29cc114f82 - panicking::on_panic::h23ca8edeaea6c81cLMI
3: 0x7f29cc049e8a - rt::unwind::begin_unwind_inner::h47bdb490e575cf7eRsI
4: 0x7f29c94b994d - rt::unwind::begin_unwind::h18314895764715619195
5: 0x7f29c94ba195 - diagnostic::Handler::bug::ha396b31b3cac1708kgB
6: 0x7f29c9ee0f3b - session::Session::bug::h45dc375f318abaf95sn
7: 0x7f29cb7c773d - trans::base::fail_if_zero_or_overflows::h6f53c42468d2b621bcs
8: 0x7f29cb7c56b9 - trans::expr::trans_eager_binop::h302f6600ffb8756eRqj
9: 0x7f29cb7a2c92 - trans::expr::trans_binary::hb529a57118725cabbAj
10: 0x7f29cb78d62e - trans::expr::trans_unadjusted::hc609011ed76d682223h
11: 0x7f29cb73fd11 - trans::expr::trans_into::h9649503c823db95eSmh
12: 0x7f29cb851dd7 - trans::_match::mk_binding_alloca::h15529988557544132573
13: 0x7f29cb73f24d - trans::base::init_local::h24f9795915dc2dc9oys
14: 0x7f29cb740ae2 - trans::controlflow::trans_block::h4c660619c3bd7816t6d
15: 0x7f29cb818611 - trans::base::trans_closure::hcfabd7fd269607bekjt
16: 0x7f29cb729238 - trans::base::trans_fn::hc85106bcc218fcb4dut
17: 0x7f29cb724ef1 - trans::base::trans_item::h167dcb48771cb88c5Rt
18: 0x7f29cb82173c - trans::base::trans_crate::h947378b1d60dae25wOu
19: 0x7f29cc7216e3 - driver::phase_4_translate_to_llvm::h8e4d85cc4e2e15a5gOa
20: 0x7f29cc6fd2d3 - driver::compile_input::hf1ccb6f79c82b5e3Nba
21: 0x7f29cc7b8827 - run_compiler::h5744096088d771cbu2b
22: 0x7f29cc7b6459 - thunk::F.Invoke<A, R>::invoke::h2151708636338439058
23: 0x7f29cc7b5110 - rt::unwind::try::try_fn::h17480117432322948657
24: 0x7f29cc1869c8 - rust_try_inner
25: 0x7f29cc1869b5 - rust_try
26: 0x7f29cc7b588a - thunk::F.Invoke<A, R>::invoke::h4030886730675850734
27: 0x7f29cc1039a5 - sys::thread::thread_start::he7ae8e81d7f8a1f4x4G
28: 0x7f29c5f99181 - start_thread
29: 0x7f29cbcbb47c - __clone
30: 0x0 - <unknown>