Resolve some cases of #132279 by using the right typing mode in the next solver#156141
Conversation
bac5eb5 to
7d76533
Compare
|
Some changes occurred to constck cc @fee1-dead Some changes occurred to the CTFE machinery |
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
7d76533 to
a59bc36
Compare
This comment has been minimized.
This comment has been minimized.
|
@rustbot review |
This comment has been minimized.
This comment has been minimized.
a59bc36 to
da70164
Compare
|
@bors r=lcnr |
|
@bors rollupo |
… r=lcnr Resolve some cases of rust-lang#132279 by using the right typing mode in the next solver r? @lcnr Convert 3 FIXMEs of rust-lang#132279 to using the right typing mode when we can (`tcx.use_typing_mode_borrowck()`) Also resolves rust-lang#155093, which I closed
… r=lcnr Resolve some cases of rust-lang#132279 by using the right typing mode in the next solver r? @lcnr Convert 3 FIXMEs of rust-lang#132279 to using the right typing mode when we can (`tcx.use_typing_mode_borrowck()`) Also resolves rust-lang#155093, which I closed
… r=lcnr Resolve some cases of rust-lang#132279 by using the right typing mode in the next solver r? @lcnr Convert 3 FIXMEs of rust-lang#132279 to using the right typing mode when we can (`tcx.use_typing_mode_borrowck()`) Also resolves rust-lang#155093, which I closed
…uwer Rollup of 7 pull requests Successful merges: - #146273 (lint ImproperCTypes: refactor linting architecture (part 2)) - #156173 (Fewer global node_id_to_def_id lookups) - #155961 (Deny warnings in the test for crates that are available on stable) - #156130 (Fold/visit tweaks) - #156131 (Metadata macro/query cleanups) - #156141 (Resolve some cases of #132279 by using the right typing mode in the next solver) - #156202 (llvm: Use correct type for splat mask)
|
This pull request was unapproved. This PR was contained in a rollup (#156238), which was unapproved. |
da70164 to
ef8be30
Compare
This comment has been minimized.
This comment has been minimized.
ef8be30 to
0d65aa2
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. |
|
@bors r+ rollup |
Rollup of 5 pull requests Successful merges: - #156141 (Resolve some cases of #132279 by using the right typing mode in the next solver) - #156244 (fix incorrect suggestions in private import diagnostic) - #156306 (Move tests consts) - #156333 (Avoid invalid spans in dotdotdot rest pattern suggestions) - #156337 (rustc-dev-guide subtree update)
Rollup merge of #156141 - jdonszelmann:use-right-typingmode, r=lcnr Resolve some cases of #132279 by using the right typing mode in the next solver r? @lcnr Convert 3 FIXMEs of #132279 to using the right typing mode when we can (`tcx.use_typing_mode_borrowck()`) Also resolves #155093, which I closed
Rollup of 5 pull requests Successful merges: - rust-lang/rust#156141 (Resolve some cases of rust-lang/rust#132279 by using the right typing mode in the next solver) - rust-lang/rust#156244 (fix incorrect suggestions in private import diagnostic) - rust-lang/rust#156306 (Move tests consts) - rust-lang/rust#156333 (Avoid invalid spans in dotdotdot rest pattern suggestions) - rust-lang/rust#156337 (rustc-dev-guide subtree update)
|
While trying to expand new solver testing in CI to keep it working, I've noticed that not only had we regressed building the stdlib (we knew that and now have CI to prevent that from happening before stabilization), we also regressed bootstrapping with the new solver enabled. That issue is still present on the main branch. Building a stage 2 compiler with a stage 1 w/ new solver compiler, or RUSTFLAGS, will ICE very strangely while building error: internal compiler error: compiler/rustc_ty_utils/src/sig_types.rs:114:13: Ctor(Variant, Fn) has not seen any uses of `walk_types` yet, ping oli-obk if you'd like any help
--> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-syntax-0.8.8/src/ast/mod.rs:1134:5
|
1134 | Item(ClassSetItem),
| ^^^^
thread 'rustc' (1986053) panicked at compiler/rustc_ty_utils/src/sig_types.rs:114:13:
I don't really know what's going on, but it looks like weirdness w/ opaque types, during codegen. I've bisected that to 68f9143 from this PR so I wanted to let you and @lcnr know in case you hadn't noticed. |

View all comments
r? @lcnr
Convert 3 FIXMEs of #132279 to using the right typing mode when we can (
tcx.use_typing_mode_borrowck())Also resolves #155093, which I closed