diff options
| author | bors <bors@rust-lang.org> | 2023-02-13 16:50:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-13 16:50:33 +0000 |
| commit | a3c9eede5d50be0231f229bf28a271cd509861a3 (patch) | |
| tree | 0ced7792612b8bce84396c87f1e78e3e54ab6800 /tests/rustdoc/intra-doc/basic.rs | |
| parent | 0b439b119b8d49450bddbbea317afeb0d4166f70 (diff) | |
| parent | 63ad5d0522053d7eb345eee404954ec24759f956 (diff) | |
| download | rust-a3c9eede5d50be0231f229bf28a271cd509861a3.tar.gz rust-a3c9eede5d50be0231f229bf28a271cd509861a3.zip | |
Auto merge of #107924 - eggyal:move_fold_visit_traits_to_type_lib_with_trait_alias, r=oli-obk
Move folding & visiting traits into type library This is a rework of #107712, following feedback on that PR. In particular, this version uses trait aliases to reduce the API churn for trait consumers. Doing so requires a workaround for #107747 until its fix in #107803 is merged into the stage0 compiler; this workaround, which uses conditional compilation based on the `bootstrap` configuration predicate, sits in dedicated commit b409329c for ease of reversion. The possibility of the `rustc_middle` crate retaining its own distinct versions of each folding/visiting trait, blanket-implemented on all types that implement the respective trait in the type library, was also explored: however since this would necessitate making each `rustc_middle` trait a subtrait of the respective type library trait (so that such blanket implementations can delegate their generic methods), no benefit would be gained. r? types
Diffstat (limited to 'tests/rustdoc/intra-doc/basic.rs')
0 files changed, 0 insertions, 0 deletions
