Skip to content

Update try_green_mark part#2778

Closed
reddevilmidzy wants to merge 1 commit intorust-lang:mainfrom
reddevilmidzy:red-green
Closed

Update try_green_mark part#2778
reddevilmidzy wants to merge 1 commit intorust-lang:mainfrom
reddevilmidzy:red-green

Conversation

@reddevilmidzy
Copy link
Member

@reddevilmidzy reddevilmidzy commented Feb 18, 2026

try_green_mark method has been moved

While I was looking at the code, I found that the existing one was from 7 years ago and is slightly different from the current structure, so I will update this as well.

Ah, the link has been fixed here rust-lang/rust#152703

algorithm, that, you've guessed it, tries to mark a given node as green:

```rust,ignore
fn try_mark_green(tcx, current_node) -> bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

I thought this part of the code was old and would be good to change, but it seems appropriate for pseudo code, so I'll just leave it.

@reddevilmidzy reddevilmidzy deleted the red-green branch February 18, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments