rust/compiler/rustc_middle/src
bors 8824994ccd Auto merge of #108691 - aliemjay:closure-subject, r=jackh726
fix multiple issues when promoting type-test subject

Multiple interdependent fixes.  See linked issues for a short description of each.

When Promoting a type-test `T: 'a` from within the closure back to its parent function, there are a couple pre-existing bugs and limitations. They were exposed by the recent changes to opaque types because the type-test subject (`T`) is no longer a simple ParamTy.

Commit 1:
Fixes #108635
Fixes #107426

Commit 2:
Fixes #108639

Commit 3:
Fixes #107516
2023-03-07 03:50:22 +00:00
..
dep_graph Pass DepContext and QueryContext by value when practical 2023-02-14 17:21:18 +01:00
hir rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
infer canonicalization 2023-03-03 12:45:03 +01:00
middle rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
mir Auto merge of #108691 - aliemjay:closure-subject, r=jackh726 2023-03-07 03:50:22 +00:00
query Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
thir Move THIR printing to rustc_mir_build. 2023-02-26 14:31:15 +00:00
traits canonicalization 2023-03-03 12:45:03 +01:00
ty Rollup merge of #108770 - GuillaumeGomez:improve-doc-and-naming, r=cjgillot 2023-03-05 20:57:22 +01:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs Wrap more into into closure_typeinfo query. 2023-02-26 10:30:27 +00:00
error.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Make ExprKind the first field in thir::Expr 2023-03-02 18:21:44 +00:00
values.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00