Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Sep 24, 2024
1 parent 304903b commit 949274c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
6 changes: 0 additions & 6 deletions compiler/noirc_frontend/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ use crate::{
use fm::FileManager;
use noirc_arena::Arena;



pub(crate) fn has_parser_error(errors: &[(CompilationError, FileId)]) -> bool {
errors.iter().any(|(e, _f)| matches!(e, CompilationError::ParseError(_)))
}
Expand Down Expand Up @@ -2347,7 +2345,6 @@ fn impl_not_found_for_inner_impl() {
));
}


#[test]
fn no_super() {
let src = "use super::some_func;";
Expand Down Expand Up @@ -2949,8 +2946,6 @@ fn as_trait_path_syntax_no_impl() {
assert!(matches!(&errors[0].0, TypeError(TypeCheckError::NoMatchingImplFound { .. })));
}



#[test]
fn arithmetic_generics_canonicalization_deduplication_regression() {

Check warning on line 2950 in compiler/noirc_frontend/src/tests.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (canonicalization)
let source = r#"
Expand Down Expand Up @@ -3045,4 +3040,3 @@ fn use_numeric_generic_in_trait_method() {
println!("{errors:?}");
assert_eq!(errors.len(), 0);
}

2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/tests/bound_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ fn underflowing_i8() {
} else {
panic!("Expected OverflowingAssignment error, got {:?}", errors[0].0);
}
}
}
8 changes: 5 additions & 3 deletions compiler/noirc_frontend/src/tests/imports.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use crate::hir::{def_collector::{dc_crate::CompilationError, errors::DefCollectorErrorKind}, resolution::{errors::ResolverError, import::PathResolutionError}};
use crate::hir::{
def_collector::{dc_crate::CompilationError, errors::DefCollectorErrorKind},
resolution::{errors::ResolverError, import::PathResolutionError},
};

use super::{assert_no_errors, get_program_errors};

Expand Down Expand Up @@ -32,7 +35,6 @@ fn use_super_in_path() {
assert_no_errors(src);
}


#[test]
fn warns_on_use_of_private_exported_item() {
let src = r#"
Expand Down Expand Up @@ -107,4 +109,4 @@ fn warns_on_re_export_of_item_with_less_visibility() {
DefCollectorErrorKind::CannotReexportItemWithLessVisibility { .. }
)
));
}
}
5 changes: 4 additions & 1 deletion compiler/noirc_frontend/src/tests/references.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use crate::hir::{def_collector::dc_crate::CompilationError, resolution::errors::ResolverError, type_check::TypeCheckError};
use crate::hir::{
def_collector::dc_crate::CompilationError, resolution::errors::ResolverError,
type_check::TypeCheckError,
};

use super::get_program_errors;

Expand Down
2 changes: 0 additions & 2 deletions compiler/noirc_frontend/src/tests/turbofish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ fn turbofish_numeric_generic_nested_call() {
assert_no_errors(src);
}



#[test]
fn turbofish_in_constructor_generics_mismatch() {
let src = r#"
Expand Down
3 changes: 0 additions & 3 deletions compiler/noirc_frontend/src/tests/unused_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ fn errors_on_unused_pub_crate_import() {
assert_eq!(*item_type, "import");
}




#[test]
fn errors_on_unused_function() {
let src = r#"
Expand Down

0 comments on commit 949274c

Please sign in to comment.