Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nashenas88/e5ad7f0a7193deae0b021924f2083513 to your computer and use it in GitHub Desktop.
Save Nashenas88/e5ad7f0a7193deae0b021924f2083513 to your computer and use it in GitHub Desktop.
let mut fraginfo_map = this.tcx.fragment_infos.borrow_mut();
let fn_did = this.tcx.hir.local_def_id(id);
let prev = fraginfo_map.insert(fn_did, fragment_infos);
assert!(prev.is_none());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment