Check ConstArgHasType goals even when not wfchecking#150322
Check ConstArgHasType goals even when not wfchecking#150322BoxyUwU wants to merge 1 commit intorust-lang:mainfrom
ConstArgHasType goals even when not wfchecking#150322Conversation
|
changes to the core type system |
| enter_wf_checking_ctxt_inner(tcx, body_def_id, !tcx.features().trivial_bounds(), f) | ||
| } | ||
|
|
||
| pub(super) fn enter_wf_checking_ctxt_without_checking_global_bounds<'tcx, F>( |
There was a problem hiding this comment.
it seems suboptimal to me that we implicitly check things about the where clauses of an item just from creating a wfcx. ideally this would happen as part of actually checking the where clauses or something?
|
@bors try |
Check `ConstArgHasType` goals even when not wfchecking
This comment has been minimized.
This comment has been minimized.
|
needs a crater run + fcp |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
💔 Test for d15b493 failed: CI. Failed jobs:
|
ef323a1 to
1b22adb
Compare
|
crazy, completely flipped one of the like two conditions in this PR by accident @bors try |
This comment has been minimized.
This comment has been minimized.
Check `ConstArgHasType` goals even when not wfchecking
| debug!(?self.out); | ||
| } | ||
|
|
||
| #[instrument(level = "debug", skip(self))] |
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
damn people are actually relying on this :( |
|
"relying on this" 😅 people actually have incorrect unused type aliases in their code xd |
|
technically they can be used because you can do sth like |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
| } | ||
|
|
||
| fn add_wf_preds_for_dyn_ty( | ||
| fn nominal_obligations_not_referencing_self( |
There was a problem hiding this comment.
instantiate_identity the preds then walk for Self#0 then wrap in an early binder and instantiate a second time?
There was a problem hiding this comment.
or why am i even filtering to stuff not involving Self i dont remember, should just be able to use the object type to instantiate Self ...
Fixes #149774
r? types