18 matches across 1 files for func main path:compiler/rustc_ast_lowering/src/lib.rs
snippet_mode: grep · sorted by relevance
compiler/rustc_ast_lowering/src/lib.rs RUST 18 matches · showing 5 view file →
188
189 // Lowering state.
190 try_block_scope: TryBlockScope::Function,
191 loop_scope: None,
192 is_in_loop_condition: false,
· · ·
262
263 // We do not need to look at `partial_res_overrides`. That map only contains overrides for
264 // `self_param` locals. And here we are looking for the function definition that `expr`
265 // resolves to.
266 let def_id = self.partial_res_map.get(&expr.id)?.full_res()?.opt_def_id()?;
· · ·
452enum TryBlockScope {
453 /// There isn't a `try` block, so a `?` will use `return`.
454 Function,
455 /// We're inside a `try { … }` block, so a `?` will block-break
456 /// from that block using a type depending only on the argument.
· · ·
686 /// The lowered item is registered into `self.children`.
687 ///
688 /// This function sets up `HirId` lowering infrastructure,
689 /// and stashes the shared mutable state to avoid pollution by the closure.
690 #[instrument(level = "debug", skip(self, f))]
· · ·
844 // This can happen when trying to lower the return type `x` in erroneous code like
845 // async fn foo(x: u8) -> x {}
846 // In that case, `x` is lowered as a function parameter, and the return type is lowered as
847 // an opaque type as a synthesized HIR owner.
848 res.unwrap_or(Res::Err)
+ 13 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.