diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-30 11:49:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-30 11:49:39 +0800 |
commit | d4aa273577d8d0d1002b34841c5801ecdafa2fe4 (patch) | |
tree | 988f7f914ae0f5581a82cf5d717c68f528332fc0 /src/hir/hir.hpp | |
parent | 94504cac4d8900cd5c15e236f7f59ade89479bf4 (diff) | |
download | mrust-d4aa273577d8d0d1002b34841c5801ecdafa2fe4.tar.gz |
HIR Typecheck - Auto trait searching fixes
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 60d0012b..6c560510 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -145,6 +145,16 @@ struct TraitMarkings bool is_always_sized = false; /// `true` if there is a Copy impl bool is_copy = false; + + struct AutoMarking { + // If present, this impl is conditionally true based on the listed type parameters + ::std::vector< ::HIR::TypeRef> conditions; + // Implementation state + bool is_impled; + }; + + // General auto trait impls + mutable ::std::map< ::HIR::SimplePath, AutoMarking> auto_impls; }; class Enum |