Next steps for FnDef binder changes (instantiate most FnDef binders) - #159403
Next steps for FnDef binder changes (instantiate most FnDef binders)#159403addiesh wants to merge 1 commit into
Conversation
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @oli-obk (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
014b214 to
d780036
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
d780036 to
6e740ba
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
330681e to
83e428c
Compare
This comment has been minimized.
This comment has been minimized.
83e428c to
9fb9767
Compare
This comment has been minimized.
This comment has been minimized.
9fb9767 to
3920a9e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5373d53 to
f118249
Compare
This comment has been minimized.
This comment has been minimized.
f118249 to
6aeb29e
Compare
This comment has been minimized.
This comment has been minimized.
6aeb29e to
ac8e8e5
Compare
Rollup merge of #159665 - addiesh:turbofish-fear-me, r=oli-obk Replace most `Ty::new_fn_def` calls with `type_of` queries directly This is so we can reduce the amount of code and changes in #159403. It should stand on its own, but really it's meant as an extended part of 159403. This allows getting the right `ty::FnDef` even cross-crate, as the `type_of` query results are stored in metadata, in contrast to the queries for computing the binder for various declarations. These binders are already cached via `fn_sig`, but using that is somewhat overkill and can cause cycle errors in some cases.
This comment has been minimized.
This comment has been minimized.
|
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer
Some changes occurred in coverage instrumentation. cc @Zalathar Some changes occurred in compiler/rustc_attr_parsing cc @jdonszelmann, @JonathanBrouwer These commits modify the If this was unintentional then you should revert the changes before this PR is merged.
cc @rust-lang/miri Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a, @makai410 Some changes occurred to the CTFE machinery The parser was modified, potentially altering the grammar of (stable) Rust cc @fmease
Some changes occurred in GUI tests. Some changes occurred to diagnostic attributes. cc @mejrs changes to the core type system cc @lcnr This PR modifies If appropriate, please update Some changes occurred in cc @BoxyUwU Some changes occurred in compiler/rustc_hir/src/attrs |
1047fdb to
d8350cc
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
this """"fixed"""" issue #133613, but the errors are absolutely nasty and it uses experimental features. This is worth checking out.
There was a problem hiding this comment.
This issue has been fixed correctly on main now, so after a rebase your PR should not affect it anymore
d8350cc to
85d2121
Compare
|
This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. Some changes occurred in tests/codegen-llvm/sanitizer cc @rcvalle Warning If you are changing how CI LLVM is built or linked, make sure to bump cc @jieyouxu
cc @calebzulawski, @programmerjake The reflection data structures are tied exactly to the implementation cc @oli-obk This PR modifies If appropriate, please update The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. cc @davidtwco, @BoxyUwU Some changes occurred in src/tools/cargo cc @weihanglo Some changes occurred in compiler/rustc_sanitizers cc @rcvalle The run-make-support library was changed cc @jieyouxu Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
|
ohhh no |
|
|
79d03c1 to
85d2121
Compare
85d2121 to
71f6804
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
View all comments
This change is a part of the ongoing effort to clean up binder/turbofishing behavior in the compiler (#156581).
This PR instantiates binders that were previously created via
ty::Binder::dummy()with meaningfully bound vars.r? oli-obk