DepGraphQuery: correctly skip adding edges with not-yet-added nodes#152590
DepGraphQuery: correctly skip adding edges with not-yet-added nodes#152590rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
59d74d7 to
b0366ce
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=mati865 |
DepGraphQuery: correctly skip adding edges with not-yet-added nodes Fixes rust-lang#142152. The current logic already skips some edges, so I'm not sure how critical it is to have *all* the edges recorded, the logic seems to only be used for debug dumping. Recording all edges requires supporting holes in the `LinkedGraph` data structure, to add nodes and edges out of order, rust-lang#151821 implements that at cost of complicating the data structure.
…uwer Rollup of 7 pull requests Successful merges: - #152001 (mGCA: Validate const literal against expected type) - #152120 (Don't ICE on layout error in vtable computation) - #152512 (core: Implement feature `float_exact_integer_constants`) - #152531 (`proc_macro::bridge`: simplify `ExecutionStrategy` and `DispatcherTrait`) - #152577 (Port #[rustc_proc_macro_decls] to the new attribute parser.) - #152590 (DepGraphQuery: correctly skip adding edges with not-yet-added nodes) - #152612 (Rename `inline_fluent!` to `msg!`)
…uwer Rollup of 8 pull requests Successful merges: - #152618 (stdarch subtree update) - #152001 (mGCA: Validate const literal against expected type) - #152120 (Don't ICE on layout error in vtable computation) - #152531 (`proc_macro::bridge`: simplify `ExecutionStrategy` and `DispatcherTrait`) - #152577 (Port #[rustc_proc_macro_decls] to the new attribute parser.) - #152570 (Port #[rustc_test_marker] to the attribute parser) - #152590 (DepGraphQuery: correctly skip adding edges with not-yet-added nodes) - #152612 (Rename `inline_fluent!` to `msg!`)
Rollup merge of #152590 - petrochenkov:skipedge, r=mati865 DepGraphQuery: correctly skip adding edges with not-yet-added nodes Fixes #142152. The current logic already skips some edges, so I'm not sure how critical it is to have *all* the edges recorded, the logic seems to only be used for debug dumping. Recording all edges requires supporting holes in the `LinkedGraph` data structure, to add nodes and edges out of order, #151821 implements that at cost of complicating the data structure.
This is the opposite of what I have expected from a "proper fix". |
|
The proper fix is #152621. |
Fixes #142152.
The current logic already skips some edges, so I'm not sure how critical it is to have all the edges recorded, the logic seems to only be used for debug dumping.
Recording all edges requires supporting holes in the
LinkedGraphdata structure, to add nodes and edges out of order, #151821 implements that at cost of complicating the data structure.