mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Apply suggestions from review
Co-authored-by: matthewjasper <20113453+matthewjasper@users.noreply.github.com>
This commit is contained in:
parent
33337bb855
commit
eb94cdd85e
@ -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)>,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user