rust/compiler/rustc_resolve/src
bors b321742c6c 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
2022-02-14 12:26:43 +00:00
..
late Auto merge of #93938 - BoxyUwU:fix_res_self_ty, r=lcnr 2022-02-14 12:26:43 +00:00
access_levels.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
build_reduced_graph.rs change to a struct variant 2022-02-12 11:23:53 +00:00
check_unused.rs suggest adding a #[cfg(test)] to test modules 2021-12-16 11:48:58 +09:00
def_collector.rs ast: Always keep a NodeId in ast::Crate 2022-01-05 17:09:37 +08:00
diagnostics.rs change to a struct variant 2022-02-12 11:23:53 +00:00
imports.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
late.rs change to a struct variant 2022-02-12 11:23:53 +00:00
lib.rs change to a struct variant 2022-02-12 11:23:53 +00:00
macros.rs rustc_lint: Reuse the set of registered tools from resolver 2022-01-23 18:51:51 +08:00