Skip to content

Remove unnecesary uses of the 'current_func' field, replacing it with a call to function. - #722

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:func_refactor
Jun 26, 2025
Merged

antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:func_refactor

Conversation

@FractalFir

Copy link
Copy Markdown
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.

@antoyo antoyo 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.

Nice improvement!
Thanks!

@antoyo
antoyo merged commit 98d65f2 into rust-lang:master Jun 26, 2025
@antoyo

antoyo commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

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