Skip to content

rustc: check supertraits for object safety #19539

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

Merged
merged 1 commit into from
Dec 7, 2014
Merged

rustc: check supertraits for object safety #19539

merged 1 commit into from
Dec 7, 2014

Conversation

emberian
Copy link
Member

@emberian emberian commented Dec 4, 2014

Closes #18959

Technically, this causes code that once compiled to no longer compile, but
that code probably never ran.

[breaking-change]


Not quite sure the error message is good enough, I feel like it ought to tell you "because it inherits from non-object-safe trait Foo", so I've opened up a follow-up issue #19538

@nikomatsakis
Copy link
Contributor

r+ if the recursion is changed to iteration

Closes #18959

Technically, this causes code that once compiled to no longer compile, but
that code probably never ran.

[breaking-change]
bors added a commit that referenced this pull request Dec 7, 2014
Closes #18959

Technically, this causes code that once compiled to no longer compile, but
that code probably never ran.

[breaking-change]

------------

Not quite sure the error message is good enough, I feel like it ought to tell you "because it inherits from non-object-safe trait Foo", so I've opened up a follow-up issue #19538
@bors bors closed this Dec 7, 2014
@bors bors merged commit 6e18b5a into rust-lang:master Dec 7, 2014
stepancheg added a commit to stepancheg/rust-protobuf that referenced this pull request Dec 9, 2014
Something's changed in Rust: rust-lang/rust#19539
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.

Object safety does not consider supertraits
3 participants