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

Infinite recursion when traversing a cyclic data structure with repr #6180

Closed
Aatch opened this issue May 2, 2013 · 2 comments
Closed

Infinite recursion when traversing a cyclic data structure with repr #6180

Aatch opened this issue May 2, 2013 · 2 comments

Comments

@Aatch
Copy link
Contributor

Aatch commented May 2, 2013

struct A { a: Option<@mut A> }
fn main() {
  let a = @mut A { a: None }; let mut v = Some(a); a.a <-> v;
  io::println(fmt!("%?",a));
}

This causes the formatter to go into an infinite loop.

Nominating for maturity 3, since it's mostly likely a problem with the reflection api.

@pnkfelix
Copy link
Member

pnkfelix commented May 2, 2013

Duplicate of #3768.

@pnkfelix pnkfelix closed this as completed May 2, 2013
@pnkfelix
Copy link
Member

pnkfelix commented May 2, 2013

(but I'll push your nomination request over to #3768.)

bors added a commit to rust-lang-ci/rust that referenced this issue Oct 24, 2020
Update semver 0.10 -> 0.11

r? `@ghost,` blocking CI

changelog: none
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

No branches or pull requests

2 participants