#131856 transitions the type system from separately tracking the Reveal in the ParamEnv, and intercrate and defining_opaque_types in the InferCtxt to tracking all of that state in a shared enum TypingMode as a field on the InferCtxt.
This is a necessary step towards correctly handling opaque types after type inference, but during analysis. This needs a separate typing mode where we reveal the opaque types defined by that body without accidentally trying to define them. It may also be used to properly support negative reasoning in coherence.
This issue is mostly used to get something to point to in FIXMEs.
#131856 transitions the type system from separately tracking the
Revealin theParamEnv, andintercrateanddefining_opaque_typesin theInferCtxtto tracking all of that state in a shared enumTypingModeas a field on theInferCtxt.This is a necessary step towards correctly handling opaque types after type inference, but during analysis. This needs a separate typing mode where we reveal the opaque types defined by that body without accidentally trying to define them. It may also be used to properly support negative reasoning in coherence.
This issue is mostly used to get something to point to in
FIXMEs._raw, take aParamEnvand have wrappers which assert that the typing_mode isPostAnalysis.typing_mode