211
212 // Lowering state.
213▶ try_block_scope: TryBlockScope::Function,
214 loop_scope: None,
215 is_in_loop_condition: false,
· · ·
286
287 // We do not need to look at `partial_res_overrides`. That map only contains overrides for
288▶ // `self_param` locals. And here we are looking for the function definition that `expr`
289 // resolves to.
290 let def_id = self.partial_res_map.get(&expr.id)?.full_res()?.opt_def_id()?;
· · ·
446enum TryBlockScope {
447 /// There isn't a `try` block, so a `?` will use `return`.
448▶ Function,
449 /// We're inside a `try { … }` block, so a `?` will block-break
450 /// from that block using a type depending only on the argument.
· · ·
780 /// The lowered item is registered into `self.children`.
781 ///
782▶ /// This function sets up `HirId` lowering infrastructure,
783 /// and stashes the shared mutable state to avoid pollution by the closure.
784 #[instrument(level = "debug", skip(self, f))]
· · ·
964 // This can happen when trying to lower the return type `x` in erroneous code like
965 // async fn foo(x: u8) -> x {}
966▶ // In that case, `x` is lowered as a function parameter, and the return type is lowered as
967 // an opaque type as a synthesized HIR owner.
968 res.unwrap_or(Res::Err)
+ 13 more matches in this file