Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented May 4, 2021

Fixes #8730
bors r+

hir::ModuleDef::TypeAlias(a) => a.ty(ctx.db),
hir::ModuleDef::TypeAlias(a) => {
let ty = a.ty(ctx.db);
if let Some(Adt::Enum(e)) = ty.as_adt() {
Copy link
Member

@lnicola lnicola May 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umm, doesn't this also happen below? Or maybe not. Sorry, I was reading the diff on my phone.


#[test]
fn completes_through_alias() {
check(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cov_mark

@bors
Copy link
Contributor

bors bot commented May 4, 2021

@bors bors bot merged commit 010e4c8 into rust-lang:master May 4, 2021
@Veykril Veykril deleted the alias-variant-compl branch May 4, 2021 20:07
@lnicola lnicola changed the title Complete enum variants through type aliases fix: Complete enum variants through type aliases May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No completion for enum variants through type alias

3 participants