1
Fork 0
rust/compiler/stable_mir/src
Celina G. Val 1bcd162465 Fix is_foreign_item for StableMIR instance
Change the implementation of `Instance::is_foreign_item` to directly
query the compiler for the instance `def_id` instead of incorrectly
relying on the conversion to `CrateItem`.

Background:

- In pull https://github.com/rust-lang/rust/pull/118524, I fixed the
  conversion from Instance to CrateItem to avoid the conversion if the
  instance didn't have a body available. This broke the `is_foreign_item`.
2023-12-06 10:48:18 -08:00
..
mir Fix is_foreign_item for StableMIR instance 2023-12-06 10:48:18 -08:00
compiler_interface.rs Fix is_foreign_item for StableMIR instance 2023-12-06 10:48:18 -08:00
crate_def.rs Improve documentation and fix the fixme comment 2023-11-23 12:29:20 -08:00
error.rs Add place.ty() and Ty build from a kind to smir 2023-11-20 12:43:39 -08:00
lib.rs Fix is_foreign_item for StableMIR instance 2023-12-06 10:48:18 -08:00
mir.rs Add support to global allocation to stable-mir 2023-11-21 19:16:53 -08:00
ty.rs Add more information to stable Instance 2023-12-01 16:22:06 -08:00
visitor.rs add CoroutineWitness to covered types 2023-11-10 17:02:08 +03:00