diff --git a/compiler/rustc_mir_build/src/build/scope.rs b/compiler/rustc_mir_build/src/build/scope.rs index 2d29d0b6928..edace55f572 100644 --- a/compiler/rustc_mir_build/src/build/scope.rs +++ b/compiler/rustc_mir_build/src/build/scope.rs @@ -1023,7 +1023,7 @@ fn diverge_cleanup(&mut self) -> DropIdx { cached_drop } - /// This is similar to [diverge_cleanup_target] except its target is set to + /// This is similar to [diverge_cleanup] except its target is set to /// some ancestor scope instead of the current scope. /// It is possible to unwind to some ancestor scope if some drop panics as /// the program breaks out of a if-then scope.