Skip to content

Conversation

FractalFir
Copy link
Contributor

All uses of the current_func field of Context in Builder can be safely replaced with Builder::current_func. This is done in preparation for removal of that field.

Only one use of current_func remains - within const_undef, which is a function of Context, and not Builder.

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

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

Nice improvement!
Thanks!

@antoyo antoyo merged commit 98d65f2 into rust-lang:master Jun 26, 2025
38 checks passed
@antoyo
Copy link
Contributor

antoyo commented Jun 26, 2025

Thanks for your contribution!

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.

2 participants