We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
with_opaque_type_inference
1 parent 1b9ad13 commit 238d974Copy full SHA for 238d974
compiler/rustc_infer/src/infer/mod.rs
@@ -581,6 +581,10 @@ impl<'tcx> InferCtxtBuilder<'tcx> {
581
582
/// Whenever the `InferCtxt` should be able to handle defining uses of opaque types,
583
/// you need to call this function. Otherwise the opaque type will be treated opaquely.
584
+ ///
585
+ /// It is only meant to be called in two places, for typeck
586
+ /// (via `with_fresh_in_progress_typeck_results`) and for the inference context used
587
+ /// in mir borrowck.
588
pub fn with_opaque_type_inference(mut self, defining_use_anchor: LocalDefId) -> Self {
589
self.defining_use_anchor = defining_use_anchor;
590
self
0 commit comments