about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 06:52:51 +0100
committerGitHub <noreply@github.com>2023-12-12 06:52:51 +0100
commitd67e80f12dadf15656d76c5b517631cd783efa0c (patch)
tree9f8e86642fd363a270bc4816f20f96febbce929f /library/std/src
parentcdc4fc9f35a7d982d98f4c09baa324cb2506aec5 (diff)
parent638b08ebdfde428a54efce2fd896da8d3332f403 (diff)
downloadrust-d67e80f12dadf15656d76c5b517631cd783efa0c.tar.gz
rust-d67e80f12dadf15656d76c5b517631cd783efa0c.zip
Rollup merge of #118846 - celinval:smir-ty-methods, r=compiler-errors
Fix BinOp `ty()` assertion and `fn_sig()` for closures

`BinOp::ty()` was asserting that the argument types were primitives. However, the primitive check doesn't include pointers, which can be used in a `BinaryOperation`. Thus extend the arguments to include them.

Since I had to add methods to check for pointers in TyKind, I just went ahead and added a bunch more utility checks that can be handy for our users and fixed the `fn_sig()` method to also include closures.

`@compiler-errors` just wanted to confirm that today no `BinaryOperation` accept SIMD types. Is that correct?

r? `@compiler-errors`
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions