Skip to content

Refactor rvalue datums in trans to carry the expression id from which they originated #12731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikomatsakis opened this issue Mar 6, 2014 · 4 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.

Comments

@nikomatsakis
Copy link
Contributor

Currently in trans rvalue datums do not know the expr id from which they originated. As a result, many parts of the code must track this separately, so that if we have to add a temporary cleanup, we can select the appropriate cleanup scope (which is a function of the trans id). I've been wanting for a while to refactor things so that the Rvalue type carries this node-id along with it.

cc @eddyb, this kind of refactoring might interest you

@eddyb
Copy link
Member

eddyb commented Mar 6, 2014

Sounds like this could simplify a datumized trans (which I've yet to get to doing), I'll keep it in mind.

@steveklabnik steveklabnik added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Jan 23, 2015
@steveklabnik
Copy link
Member

@nikomatsakis is this refactoring still relevant?

@steveklabnik
Copy link
Member

Given that it's been a year with no update, I'm giving it a close. @nikomatsakis let me know if you think it's still relevant to keep open.

@nikomatsakis
Copy link
Contributor Author

On Tue, Feb 02, 2016 at 10:27:23AM -0800, Steve Klabnik wrote:

Given that it's been a year with no update, I'm giving it a close. @nikomatsakis let me know if you think it's still relevant to keep open.

Nah, MIR makes this irrelevant.

flip1995 pushed a commit to flip1995/rust that referenced this issue May 17, 2024
make [`from_str_radix_10`] skip constant context

fixes: rust-lang#12731

---

changelog: make [`from_str_radix_10`] skip constant context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

No branches or pull requests

3 participants