mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 15:38:48 +00:00
Bump Rust and add skeleton code for irgen.
This commit is contained in:
@@ -527,9 +527,8 @@ pub fn assert_ast_equiv(lhs: &TranslationUnit, rhs: &TranslationUnit) {
|
||||
if !lhs.is_equiv(rhs) {
|
||||
panic!(
|
||||
r#"assertion failed: `(left.is_equiv(right))`
|
||||
left: `{:?}`,
|
||||
right: `{:?}`"#,
|
||||
lhs, rhs
|
||||
left: `{lhs:?}`,
|
||||
right: `{rhs:?}`"#
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ pub enum Error {
|
||||
|
||||
/// TODO(document)
|
||||
#[derive(Default, Clone, Copy, Debug)]
|
||||
pub struct Parse {}
|
||||
pub struct Parse;
|
||||
|
||||
impl<P: AsRef<Path>> Translate<P> for Parse {
|
||||
type Target = TranslationUnit;
|
||||
|
||||
Reference in New Issue
Block a user