-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
allow eq constraints on associated constants #87648
Conversation
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy Some changes occurred in src/tools/rustfmt. |
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
I have been musing about "just" adding a I'll give this PR a closer review on monday, but my fingers are still itching for |
Hmmmm, I think if it's a useful tool to simplify implementations, then it's probably useful, but at the same time I can't really picture what a |
1798d94
to
5756faf
Compare
This comment has been minimized.
This comment has been minimized.
33ffbf3
to
58c97a9
Compare
This comment has been minimized.
This comment has been minimized.
58c97a9
to
6e2cc3f
Compare
This comment has been minimized.
This comment has been minimized.
6e2cc3f
to
34248d8
Compare
This comment has been minimized.
This comment has been minimized.
34248d8
to
46cd68f
Compare
This comment has been minimized.
This comment has been minimized.
46cd68f
to
201c9dd
Compare
This comment has been minimized.
This comment has been minimized.
it is essentially the equivalent of a built-in think about it this way: before const generics we had If we want to we could even represent it as such. So not even adding a |
I've never heard of typenum, I've not been working on rustc long enough to have seen it 😂. If you're going to implement it, tag me in the changes and I'll hold off on this change until that's done? |
I'm going to do an MCP, and if it is declined, we go with your PR, if not, I'll implement Note: typenum is just a regular crate on crates.io, nothing rustc specific. It was the go-to workaround for lack of const generics and still is the go-to workaround for lack of |
Sounds good, please cc in the MCP as well, I'm interested in those changes as well! |
☔ The latest upstream changes (presumably #86860) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @oli-obk |
Changes to llvm and cargo looks like not intended, bad rebase? |
Finished benchmarking commit (7bc7be8): comparison url. Summary: This change led to moderate relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
|
I don't see any submodule changes... is the mobile app hiding them from me? |
hmmm well the cargo lock file would fail CI if I didn't update @klensy, so I just put it in, not sure what caused it to change |
Oof yea, the app just bails on me on these links... I guess no more reviews in the app :( Please revert the submodule changes and the lockfile changes! |
r-a too, https://github.com/rust-lang/rust/pull/87648/files#diff-134ddb5af2afab7937607c91728e51356f98d5f6fd3264209d7810021d42bf9d, maybe some other changes unspotted. |
Do I have permission to revert the PR? I can push to the branch again but since it's already merged edit: or what exactly should I do? |
You can revert the PR locally and open a new PR with the revert. Revert all commits, squash the reverts, and only keep the reverts of the submodules and cargo lock, the functional changes can stay |
This PR changed the crate cc @CraftSpider (as rustdoc json maintainer) |
@Urgau simply bumping version is wrong, as this pr should be reverted. |
rustdoc hitted too, btw. Or it expected changes? Idk. |
The changes are expected from this PR, yes |
…on, r=oli-obk Increase the format version of rustdoc-json-types PR rust-lang#87648 changed `rustdoc-json-types` without increasing the format version. rust-lang@e7529d6#diff-ede26372490522288745c5b3df2b6b2a1cc913dcd09b29af3a49935afe00c7e6 This PR increase the format version by +1 and move the `FORMAT_VERSION` constant to the start of the file to hopefully make it more clear that `rustdoc-json-types` is versioned.
…on, r=oli-obk Increase the format version of rustdoc-json-types PR rust-lang#87648 changed `rustdoc-json-types` without increasing the format version. rust-lang@e7529d6#diff-ede26372490522288745c5b3df2b6b2a1cc913dcd09b29af3a49935afe00c7e6 This PR increase the format version by +1 and move the `FORMAT_VERSION` constant to the start of the file to hopefully make it more clear that `rustdoc-json-types` is versioned.
…on, r=oli-obk Increase the format version of rustdoc-json-types PR rust-lang#87648 changed `rustdoc-json-types` without increasing the format version. rust-lang@e7529d6#diff-ede26372490522288745c5b3df2b6b2a1cc913dcd09b29af3a49935afe00c7e6 This PR increase the format version by +1 and move the `FORMAT_VERSION` constant to the start of the file to hopefully make it more clear that `rustdoc-json-types` is versioned.
…-obk allow eq constraints on associated constants Updates rust-lang#70256 (cc `@varkor,` `@Centril)`
Updates #70256
(cc @varkor, @Centril)