diff options
-rw-r--r-- | samples/1.rs | 2 | ||||
-rw-r--r-- | src/ast/path.cpp | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/samples/1.rs b/samples/1.rs index ce53ba54..f27b8611 100644 --- a/samples/1.rs +++ b/samples/1.rs @@ -111,7 +111,7 @@ impl<T:Reader> Iterator<IoResult<char>> for UTF8Reader<T> // - Error, check if it's EOF
Err(e) => match e.kind {
// Return 'None' on EOF (end of stream)
- ::std::io::EndOfFile => None,
+ ::std::io::IoError::EndOfFile => None,
_ => Some( Err( e ) ),
}
}
diff --git a/src/ast/path.cpp b/src/ast/path.cpp index 56d06eaf..acd92dd8 100644 --- a/src/ast/path.cpp +++ b/src/ast/path.cpp @@ -227,12 +227,12 @@ void Path::bind_enum(const Enum& ent, const ::std::vector<TypeRef>& args) DEBUG("Bound to enum"); m_binding_type = ENUM; m_binding.enum_ = &ent; - if( args.size() > 0 ) - { - if( args.size() != ent.params().size() ) - throw ParseError::Generic("Parameter count mismatch"); - throw ParseError::Todo("Bind enum with params passed"); - } + //if( args.size() > 0 ) + //{ + // if( args.size() != ent.params().size() ) + // throw ParseError::Generic("Parameter count mismatch"); + // throw ParseError::Todo("Bind enum with params passed"); + //} } void Path::bind_enum_var(const Enum& ent, const ::std::string& name, const ::std::vector<TypeRef>& args) { @@ -246,12 +246,12 @@ void Path::bind_enum_var(const Enum& ent, const ::std::string& name, const ::std if( idx == ent.variants().size() ) throw ParseError::Generic("Enum variant not found"); - if( args.size() > 0 ) - { - if( args.size() != ent.params().size() ) - throw ParseError::Generic("Parameter count mismatch"); - throw ParseError::Todo("Bind enum variant with params passed"); - } + //if( args.size() > 0 ) + //{ + // if( args.size() != ent.params().size() ) + // throw ParseError::Generic("Parameter count mismatch"); + // throw ParseError::Todo("Bind enum variant with params passed"); + //} DEBUG("Bound to enum variant '" << name << "' (#" << idx << ")"); m_binding_type = ENUM_VAR; |