mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Bump dependencies
This commit is contained in:
1 parent
3f91b321a5
commit
f39851625a
4 files changed
+12
-9
No files matched your search
@@ -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