make various enums "inherit" from AdtDef

This commit is contained in:
Aleksey Kladov 2019-09-13 00:10:16 +03:00
parent d8b621cf26
commit 45117c6388
17 changed files with 156 additions and 121 deletions

View file

@ -4,14 +4,13 @@ use ra_syntax::ast;
use rustc_hash::FxHashSet;
use crate::{
adt::AdtDef,
db::HirDatabase,
diagnostics::{DiagnosticSink, MissingFields, MissingOkInTailExpr},
expr::AstPtr,
name,
path::{PathKind, PathSegment},
ty::{ApplicationTy, InferenceResult, Ty, TypeCtor},
Function, Name, Path,
AdtDef, Function, Name, Path,
};
use super::{Expr, ExprId, RecordLitField};