diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-06-24 02:54:32 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-06-26 07:34:56 +0300 |
| commit | aa03871a6efd240c16eacf6f8e9a56d708a71b62 (patch) | |
| tree | e33a6202a5b9b214d3627d0b705f8c2cf738b394 /src/librustc/metadata | |
| parent | 378a370ff2057afeb1eae86eb6e78c476866a4a6 (diff) | |
| download | rust-aa03871a6efd240c16eacf6f8e9a56d708a71b62.tar.gz rust-aa03871a6efd240c16eacf6f8e9a56d708a71b62.zip | |
rustc: combine type-flag-checking traits and fns and into one trait.
Diffstat (limited to 'src/librustc/metadata')
| -rw-r--r-- | src/librustc/metadata/tydecode.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/metadata/tydecode.rs b/src/librustc/metadata/tydecode.rs index 63afdc8b0fc..57814fbe8f8 100644 --- a/src/librustc/metadata/tydecode.rs +++ b/src/librustc/metadata/tydecode.rs @@ -21,7 +21,7 @@ pub use self::DefIdSource::*; use middle::region; use middle::subst; use middle::subst::VecPerParamSpace; -use middle::ty::{self, ToPredicate, Ty}; +use middle::ty::{self, ToPredicate, Ty, HasTypeFlags}; use std::str; use syntax::abi; @@ -534,7 +534,7 @@ fn parse_ty_<'a, 'tcx, F>(st: &mut PState<'a, 'tcx>, conv: &mut F) -> Ty<'tcx> w // If there is a closure buried in the type some where, then we // need to re-convert any def ids (see case 'k', below). That means // we can't reuse the cached version. - if !ty::type_has_ty_closure(tt) { + if !tt.has_closure_types() { return tt; } } |
