Fix hw1 fuzzer

This commit is contained in:
Jeehoon Kang
2020-03-26 22:59:02 +09:00
parent 8938a7ad8f
commit 938390821f
7 changed files with 178 additions and 69 deletions

View File

@@ -102,6 +102,7 @@ impl IsEquiv for Declarator {
impl IsEquiv for DeclaratorKind {
fn is_equiv(&self, other: &Self) -> bool {
match (self, other) {
(Self::Abstract, Self::Abstract) => true,
(Self::Identifier(identifier), Self::Identifier(other_identifier)) => {
identifier.node.name == other_identifier.node.name
}

View File

@@ -525,7 +525,6 @@ impl AssertSupported for Integer {
impl AssertSupported for Float {
fn assert_supported(&self) {
assert_eq!(self.base, FloatBase::Decimal);
self.suffix.format.assert_supported();
assert_eq!(false, self.suffix.imaginary);
}