mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update tests
This commit is contained in:
@@ -5,6 +5,7 @@ use lang_c::ast::*;
|
||||
use lang_c::driver::{parse, Config, Error as ParseError};
|
||||
use lang_c::span::Node;
|
||||
|
||||
use crate::utils::AssertSupported;
|
||||
use crate::Translate;
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -31,10 +32,6 @@ impl<P: AsRef<Path>> Translate<P> for Parse {
|
||||
}
|
||||
}
|
||||
|
||||
trait AssertSupported {
|
||||
fn assert_supported(&self);
|
||||
}
|
||||
|
||||
impl<T: AssertSupported> AssertSupported for Node<T> {
|
||||
fn assert_supported(&self) {
|
||||
self.node.assert_supported();
|
||||
|
||||
Reference in New Issue
Block a user