diff options
| author | Paul Lietar <paul@lietar.net> | 2017-09-03 19:53:58 +0100 |
|---|---|---|
| committer | Paul LiƩtar <lietar@google.com> | 2017-10-27 23:01:34 +0200 |
| commit | 77f7e85d7f4ebcc1a291edae95a3747b0e54d7fa (patch) | |
| tree | 3a10519372a957925738544a8a7cb651139e7fb5 /src/librustc/ty/structural_impls.rs | |
| parent | bed9a85c40f98ab8f4445b66d285d4108de9ad21 (diff) | |
| download | rust-77f7e85d7f4ebcc1a291edae95a3747b0e54d7fa.tar.gz rust-77f7e85d7f4ebcc1a291edae95a3747b0e54d7fa.zip | |
Implement RFC 1861: Extern types
Diffstat (limited to 'src/librustc/ty/structural_impls.rs')
| -rw-r--r-- | src/librustc/ty/structural_impls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs index 54d55748c8e..5f1448cd1f1 100644 --- a/src/librustc/ty/structural_impls.rs +++ b/src/librustc/ty/structural_impls.rs @@ -676,7 +676,7 @@ impl<'tcx> TypeFoldable<'tcx> for Ty<'tcx> { ty::TyAnon(did, substs) => ty::TyAnon(did, substs.fold_with(folder)), ty::TyBool | ty::TyChar | ty::TyStr | ty::TyInt(_) | ty::TyUint(_) | ty::TyFloat(_) | ty::TyError | ty::TyInfer(_) | - ty::TyParam(..) | ty::TyNever => return self + ty::TyParam(..) | ty::TyNever | ty::TyForeign(..) => return self }; if self.sty == sty { @@ -710,7 +710,7 @@ impl<'tcx> TypeFoldable<'tcx> for Ty<'tcx> { ty::TyAnon(_, ref substs) => substs.visit_with(visitor), ty::TyBool | ty::TyChar | ty::TyStr | ty::TyInt(_) | ty::TyUint(_) | ty::TyFloat(_) | ty::TyError | ty::TyInfer(_) | - ty::TyParam(..) | ty::TyNever => false, + ty::TyParam(..) | ty::TyNever | ty::TyForeign(..) => false, } } |
