-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Bump chalk #4982
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
Bump chalk #4982
Conversation
What do you mean? Do these even exist as well-known traits in Chalk? |
Ah, never mind those. I think the problem is that here |
It looks like |
Ah, that should be |
Maybe we should rename |
bac3910
to
f05a5ca
Compare
Done, but after a rebase it crashes with
|
Hmm I think that's a bug in Chalk. Looking into it. |
There were two problems: - the FnDef impl was using a wrong substitution for the FnDef (calling `builder.substitution_in_scope()`, which wasn't even necessarily the same number of parameters -- not sure what the intention was there) - when looking for `Normalize` clauses, the self type wasn't generalized (so bound variables were handled wrongly). (This lead to crashes when trying to integrate it in rust-analyzer: rust-lang/rust-analyzer#4982)
There were two problems: - the FnDef impl was using a wrong substitution for the FnDef (calling `builder.substitution_in_scope()`, which wasn't even necessarily the same number of parameters -- not sure what the intention was there) - when looking for `Normalize` clauses, the self type wasn't generalized (so bound variables were handled wrongly). (This lead to crashes when trying to integrate it in rust-analyzer: rust-lang/rust-analyzer#4982)
I think that Chalk PR should fix it. |
There were two problems: - the FnDef impl was using a wrong substitution for the FnDef (calling `builder.substitution_in_scope()`, which wasn't even necessarily the same number of parameters -- not sure what the intention was there) - when looking for `Normalize` clauses, the self type wasn't generalized (so bound variables were handled wrongly). (This lead to crashes when trying to integrate it in rust-analyzer: rust-lang/rust-analyzer#4982)
4284d9f
to
ac8f86b
Compare
It does! I updated the PR with a |
Hm, long-term, this is not the pattern I'd love to see.... I'd say its pretty crucial to be able to apply improvements immediately, without waiting (as blocking easily accumulates). But that interacts with vendoring.... |
I've been watching those percentages drop towards 0 since the beginning of 2019 😀.
|
Unfortunately, this doesn't fix #2880. |
This doesn't implement closures. |
It shouldn't need to, since we still have our own implementation of the built-in impl for that -- but isn't #2880 about function pointers? 🤔 |
Sorry, I just had the impression that we’ve had support for that (per #4493). |
Ah wait, no, we do indeed not have built-in impls of |
I've found the problem -- we're lowering the type parameter default wrongly, with a placeholder where a variable should be, so we end up with |
bors r+ |
I wanted to set up a repository action dispatch which when used can create new releases in chalk instead of doing it every Sunday. @jackh726 I think we should do that for chalk. |
@pksunkara that's fine with me if there's a nice way to do that with github |
We can't do that with github itself. We will need a small app like https://www.actionspanel.app or something else. Maybe @pietroalbini can setup a dashboard on the rust-lang.org to send these repository dispatches as part of rust infra. |
rust-analyzer releases are done by pushing to a release branch, maybe that could work for chalk too? |
@pksunkara GitHub Actions recently added a UI for starting |
Haven't looked into how chalk is published, but I would probably do the following:
I think "push the branch" somewhat better trigger than "push the button". |
Actually, the UI is quite nice! You can even set the version to be published. This would be nice to transition to when we don't want weekly auto-releases. |
This passes the tests, but fails in a weird way on
analysis-stats
:It's as if we're returning
None
for a well-known trait thatchalk
asks about. That seems to happen forDeref
,CoerceUnsized
andTry
.r? @flodiebold