about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-06-19 16:52:12 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-06-19 16:52:12 +0000
commit689607e7a3c601a4982fb5dbddc99ee79b08a525 (patch)
treec0e0c13d5ed6919c998b022985640d42660c16a2
parent3a1edd8212381d0b825a5bcb876a8f05ff3ff35a (diff)
downloadrust-689607e7a3c601a4982fb5dbddc99ee79b08a525.tar.gz
rust-689607e7a3c601a4982fb5dbddc99ee79b08a525.zip
Remove duplicated comment.
-rw-r--r--compiler/rustc_mir_build/src/build/mod.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_mir_build/src/build/mod.rs b/compiler/rustc_mir_build/src/build/mod.rs
index 1868496f99d..49cbe3e2c9b 100644
--- a/compiler/rustc_mir_build/src/build/mod.rs
+++ b/compiler/rustc_mir_build/src/build/mod.rs
@@ -36,13 +36,6 @@ pub(crate) fn mir_built(
     tcx.alloc_steal_mir(mir_build(tcx, def))
 }
 
-/// 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.
-///
-/// For generators this only contains upvars that are shared by all states.
 pub(crate) fn closure_saved_names_of_captured_variables<'tcx>(
     tcx: TyCtxt<'tcx>,
     def_id: LocalDefId,