Skip to content

Can Place in MIR be static variable? #1589

New issue

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

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

Already on GitHub? # to your account

Closed
StevenJiang1110 opened this issue Feb 8, 2023 · 1 comment · Fixed by #1632
Closed

Can Place in MIR be static variable? #1589

StevenJiang1110 opened this issue Feb 8, 2023 · 1 comment · Fixed by #1632

Comments

@StevenJiang1110
Copy link

I learn from the MIR data types section that a Place can be static variable.

截屏2023-02-08 10 58 54

But from the doc, I can't see that Place can used to represent a static variable. Is the rustc-dev-guide outdated here? Further, the Place is a struct instead of an enum now, while rustc-dev-guide describe it as an enum.

@JohnTitor
Copy link
Member

JohnTitor commented Feb 9, 2023

Yeah, rust-lang/rust#67000 changed it, we have to reflect it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants