rust/tests/ui-fulldeps
Matthias Krüger 3c1357ca6b
Rollup merge of #118681 - celinval:fix-foreign-item, r=ouz-a
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`. I also added a method to check if the instance has body, since the function already existed and it just wasn't exposed via public APIs. This makes it much cheaper for the user to check if the instance has body.

## 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`.

r? `@ouz-a`
2023-12-06 21:52:33 +01:00
..
auxiliary Support x test --stage 1 ui-fulldeps 2023-04-17 22:40:31 -05:00
fluent-messages Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
internal-lints Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
mod_dir_simple
session-diagnostic Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
stable-mir Rollup merge of #118681 - celinval:fix-foreign-item, r=ouz-a 2023-12-06 21:52:33 +01:00
compiler-calls.rs Support x test --stage 1 ui-fulldeps 2023-04-17 22:40:31 -05:00
deriving-global.rs
deriving-hygiene.rs
dropck_tarena_sound_drop.rs
dropck-tarena-cycle-checked.rs Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
dropck-tarena-cycle-checked.stderr Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
dropck-tarena-unsound-drop.rs Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
dropck-tarena-unsound-drop.stderr Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
empty-struct-braces-derive.rs
hash-stable-is-unstable.rs Support x test --stage 1 ui-fulldeps 2023-04-17 22:40:31 -05:00
hash-stable-is-unstable.stderr Support x test --stage 1 ui-fulldeps 2023-04-17 22:40:31 -05:00
lint-pass-macros.rs Remove rustc_lint_defs::lint_array 2023-09-28 23:01:25 +02:00
missing-rustc-driver-error.rs Don't depend on crate names in tests/ui-fulldeps/missing-rustc-driver-error.rs 2023-07-11 22:30:28 -05:00
missing-rustc-driver-error.stderr Don't depend on crate names in tests/ui-fulldeps/missing-rustc-driver-error.rs 2023-07-11 22:30:28 -05:00
mod_dir_path_canonicalized.rs various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
pathless-extern-unstable.rs Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
pathless-extern-unstable.stderr Bless ui-fulldeps 2023-11-24 21:56:22 +01:00
pprust-expr-roundtrip.rs Fix some broken tests 2023-12-04 13:03:41 -08:00
regions-mock-tcx.rs
rustc_encodable_hygiene.rs