]> git.lizzy.rs Git - rust.git/commit
PR feedback
authorScott McMurray <scottmcm@users.noreply.github.com>
Sun, 30 May 2021 18:31:56 +0000 (11:31 -0700)
committerScott McMurray <scottmcm@users.noreply.github.com>
Thu, 8 Jul 2021 21:55:57 +0000 (14:55 -0700)
commitb63b2f1e426016b24a9e552faf17f20f421f5034
tree658ac690110bf23bcc83092face25a06de6bf989
parent2456495a260827217d3c612d6c577c2f165c61eb
PR feedback

- Add `:Sized` assertion in interpreter impl
- Use `Scalar::from_bool` instead of `ScalarInt: From<bool>`
- Remove unneeded comparison in intrinsic typeck
- Make this UB to call with undef, not just return undef in that case
compiler/rustc_mir/src/interpret/intrinsics.rs
compiler/rustc_typeck/src/check/intrinsic.rs
library/core/src/intrinsics.rs