about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-14 12:26:43 +0000
committerbors <bors@rust-lang.org>2022-02-14 12:26:43 +0000
commitfecd21682bcaaa8a9c9f6347480ae05609e6902a (patch)
treef75e3b7dc951a97985417f421c38295795cf9a35 /compiler/rustc_mir_transform/src
parent9f75aff3919122b5657650930c38095731d2dbba (diff)
parent7c94736953097fb78bd211ae8d493f2fb8bad072 (diff)
downloadrust-fecd21682bcaaa8a9c9f6347480ae05609e6902a.tar.gz
rust-fecd21682bcaaa8a9c9f6347480ae05609e6902a.zip
Auto merge of #93938 - BoxyUwU:fix_res_self_ty, r=lcnr
Make `Res::SelfTy` a struct variant and update docs

I found pattern matching on a `(Option<DefId>, Option<(DefId, bool)>)` to not be super readable, additionally the doc comments on the types in a tuple variant aren't visible anywhere at use sites as far as I can tell (using rust analyzer + vscode)

The docs incorrectly assumed that the `DefId` in `Option<(DefId, bool)>` would only ever be for an impl item and I also found the code examples to be somewhat unclear about which `DefId` was being talked about.

r? `@lcnr` since you reviewed the last PR changing these docs
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions