Skip to content

Commit eb94cdd

Browse files
Apply suggestions from review
Co-authored-by: matthewjasper <[email protected]>
1 parent 33337bb commit eb94cdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_mir_build/src/build/scope.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ const ROOT_NODE: DropIdx = DropIdx::from_u32(0);
185185
/// * Drops on return and loop exit paths
186186
///
187187
/// Once no more nodes could be added to the tree, we lower it to MIR in one go
188-
/// in `build_drop_tree`.
188+
/// in `build_mir`.
189189
#[derive(Debug)]
190190
struct DropTree {
191191
/// Drops in the tree.
192192
drops: IndexVec<DropIdx, (DropData, DropIdx)>,
193193
/// Map for finding the inverse of the `next_drop` relation:
194194
///
195-
/// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind] == i`
195+
/// `previous_drops[(drops[i].1, drops[i].0.local, drops[i].0.kind)] == i`
196196
previous_drops: FxHashMap<(DropIdx, Local, DropKind), DropIdx>,
197197
/// Edges into the `DropTree` that need to be added once it's lowered.
198198
entry_points: Vec<(DropIdx, BasicBlock)>,

src/test/ui/issue-72470-llvm-dominate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// compile-flags: -C opt-level=3
22
// aux-build: issue-72470-lib.rs
33
// edition:2018
4-
// check-pass
4+
// build-pass
55

66
// Regression test for issue #72470, using the minimization
77
// in https://github.com/jonas-schievink/llvm-error

0 commit comments

Comments
 (0)