rust/compiler/rustc_ty_utils/src
Matthias Krüger a87dda3b3d
Rollup merge of #114670 - compiler-errors:issue-114660, r=cjgillot
Don't use `type_of` to determine if item has intrinsic shim

When we're calling `resolve_instance` on an inline const, we were previously looking at the `type_of` for that const, seeing that it was an `extern "intrinsic"` fn def, and treating it as if we were computing the instance of that intrinsic itself. This is incorrect.

Instead, we should be using the def-id of the item we're computing to determine if it's an intrinsic.

Fixes #114660
2023-08-09 23:00:00 +02:00
..
abi.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
assoc.rs tighten span slightly for synthetic item 2023-07-27 22:20:32 +00:00
common_traits.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
consts.rs Rollup merge of #113539 - agnarrarendelle:master, r=workingjubilee 2023-07-17 00:14:05 +02:00
errors.rs Re-use error code for duplicate error 2023-06-22 15:51:14 +00:00
implied_bounds.rs Auto merge of #114602 - compiler-errors:rpit-outlives-sadness, r=oli-obk 2023-08-08 13:03:10 +00:00
instance.rs Don't use type_of to determine if item has intrinsic shim 2023-08-09 20:00:38 +00:00
layout_sanity_check.rs Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk" 2023-07-21 22:35:57 -07:00
layout.rs Use upvar_tys in more places, make it a list 2023-08-01 23:19:31 +00:00
lib.rs Take RPITITs inherit the assumed_wf_types of their parent fn 2023-07-29 21:19:33 +00:00
needs_drop.rs Use upvar_tys in more places, make it a list 2023-08-01 23:19:31 +00:00
opaque_types.rs Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
representability.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
structural_match.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
ty.rs Fix a comment 2023-08-01 23:10:38 +00:00