Skip to content
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

repr and/or reflection gets confused about box mutability #4210

Closed
graydon opened this issue Dec 18, 2012 · 3 comments
Closed

repr and/or reflection gets confused about box mutability #4210

graydon opened this issue Dec 18, 2012 · 3 comments
Labels
A-type-system Area: Type system

Comments

@graydon
Copy link
Contributor

graydon commented Dec 18, 2012

In core::repr there representation generated for @mut 10 is "@10" whereas for ~mut 10 it's "~mut 10". Someone's disagreeing about that mutability qualifier.

@ghost ghost assigned graydon Dec 18, 2012
catamorphism added a commit to catamorphism/rust that referenced this issue Mar 20, 2013
@catamorphism
Copy link
Contributor

Not critical for 0.6, de-milestoning

@thestinger
Copy link
Contributor

This is still an issue. It occurs because a lone @mut 5 is somehow treated as an opaque_box, but one inside another type like a tuple is treated correctly.

@thestinger
Copy link
Contributor

Closing in favour of #8720. The root cause is the normalization of both mutable/immutable managed boxes to opaque boxes.

@graydon graydon removed their assignment Jun 16, 2014
calebcartwright pushed a commit to calebcartwright/rust that referenced this issue Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

3 participants