diff options
| author | bors <bors@rust-lang.org> | 2023-07-10 19:01:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-10 19:01:30 +0000 |
| commit | 8ca44ef9caa4049d584fbbce218c219cdca33a2f (patch) | |
| tree | 245cc99a350527883e904a4b7d0f5ac49aeb843b /src | |
| parent | 05b82e551e781154ad2af8a72f34712e97206859 (diff) | |
| parent | 20429af7a3a9f6d7b4dfbcdc85a4fa8f6187f922 (diff) | |
| download | rust-8ca44ef9caa4049d584fbbce218c219cdca33a2f.tar.gz rust-8ca44ef9caa4049d584fbbce218c219cdca33a2f.zip | |
Auto merge of #112988 - spastorino:new-rpitit-24, r=compiler-errors
Replace RPITIT current impl with new strategy that lowers as a GAT This PR replaces the current implementation of RPITITs with the new implementation that we had under -Zlower-impl-trait-in-trait-to-assoc-ty flag that lowers the RPIT as a GAT on the trait and on the impls that implement that trait. Opening this PR as a draft because this goes after #112682, ~#112981~ and ~#112983~. As soon as those are merged, I can rebase and we should run perf, crater and test a lot. r? `@compiler-errors`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/formats/item_type.rs | 1 | ||||
| -rw-r--r-- | src/librustdoc/passes/collect_intra_doc_links.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librustdoc/formats/item_type.rs b/src/librustdoc/formats/item_type.rs index 452e14918fa..a3017201cb1 100644 --- a/src/librustdoc/formats/item_type.rs +++ b/src/librustdoc/formats/item_type.rs @@ -136,7 +136,6 @@ impl From<DefKind> for ItemType { | DefKind::AnonConst | DefKind::InlineConst | DefKind::OpaqueTy - | DefKind::ImplTraitPlaceholder | DefKind::Field | DefKind::LifetimeParam | DefKind::GlobalAsm diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs index 0dd9e590b9b..ca511d956b9 100644 --- a/src/librustdoc/passes/collect_intra_doc_links.rs +++ b/src/librustdoc/passes/collect_intra_doc_links.rs @@ -1860,8 +1860,8 @@ fn resolution_failure( } return; } - Trait | TyAlias | ForeignTy | OpaqueTy | ImplTraitPlaceholder - | TraitAlias | TyParam | Static(_) => "associated item", + Trait | TyAlias | ForeignTy | OpaqueTy | TraitAlias | TyParam + | Static(_) => "associated item", Impl { .. } | GlobalAsm => unreachable!("not a path"), } } else { |
