diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-09-13 13:55:23 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-09-14 07:34:35 +0000 |
| commit | a0a801cd3807498bdf6b0d7fd4148fdff9ede4b1 (patch) | |
| tree | ebc75e409470028f0151c3c2bd28acde2969c3ae /compiler/rustc_ty_utils/src/instance.rs | |
| parent | 7e0261e7ea2085bdc0bc3d0fd6776bf343473858 (diff) | |
| download | rust-a0a801cd3807498bdf6b0d7fd4148fdff9ede4b1.tar.gz rust-a0a801cd3807498bdf6b0d7fd4148fdff9ede4b1.zip | |
treat host effect params as erased generics in codegen
This fixes the changes brought to codegen tests when effect params are added to libcore, by not attempting to monomorphize functions that get the host param by being `const fn`.
Diffstat (limited to 'compiler/rustc_ty_utils/src/instance.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index e1a15b5cf9f..da2958bf56e 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -55,6 +55,7 @@ fn resolve_instance<'tcx>( } } else { debug!(" => free item"); + // FIXME(effects): we may want to erase the effect param if that is present on this item. ty::InstanceDef::Item(def_id) }; |
