Function rustc_codegen_llvm::debuginfo::metadata::closure_saved_names_of_captured_variables[][src]

fn closure_saved_names_of_captured_variables<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId
) -> Vec<String>
Expand description

Returns names of captured upvars for closures and generators.

Here are some examples:

  • name__field1__field2 when the upvar is captured by value.
  • _ref__name__field when the upvar is captured by reference.