about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_mir_build/src/build/scope.rs4
-rw-r--r--src/test/ui/issue-72470-llvm-dominate.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_build/src/build/scope.rs b/compiler/rustc_mir_build/src/build/scope.rs
index 18045b92edf..ad6386ca12d 100644
--- a/compiler/rustc_mir_build/src/build/scope.rs
+++ b/compiler/rustc_mir_build/src/build/scope.rs
@@ -185,14 +185,14 @@ const ROOT_NODE: DropIdx = DropIdx::from_u32(0);
 /// * Drops on return and loop exit paths
 ///
 /// Once no more nodes could be added to the tree, we lower it to MIR in one go
-/// in `build_drop_tree`.
+/// in `build_mir`.
 #[derive(Debug)]
 struct DropTree {
     /// Drops in the tree.
     drops: IndexVec<DropIdx, (DropData, DropIdx)>,
     /// Map for finding the inverse of the `next_drop` relation:
     ///
-    /// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind] == i`
+    /// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind)] == i`
     previous_drops: FxHashMap<(DropIdx, Local, DropKind), DropIdx>,
     /// Edges into the `DropTree` that need to be added once it's lowered.
     entry_points: Vec<(DropIdx, BasicBlock)>,
diff --git a/src/test/ui/issue-72470-llvm-dominate.rs b/src/test/ui/issue-72470-llvm-dominate.rs
index feea4683dad..5bb69a07305 100644
--- a/src/test/ui/issue-72470-llvm-dominate.rs
+++ b/src/test/ui/issue-72470-llvm-dominate.rs
@@ -1,7 +1,7 @@
 // compile-flags: -C opt-level=3
 // aux-build: issue-72470-lib.rs
 // edition:2018
-// check-pass
+// build-pass
 
 // Regression test for issue #72470, using the minimization
 // in https://github.com/jonas-schievink/llvm-error