Running this program: ``` enum Foo = uint; fn main() { let x = Foo(1); let y = 1; io::println(fmt!("%?, %?", x, y)); } ``` yields the output: ``` , 1 ``` Not so good.
Activity
nikomatsakis commentedon Sep 15, 2012
This is a real hindrance to debugging the type checker, so I put it as a blocker for 0.4.
Blei commentedon Sep 16, 2012
Even more interesting:
Produces:
Where the printed value changes in each invocation...
Blei commentedon Sep 16, 2012
This issue can be fixed with
This is almost certainly not the correct fix, but might be a hint about where the problem is.
nikomatsakis commentedon Sep 17, 2012
Thanks, I hadn't gotten around to opening repr.rs, but after your
comments the fix seems pretty obvious. Will push a patch soon.
nikomatsakis commentedon Sep 17, 2012
Oh, I should rebase before I repeat @pcwalton's work :)
Merge pull request rust-lang#3506 from rchaser53/issue-3505
Auto merge of rust-lang#3506 - rust-lang:rustup-2024-04-24, r=RalfJung
Merge pull request rust-lang#3506 from slyngbaek/3183