diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-10-03 11:49:05 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-10-04 07:54:03 -0400 |
| commit | eb94cdd85e2b48030684a38fa1d6f58e2c301a7d (patch) | |
| tree | d101e9b807a6daabe3881cdc64d641aa41d6924f | |
| parent | 33337bb855d453c0077764f6a5488b3ff109b6f5 (diff) | |
| download | rust-eb94cdd85e2b48030684a38fa1d6f58e2c301a7d.tar.gz rust-eb94cdd85e2b48030684a38fa1d6f58e2c301a7d.zip | |
Apply suggestions from review
Co-authored-by: matthewjasper <20113453+matthewjasper@users.noreply.github.com>
| -rw-r--r-- | compiler/rustc_mir_build/src/build/scope.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/issue-72470-llvm-dominate.rs | 2 |
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 |
