mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Bump dependencies
This commit is contained in:
@@ -230,6 +230,7 @@ impl AssertSupported for DerivedDeclarator {
|
||||
Self::Function(func_decl) => func_decl.assert_supported(),
|
||||
// Support when K&R function has no parameter
|
||||
Self::KRFunction(kr_func_decl) => assert!(kr_func_decl.is_empty()),
|
||||
Self::Block(_) => panic!("DerivedDeclarator::Block"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -488,6 +489,7 @@ impl AssertSupported for Label {
|
||||
match self {
|
||||
Self::Identifier(_) => panic!("Label::Identifier"),
|
||||
Self::Case(_) => (),
|
||||
Self::CaseRange(_) => panic!("Label::CaseRange"),
|
||||
Self::Default => (),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1117,6 +1117,7 @@ impl Dtype {
|
||||
assert!(kr_func_decl.is_empty());
|
||||
Self::function(self, Vec::new())
|
||||
}
|
||||
ast::DerivedDeclarator::Block(_) => panic!(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user