]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rust-analyzer/crates/ide-completion/src/completions/pattern.rs
Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726
[rust.git] / src / tools / rust-analyzer / crates / ide-completion / src / completions / pattern.rs
index 71d2d9d434b449f915dbad29a58c756ae591b651..58d5bf114cca4abfbee7ae0f200c92e9c1780a0a 100644 (file)
@@ -145,6 +145,7 @@ pub(crate) fn complete_pattern_path(
                             u.ty(ctx.db)
                         }
                         hir::PathResolution::Def(hir::ModuleDef::BuiltinType(ty)) => ty.ty(ctx.db),
+                        hir::PathResolution::Def(hir::ModuleDef::TypeAlias(ty)) => ty.ty(ctx.db),
                         _ => return,
                     };