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)
| 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. |
no outgoing calls