Repository navigation
view-types: better documentation for View variant - #166241
rust-bors[bot] merged 1 commit into
Conversation
…tation-view-variant, r=oli-obk view-types: better documentation for View variant
…uwer Rollup of 5 pull requests Successful merges: - #157721 (compiletest: Add testing for lint machinery at runtime) - #153746 (rustdoc: add emoji icons for unstable and deprecated to search results) - #164378 (RISC-V: enable relax target feature by default) - #166241 (view-types: better documentation for View variant) - #166246 (Add rustdoc-ui tests for (some) malformed doc attributes)
|
This is a good start, but I do not think this really satisfies my concern. I don't have a good notion of what this Some questions that were previously answered for both pattern types and unsafe binders prior to MCP acceptance:
In general, it would also be good to know:
|
Rollup merge of #166241 - scrabsha:view-types/better-documentation-view-variant, r=oli-obk view-types: better documentation for View variant
…uwer Rollup of 5 pull requests Successful merges: - rust-lang/rust#157721 (compiletest: Add testing for lint machinery at runtime) - rust-lang/rust#153746 (rustdoc: add emoji icons for unstable and deprecated to search results) - rust-lang/rust#164378 (RISC-V: enable relax target feature by default) - rust-lang/rust#166241 (view-types: better documentation for View variant) - rust-lang/rust#166246 (Add rustdoc-ui tests for (some) malformed doc attributes)
That's documented on the variant
The same as for Adts, but equality for the field list. All this is experimental, so writing it down where it will diverge isn't too useful.
There are def traits implemented for them. If the question is whether you can have manual impls, then just like all other types, yes, tho caveats may apply that don't belong on the TyKind variant.
That's fairly clearly documented, even the format of how that's encoded is.
Yes, but again, that doesn't belong here. We decided that encoding this in fancy ways as another language item adt was not appropriate. It may be in the future, but mixing them up with pattern types or Adts while the semantics aren't figured out fully is asking for trouble. We'll miss cases or have to take a lot of care not to affect stable semantics of Adts. |
asked in #t-types > View types experiment.
part of #155938.
r? @oli-obk
cc @jackh726
Note