48 matches across 1 files for func main lang:Rust path:compiler/rustc_resolve/src/late/diagnostics.rs lang:Rust
snippet_mode: auto · sorted by relevance
compiler/rustc_resolve/src/late/diagnostics.rs RUST 48 matches · showing 5 view file →
63 "refer to the method with the fully-qualified path"
64 }
65 AssocSuggestion::AssocFn { called: true } => "call the associated function",
66 AssocSuggestion::AssocFn { called: false } => "refer to the associated function",
67 AssocSuggestion::AssocConst => "use the associated `const`",
· · ·
66 AssocSuggestion::AssocFn { called: false } => "refer to the associated function",
67 AssocSuggestion::AssocConst => "use the associated `const`",
68 AssocSuggestion::AssocType => "use the associated type",
· · ·
132}
133
134/// Description of the lifetimes appearing in a function parameter.
135/// This is used to provide a literal explanation to the elision failure.
136#[derive(Clone, Debug)]
· · ·
433 let (mod_prefix, mod_str, module, suggestion) = if path.len() == 1 {
434 debug!(?self.diag_metadata.current_impl_items);
435 debug!(?self.diag_metadata.current_function);
436 let suggestion = if self.current_trait_ref.is_none()
437 && let Some((fn_kind, _)) = self.diag_metadata.current_function
· · ·
437 && let Some((fn_kind, _)) = self.diag_metadata.current_function
438 && let Some(FnCtxt::Assoc(_)) = fn_kind.ctxt()
439 && let FnKind::Fn(_, _, ast::Fn { sig, .. }) = fn_kind
+ 43 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.