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

Avoid creating cyclic types during inference #17157

Merged
merged 1 commit into from
Sep 11, 2014

Conversation

nikomatsakis
Copy link
Contributor

Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler, in particular on the trait reform branch.

r? @pnkfelix or @pcwalton

cc #5527

…detecting them in resolve. This simplifies logic elsewhere in the compiler. cc rust-lang#5527
bors added a commit that referenced this pull request Sep 11, 2014
Avoid ever constructing cyclic types in the first place, rather than detecting them in resolve. This simplifies logic elsewhere in the compiler, in particular on the trait reform branch.

r? @pnkfelix or @pcwalton 

cc #5527
let f;
let g;
g = f;
f = box(GC) g; //~ ERROR cyclic type of infinite size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sigh I really wish we would stop accumulating tests using @T aka Gc<T>.

@bors bors closed this Sep 11, 2014
@bors bors merged commit c4d56b7 into rust-lang:master Sep 11, 2014
@nikomatsakis nikomatsakis deleted the occurs-check branch March 30, 2016 16:16
lnicola pushed a commit to lnicola/rust that referenced this pull request May 19, 2024
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

Successfully merging this pull request may close these issues.

4 participants