diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-17 16:19:27 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-17 16:19:27 +0800 |
commit | 553112fcbf7175e9ea751a2aedc4c0d336d95593 (patch) | |
tree | b8fb70cf33bcc88ac21abcb7e7a50d9a956d755d /src/ast/path.cpp | |
parent | e4e710eb0b752981b61af1f09884d4ec12f6ddc1 (diff) | |
download | mrust-553112fcbf7175e9ea751a2aedc4c0d336d95593.tar.gz |
Clean up hanlding of generic params
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r-- | src/ast/path.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp index acd92dd8..8f77f008 100644 --- a/src/ast/path.cpp +++ b/src/ast/path.cpp @@ -53,7 +53,6 @@ void Path::resolve(const Crate& root_crate) const bool is_last = (i+1 == m_nodes.size()); const bool is_sec_last = (i+2 == m_nodes.size()); const PathNode& node = m_nodes[i]; - DEBUG("mod = " << mod << ", node = " << node); // Sub-modules { @@ -261,7 +260,7 @@ void Path::bind_struct(const Struct& ent, const ::std::vector<TypeRef>& args) { if( args.size() > 0 ) { - if( args.size() != ent.params().size() ) + if( args.size() != ent.params().n_params() ) throw ParseError::Generic("Parameter count mismatch"); // TODO: Is it the role of this section of code to ensure that the passed args are valid? // - Probably not, it should instead be the type checker that does it |