]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/types.rs
Rename TyKind::ForeignType to Foreign
[rust.git] / crates / hir_ty / src / types.rs
index 53662fcdcc7faabda1e18726a06147e2c7fb5740..bac086318f244ea7a5d538af331d0d411eb7fcbd 100644 (file)
@@ -132,7 +132,7 @@ pub enum TyKind {
     Closure(ClosureId, Substitution),
 
     /// Represents a foreign type declared in external blocks.
-    ForeignType(ForeignDefId),
+    Foreign(ForeignDefId),
 
     /// A pointer to a function.  Written as `fn() -> i32`.
     ///
@@ -179,7 +179,7 @@ pub enum TyKind {
     /// variables are inserted before type checking, since we want to try to
     /// infer a better type here anyway -- for the IDE use case, we want to try
     /// to infer as much as possible even in the presence of type errors.
-    Unknown,
+    Error,
 }
 
 #[derive(Clone, PartialEq, Eq, Debug, Hash)]