Module rustc_borrowck::diagnostics::conflict_errors

source ·


  • Look for break expressions within any arbitrary expressions. We’ll do this to infer whether this is a case where the moved value would affect the exit of a loop, making it unsuitable for a .clone() suggestion.
  • Given a set of spans representing statements initializing the relevant binding, visit all the function expressions looking for branching code paths that do not initialize the binding.
  • MoveSite 🔒
  • Detect whether one of the provided spans is a statement nested within the top-most visited expr