45 matches across 1 files for func main path:compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs lang:Rust
snippet_mode: auto · sorted by relevance
compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs RUST 45 matches · showing 5 view file →
464 && let Some(pos) = args.iter().position(|arg| arg.hir_id == expr.hir_id)
465 {
466 // The move occurred as one of the arguments to a function call. Is that
467 // argument generic? `def_id` can't be a closure here, so using `fn_sig` is fine
468 let arg_param = if self.infcx.tcx.def_kind(def_id).is_fn_like()
· · ·
478
479 // If the moved value is a mut reference, it is used in a
480 // generic function and it's type is a generic param, it can be
481 // reborrowed to avoid moving.
482 // for example:
· · ·
514 && let Some(arg) = fn_decl.inputs.get(pos + offset)
515 {
516 // If we can't suggest borrowing in the call, but the function definition
517 // is local, instead offer changing the function to borrow that argument.
518 let mut span: MultiSpan = arg.span.into();
· · ·
517 // is local, instead offer changing the function to borrow that argument.
518 let mut span: MultiSpan = arg.span.into();
519 span.push_span_label(
· · ·
522 );
523 let descr = match node.fn_kind() {
524 Some(hir::intravisit::FnKind::ItemFn(..)) | None => "function",
525 Some(hir::intravisit::FnKind::Method(..)) => "method",
526 Some(hir::intravisit::FnKind::Closure) => "closure",
+ 40 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.