diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-17 14:10:13 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-17 14:10:13 +0800 |
commit | 28e67c7ed47e9b3891f5dc72de46edf3a3b94a6e (patch) | |
tree | 456182050f337b344b6112629a026cb20adcbb83 /src/types.cpp | |
parent | eba015ba443d72d49e6b3ddcb29a7f3d1efe799a (diff) | |
download | mrust-28e67c7ed47e9b3891f5dc72de46edf3a3b94a6e.tar.gz |
Expand - #[lang] extension
Diffstat (limited to 'src/types.cpp')
-rw-r--r-- | src/types.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/types.cpp b/src/types.cpp index e5dee127..845af9d2 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -448,7 +448,6 @@ bool TypeRef::impls_wildcard(const AST::Crate& crate, const AST::Path& trait) co auto fld_ty = fld.m_type; fld_ty.resolve_args( resolve_fn ); DEBUG("- Fld '" << fld.m_name << "' := " << fld.m_type << " => " << fld_ty); - // TODO: Defer failure until after all fields are processed if( !crate.find_impl(trait, fld_ty, nullptr, nullptr) ) return false; } @@ -459,7 +458,6 @@ bool TypeRef::impls_wildcard(const AST::Crate& crate, const AST::Path& trait) co auto fld_ty = fld.m_type; fld_ty.resolve_args( resolve_fn ); DEBUG("- Fld ? := " << fld.m_type << " => " << fld_ty); - // TODO: Defer failure until after all fields are processed if( !crate.find_impl(trait, fld_ty, nullptr, nullptr) ) return false; } @@ -481,7 +479,6 @@ bool TypeRef::impls_wildcard(const AST::Crate& crate, const AST::Path& trait) co TypeRef real_ty = ty; real_ty.resolve_args( resolve_fn ); DEBUG("- Var '" << var.m_name << "' := " << ty << " => " << real_ty); - // TODO: Defer failure until after all fields are processed if( !crate.find_impl(trait, real_ty, nullptr, nullptr) ) return false; } @@ -492,7 +489,6 @@ bool TypeRef::impls_wildcard(const AST::Crate& crate, const AST::Path& trait) co auto fld_ty = fld.m_type; fld_ty.resolve_args( resolve_fn ); DEBUG("- Fld '" << fld.m_name << "' := " << fld.m_type << " => " << fld_ty); - // TODO: Defer failure until after all fields are processed if( !crate.find_impl(trait, fld_ty, nullptr, nullptr) ) return false; } |