diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-05 14:05:35 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-05 14:05:35 +0100 |
commit | 8a18f23df068dd8e3cfaea15391610dbda418aab (patch) | |
tree | b2520aac7015ecc4062720ce88be5c19f16a0177 /crates/hir/src | |
parent | c2be91dcd826e1529ac6ac431b3f871ec72abebc (diff) | |
parent | 72c54c53cdc543eab40fc5d4593e6a7f57c94755 (diff) |
Merge #8342
8342: Rename `TyKind::Unknown` and `TyKind::ForeignType` (Chalk move) r=flodiebold a=lnicola
CC #8313
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/hir/src')
-rw-r--r-- | crates/hir/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index e41efb385..b14c9a675 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs | |||
@@ -1876,7 +1876,7 @@ impl Type { | |||
1876 | 1876 | ||
1877 | fn go(ty: &Ty) -> bool { | 1877 | fn go(ty: &Ty) -> bool { |
1878 | match ty.kind(&Interner) { | 1878 | match ty.kind(&Interner) { |
1879 | TyKind::Unknown => true, | 1879 | TyKind::Error => true, |
1880 | 1880 | ||
1881 | TyKind::Adt(_, substs) | 1881 | TyKind::Adt(_, substs) |
1882 | | TyKind::AssociatedType(_, substs) | 1882 | | TyKind::AssociatedType(_, substs) |
@@ -1900,7 +1900,7 @@ impl Type { | |||
1900 | | TyKind::Dyn(_) | 1900 | | TyKind::Dyn(_) |
1901 | | TyKind::Function(_) | 1901 | | TyKind::Function(_) |
1902 | | TyKind::Alias(_) | 1902 | | TyKind::Alias(_) |
1903 | | TyKind::ForeignType(_) => false, | 1903 | | TyKind::Foreign(_) => false, |
1904 | } | 1904 | } |
1905 | } | 1905 | } |
1906 | } | 1906 | } |