MCPcopy Create free account
hub / github.com/argumentcomputer/ix / with_infer_only

Method with_infer_only

crates/kernel/src/tc.rs:945–951  ·  view source on GitHub ↗

Run a closure with `infer_only` mode enabled. Restores the previous mode on exit. In this mode, `infer` skips def-eq checks for App arg types and Let value types — it only synthesizes the type.

(&mut self, f: impl FnOnce(&mut Self) -> R)

Source from the content-addressed store, hash-verified

943 if self.env.profile_sink.is_some() {
944 self.delta_targets.insert(id.addr.clone());
945 }
946 }
947
948 // -----------------------------------------------------------------------
949 // Infer-only mode
950 // -----------------------------------------------------------------------
951
952 /// Run a closure with `infer_only` mode enabled. Restores the previous
953 /// mode on exit. In this mode, `infer` skips def-eq checks for App arg
954 /// types and Let value types — it only synthesizes the type.

Callers 12

try_proof_irrelMethod · 0.80
is_prop_typeMethod · 0.80
try_def_eq_unitMethod · 0.80
try_eta_expansionMethod · 0.80
try_eta_structMethod · 0.80
try_struct_eta_iotaMethod · 0.80
synth_ctor_when_kMethod · 0.80
try_reduce_decidableMethod · 0.80
with_infer_only_scopingFunction · 0.80
is_large_eliminatorMethod · 0.80

Calls

no outgoing calls