rust/compiler/stable_mir/src
Matthias Krüger d67e80f12d
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`
2023-12-12 06:52:51 +01:00
..
mir Remove scalar fn and tighten the BiOp Ty assertions 2023-12-11 19:02:54 -08:00
compiler_interface.rs Fix BinOp ty assertion and fn_sig for closures 2023-12-11 16:06:48 -08:00
crate_def.rs Improve documentation and fix the fixme comment 2023-11-23 12:29:20 -08:00
error.rs remove redundant imports 2023-12-10 10:56:22 +08:00
lib.rs Add instance evaluation and methods to read alloc 2023-12-07 17:01:29 -08:00
mir.rs Add support to global allocation to stable-mir 2023-11-21 19:16:53 -08:00
target.rs remove some redundant clones 2023-12-11 21:54:36 +01:00
ty.rs Remove scalar fn and tighten the BiOp Ty assertions 2023-12-11 19:02:54 -08:00
visitor.rs add CoroutineWitness to covered types 2023-11-10 17:02:08 +03:00