-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed as not planned
Labels
-ZpolymorphizeUnstable option: Polymorphization.Unstable option: Polymorphization.A-codegenArea: Code generationArea: Code generationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Instead of using ParamEnv::reveal_all, the ParamEnv should be tracked in the mono item - this is necessary to enable more complex forms of polymorphization in future.
something simple like trying
layout_of(ty)on various types in the MIR body and ignoring generics intyif it succeeds, should work, but the lack of a correctParamEnvwould make it fail later (especially if e.g. it's something like&Twhich only has a constant layout ifT: Sized)
(source: eddyb in Zulip)
Metadata
Metadata
Assignees
Labels
-ZpolymorphizeUnstable option: Polymorphization.Unstable option: Polymorphization.A-codegenArea: Code generationArea: Code generationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.