-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Trait upcasting coercion (part 3) #88135
Conversation
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri Some changes occured to rustc_codegen_cranelift cc @bjorn3 |
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.
r=me with assertion
@bors delegate+ |
✌️ @crlf0710 can now approve this pull request |
Assertions has been added and CI is green. @bors r=nikomatsakis |
📌 Commit c22dfab has been approved by |
@@ -759,48 +760,38 @@ fn vtable_trait_first_method_offset<'tcx>( | |||
pub fn vtable_trait_upcasting_coercion_new_vptr_slot( | |||
tcx: TyCtxt<'tcx>, | |||
key: ( | |||
ty::PolyTraitRef<'tcx>, // trait owning vtable | |||
ty::PolyTraitRef<'tcx>, // super trait ref | |||
Ty<'tcx>, // trait object type whose trait owning vtable |
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.
This doesn't quite work out grammatically.
☀️ Test successful - checks-actions |
…komatsakis Trait upcasting coercion (part 3) By using separate candidates for each possible choice, this fixes type-checking issues in previous commits. r? `@nikomatsakis`
By using separate candidates for each possible choice, this fixes type-checking issues in previous commits.
r? @nikomatsakis