diff --git a/compiler/rustc_mir_build/src/build/scope.rs b/compiler/rustc_mir_build/src/build/scope.rs index 18045b92edfd..ad6386ca12d5 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, /// 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 feea4683dada..5bb69a073052 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