-
Notifications
You must be signed in to change notification settings - Fork 109
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
Small fixes #882
Small fixes #882
Conversation
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.
I am not sure about the removed assert
s, but other changes look good to me.
@vakaras if I convert this line:
to: let qvar_ty = encoder.encode_type(arg_ty).unwrap().convert_to_snapshot(); Quantification over generic types works... but I probably shouldn't use |
Isn't the snapshot encoder, a field of the |
Yeah the snapshot encoder works with the usual interface trait + state mechanism now. So, if you import |
Requires #895 now |
Will merge this today or tomorrow if there are no objections? Though it's a small change it should actually improve generics support quite a bit |
@JonasAlaif Can I try to get #899 in first? |
@Aurel300 sounds good, looks like that might also fix some of the issues I might be running into with the test I just added. Let's see |
Status: I found some problems with generics and extern specs still. WIP but I think the test you added @JonasAlaif should be supported soon. (Some notes:) The wrappers (from extern spec desugaring) are not inherited the same way that The reason the wrappers exist in the first place is because |
bors r+ |
901: NFM22 examples r=Aurel300 a=Aurel300 This is to allow linking the examples online from the paper. PRs to be done before the deadline: - [x] #686 - [x] #882 - [x] #887 - [x] #899 972: Fix slice with range encoding r=JonasAlaif a=JonasAlaif Fixes #960 Issue is described there. Not sure if this is the correct way to do the error reporting? It would be really nice to just have a contract for `index` and `index_mut` and report the error as a precondition violation of those. E.g. I really don't want to hardcode the pledge required for `index_mut` by hand. Co-authored-by: Aurel Bílý <aurel.bily@gmail.com> Co-authored-by: Jonas <jonas.fiala.cardiff@gmail.com>
Kinda fixes #878 but would prefer if @vakaras looked at it/made it less hacky