From: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2020 14:37:45 +0000 (+0000) Subject: Merge #4900 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=87615166af84a4822adc4686fd9ee44fafa51f53;p=rust.git Merge #4900 4900: Self variant enum res fix r=BGluth a=BGluth Fixes #4789. This is my first PR for this project, so it's probably worth giving it an extra close look. A few things that I wasn't sure about: - Is `resolve_path` really the best place to perform this check? It seemed like a natural place, but perhaps there's a better place? - When handling the new variant `PathResolution::VariantDef`, I couldn't see an obvious variant of `TypeNs` to return in `in_type_ns` for Unions and Structs. Co-authored-by: BGluth --- 87615166af84a4822adc4686fd9ee44fafa51f53