Skip to content

Inline and remove DepGraphData::try_mark_parent_green. - #154125

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
nnethercote:rm-try_mark_parent_green
Mar 28, 2026
Merged

Inline and remove DepGraphData::try_mark_parent_green.#154125
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
nnethercote:rm-try_mark_parent_green

Conversation

@nnethercote

Copy link
Copy Markdown
Contributor

It has a single call site. And also remove all the debug! calls that clutter up the code. The end result is much easier to read, with try_mark_previous_green now recursively calling itself directly, instead of indirectly via try_mark_parent_green.

r? @oli-obk

It has a single call site. And also remove all the `debug!` calls that
clutter up the code. The end result is much easier to read, with
`try_mark_previous_green` now recursively calling itself directly,
instead of indirectly via `try_mark_parent_green`.
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 20, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@Zoxc

Zoxc commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

@bors try @rust-timer queue

LGTM, but since it's hot...

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 23, 2026
rust-borsBot pushed a commit that referenced this pull request Mar 23, 2026
Inline and remove `DepGraphData::try_mark_parent_green`.
@rust-bors

rust-borsBot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 46d5d85 (46d5d8597320abd1b8cf003fb97919182c8311ac, parent: eb9d3caf0511a5fa9fa70251e2ac9fa33a9a4652)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (46d5d85): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary -3.2%, secondary -2.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-3.2%[-3.3%, -3.1%]2
Improvements ✅
(secondary)
-2.3%[-2.3%, -2.3%]1
All ❌✅ (primary)-3.2%[-3.3%, -3.1%]2

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 484.336s -> 485.839s (0.31%)
Artifact size: 396.95 MiB -> 394.99 MiB (-0.49%)

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 23, 2026

@oli-obkoli-obk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-borsBot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4a439b6 has been approved by oli-obk

It is now in the queue for this repository.

@rust-borsrust-borsBot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 28, 2026
@RalfJungRalfJung mentioned this pull request Mar 28, 2026
rust-borsBot pushed a commit that referenced this pull request Mar 28, 2026
Rollup of 11 pull requests
Successful merges:
- #152880 (Tweak incorrect assoc item note)
- #153526 (Fix LegacyKeyValueFormat report from docker build: i686)
- #153613 (interpreter error reporting: remove arguments that are always the same)
- #154029 (Replace `truncate(0)` with `clear()`)
- #154125 (Inline and remove `DepGraphData::try_mark_parent_green`.)
- #154185 (Prevent no_threads RwLock's write() impl from setting mode to -1 when it is locked for reading)
- #154394 (Normalize rustc path prefix when testing `-Z track-diagnostics`)
- #154450 (Use the normal arg-parsing machinery for `-Zassert-incr-state`)
- #154475 (Emit a pre-expansion feature gate warning for `box`'ed struct field patterns)
- #154500 (EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic)
- #154502 (interpret: ensure that untupled arguments are actually tuples)
@rust-bors
rust-borsBot merged commit b3196a0 into rust-lang:mainMar 28, 2026
12 checks passed
@rustbotrustbot added this to the 1.96.0 milestone Mar 28, 2026
rust-timer added a commit that referenced this pull request Mar 28, 2026
Rollup merge of #154125 - nnethercote:rm-try_mark_parent_green, r=oli-obk
Inline and remove `DepGraphData::try_mark_parent_green`.
It has a single call site. And also remove all the `debug!` calls that clutter up the code. The end result is much easier to read, with `try_mark_previous_green` now recursively calling itself directly, instead of indirectly via `try_mark_parent_green`.
r? @oli-obk
@nnethercote
nnethercote deleted the rm-try_mark_parent_green branch March 29, 2026 22:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@nnethercote@rustbot@Zoxc@rust-timer@oli-obk