18 matches across 1 files for func main path:compiler/rustc_ast_lowering/src/lib.rs lang:Rust lang:Rust
snippet_mode: grep · sorted by relevance
compiler/rustc_ast_lowering/src/lib.rs RUST 18 matches · showing 5 view file →
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
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.