mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
1bcd162465
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`. |
||
---|---|---|
.. | ||
check_allocation.rs | ||
check_defs.rs | ||
check_instance.rs | ||
compilation-result.rs | ||
crate-info.rs | ||
projections.rs | ||
smir_internal.rs | ||
smir_visitor.rs |