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

Fix broken trait or type in impl ingot check #863

Merged
merged 2 commits into from Mar 29, 2023

Conversation

cburgdorf
Copy link
Collaborator

@cburgdorf cburgdorf commented Mar 29, 2023

What was wrong?

Fe has an orphan rule for Traits similar to Rust's that requires
that either the trait or the type that we are implementing the trait for
are located in the same ingot as the impl. This rule was implemented
incorrectly so that instead of requiring them to be in the same ingot,
they were required to be in the same module.

How was it fixed?

This change fixes this so that the orphan rule is enforced correctly.

To-Do

@cburgdorf cburgdorf force-pushed the christoph/fix/trait_ingot_check branch from 6902719 to e7af7d2 Compare March 29, 2023 08:31
@cburgdorf cburgdorf marked this pull request as ready for review March 29, 2023 08:32
@cburgdorf cburgdorf merged commit cdd72da into ethereum:master Mar 29, 2023
7 checks passed
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.

None yet

2 participants