rust/compiler/rustc_smir
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
..
src Fix is_foreign_item for StableMIR instance 2023-12-06 10:48:18 -08:00
.gitignore Add 'compiler/rustc_smir/' from commit '9abcb5c7b5' 2022-06-02 10:07:25 +00:00
Cargo.toml Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00