-
Notifications
You must be signed in to change notification settings - Fork 595
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
ImplTypeDefId/ImplTypeId distinction #5245
Conversation
7d4107a
to
119edf6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 8 files at r1, all commit messages.
Reviewable status: 7 of 8 files reviewed, 1 unresolved discussion (waiting on @yuvalsw)
crates/cairo-lang-semantic/src/types.rs
line 357 at r1 (raw file):
if let crate::items::imp::ImplId::Concrete(concrete_impl) = impl_id { let impl_def_id = concrete_impl.impl_def_id(db); assert_eq!(ty.trait_id(db.upcast()), db.impl_def_trait(impl_def_id).unwrap());
Suggestion:
assert_eq!(Some(ty.trait_id(db.upcast())), db.impl_def_trait(impl_def_id));
119edf6
to
f4731dc
Compare
f4731dc
to
7e2c9a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 7 of 8 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-semantic/src/types.rs
line 357 at r1 (raw file):
if let crate::items::imp::ImplId::Concrete(concrete_impl) = impl_id { let impl_def_id = concrete_impl.impl_def_id(db); assert_eq!(ty.trait_id(db.upcast()), db.impl_def_trait(impl_def_id).unwrap());
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @yuvalsw)
This change is