diff --git a/Cargo.lock b/Cargo.lock index a8be7450a1d..6a02b6aefe7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1898,21 +1898,6 @@ dependencies = [ "libc", ] -[[package]] -name = "function_name" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1ab577a896d09940b5fe12ec5ae71f9d8211fff62c919c03a3750a9901e98a7" -dependencies = [ - "function_name-proc-macro", -] - -[[package]] -name = "function_name-proc-macro" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "673464e1e314dd67a0fd9544abc99e8eb28d0c7e3b69b033bcff9b2d00b87333" - [[package]] name = "funty" version = "2.0.0" @@ -3757,7 +3742,6 @@ dependencies = [ "cfg-if", "chrono", "fm", - "function_name", "fxhash", "im", "indexmap 2.11.0", @@ -3793,7 +3777,6 @@ dependencies = [ "bn254_blackbox_solver", "cfg-if", "fm", - "function_name", "fxhash", "im", "insta", diff --git a/compiler/noirc_evaluator/Cargo.toml b/compiler/noirc_evaluator/Cargo.toml index dea5126a4e1..aa084a77b6b 100644 --- a/compiler/noirc_evaluator/Cargo.toml +++ b/compiler/noirc_evaluator/Cargo.toml @@ -43,7 +43,6 @@ similar-asserts.workspace = true tracing-test = "0.2.5" num-traits.workspace = true test-case.workspace = true -function_name = "0.3.0" insta.workspace = true noirc_frontend = { workspace = true, features = ["test_utils"] } diff --git a/compiler/noirc_evaluator/src/ssa/ssa_gen/tests.rs b/compiler/noirc_evaluator/src/ssa/ssa_gen/tests.rs index 65ba5e11fe8..1276bf21944 100644 --- a/compiler/noirc_evaluator/src/ssa/ssa_gen/tests.rs +++ b/compiler/noirc_evaluator/src/ssa/ssa_gen/tests.rs @@ -4,13 +4,10 @@ use crate::{errors::RuntimeError, ssa::opt::assert_normalized_ssa_equals}; use super::{Ssa, generate_ssa}; -use function_name::named; +use noirc_frontend::test_utils::get_monomorphized; -use noirc_frontend::function_path; -use noirc_frontend::test_utils::{Expect, get_monomorphized}; - -fn get_initial_ssa(src: &str, test_path: &str) -> Result { - let program = match get_monomorphized(src, Some(test_path), Expect::Success) { +fn get_initial_ssa(src: &str) -> Result { + let program = match get_monomorphized(src) { Ok(program) => program, Err(errors) => { panic!( @@ -22,7 +19,6 @@ fn get_initial_ssa(src: &str, test_path: &str) -> Result { generate_ssa(program) } -#[named] #[test] fn assert() { let assert_src = " @@ -30,7 +26,7 @@ fn assert() { assert(input == 5); } "; - let assert_ssa = get_initial_ssa(assert_src, function_path!()).unwrap(); + let assert_ssa = get_initial_ssa(assert_src).unwrap(); let expected = " acir(inline) fn main f0 { @@ -43,7 +39,6 @@ fn assert() { assert_normalized_ssa_equals(assert_ssa, expected); } -#[named] #[test] fn assert_eq() { let assert_eq_src = " @@ -52,7 +47,7 @@ fn assert_eq() { } "; - let assert_eq_ssa = get_initial_ssa(assert_eq_src, function_path!()).unwrap(); + let assert_eq_ssa = get_initial_ssa(assert_eq_src).unwrap(); let expected = " acir(inline) fn main f0 { @@ -67,7 +62,6 @@ fn assert_eq() { assert_normalized_ssa_equals(assert_eq_ssa, expected); } -#[named] #[test] fn basic_loop() { let src = " @@ -80,7 +74,7 @@ fn basic_loop() { } "; - let ssa = get_initial_ssa(src, function_path!()).unwrap(); + let ssa = get_initial_ssa(src).unwrap(); let expected = " acir(inline) fn main f0 { diff --git a/compiler/noirc_frontend/Cargo.toml b/compiler/noirc_frontend/Cargo.toml index b8dc70122fa..acbdd158503 100644 --- a/compiler/noirc_frontend/Cargo.toml +++ b/compiler/noirc_frontend/Cargo.toml @@ -38,7 +38,6 @@ fxhash.workspace = true [dev-dependencies] base64.workspace = true -function_name = "0.3.0" proptest.workspace = true proptest-derive.workspace = true insta.workspace = true diff --git a/compiler/noirc_frontend/src/lib.rs b/compiler/noirc_frontend/src/lib.rs index 7aa9995c16f..d42d7269fc5 100644 --- a/compiler/noirc_frontend/src/lib.rs +++ b/compiler/noirc_frontend/src/lib.rs @@ -12,10 +12,6 @@ // Temporary allows. #![allow(clippy::mutable_key_type, clippy::result_large_err)] -#[cfg(test)] -#[macro_use] -extern crate function_name; - pub mod ast; pub mod debug; pub mod elaborator; diff --git a/compiler/noirc_frontend/src/monomorphization/tests.rs b/compiler/noirc_frontend/src/monomorphization/tests.rs index 5c9614e984a..f5b42d2153f 100644 --- a/compiler/noirc_frontend/src/monomorphization/tests.rs +++ b/compiler/noirc_frontend/src/monomorphization/tests.rs @@ -1,16 +1,9 @@ #![cfg(test)] use crate::{ - check_monomorphization_error_using_features, elaborator::UnstableFeature, test_utils::Expect, + check_monomorphization_error_using_features, elaborator::UnstableFeature, + test_utils::get_monomorphized, }; -// NOTE: this will fail in CI when called twice within one test: test names must be unique -#[macro_export] -macro_rules! get_monomorphized { - ($src:expr, $expect:expr) => { - $crate::test_utils::get_monomorphized($src, Some($crate::function_path!()), $expect) - }; -} - // NOTE: this will fail in CI when called twice within one test: test names must be unique #[macro_export] macro_rules! check_rewrite { @@ -19,7 +12,6 @@ macro_rules! check_rewrite { }; } -#[named] #[test] fn bounded_recursive_type_errors() { // We want to eventually allow bounded recursive types like this, but for now they are @@ -43,7 +35,6 @@ fn bounded_recursive_type_errors() { check_monomorphization_error_using_features!(src, &features); } -#[named] #[test] fn recursive_type_with_alias_errors() { // We want to eventually allow bounded recursive types like this, but for now they are @@ -79,7 +70,6 @@ fn recursive_type_with_alias_errors() { check_monomorphization_error_using_features!(src, &features); } -#[named] #[test] fn mutually_recursive_types_error() { // cSpell:disable @@ -105,7 +95,6 @@ fn mutually_recursive_types_error() { check_monomorphization_error_using_features!(src, &features); } -#[named] #[test] fn simple_closure_with_no_captured_variables() { let src = r#" @@ -116,7 +105,7 @@ fn simple_closure_with_no_captured_variables() { } "#; - let program = get_monomorphized!(src, Expect::Success).unwrap(); + let program = get_monomorphized(src).unwrap(); insta::assert_snapshot!(program, @r" fn main$f0(y$l0: call_data(0) Field) -> pub Field { let x$l1 = 1; diff --git a/compiler/noirc_frontend/src/test_utils.rs b/compiler/noirc_frontend/src/test_utils.rs index 92fd1d85947..e063d0daaff 100644 --- a/compiler/noirc_frontend/src/test_utils.rs +++ b/compiler/noirc_frontend/src/test_utils.rs @@ -7,7 +7,6 @@ //! crate as a dev dependency with the `test_utils` feature activated. #![cfg(any(test, feature = "test_utils"))] -use std::hash::{DefaultHasher, Hash, Hasher}; use std::path::Path; use crate::elaborator::FrontendOptions; @@ -28,15 +27,11 @@ use fm::FileManager; use crate::monomorphization::{ast::Program, errors::MonomorphizationError, monomorphize}; pub fn get_monomorphized_no_emit_test(src: &str) -> Result { - get_monomorphized(src, None, Expect::Success) + get_monomorphized(src) } -pub fn get_monomorphized( - src: &str, - test_path: Option<&str>, - expect: Expect, -) -> Result { - let (_parsed_module, mut context, errors) = get_program(src, test_path, expect); +pub fn get_monomorphized(src: &str) -> Result { + let (_parsed_module, mut context, errors) = get_program(src); assert!( errors.iter().all(|err| !err.is_error()), "Expected monomorphized program to have no errors before monomorphization, but found: {errors:?}" @@ -62,19 +57,9 @@ pub(crate) fn remove_experimental_warnings(errors: &mut Vec) { }); } -pub(crate) fn get_program<'a, 'b>( - src: &'a str, - test_path: Option<&'b str>, - expect: Expect, -) -> (ParsedModule, Context<'a, 'b>, Vec) { +pub(crate) fn get_program(src: &str) -> (ParsedModule, Context, Vec) { let allow_parser_errors = false; - get_program_with_options( - src, - test_path, - expect, - allow_parser_errors, - FrontendOptions::test_default(), - ) + get_program_with_options(src, allow_parser_errors, FrontendOptions::test_default()) } pub enum Expect { @@ -92,8 +77,6 @@ pub enum Expect { /// for the supplied program as well. pub(crate) fn get_program_with_options( src: &str, - test_path: Option<&str>, - expect: Expect, allow_parser_errors: bool, options: FrontendOptions, ) -> (ParsedModule, Context<'static, 'static>, Vec) { @@ -144,157 +127,5 @@ pub(crate) fn get_program_with_options( )); } - if let Some(test_path) = test_path { - emit_compile_test(test_path, src, expect); - } - (program, context, errors) } - -// if the "nextest" feature is enabled, this will panic instead of emitting a test crate -fn emit_compile_test(test_path: &str, src: &str, mut expect: Expect) { - let package_name = test_path.replace("::", "_"); - let skipped_tests = [ - // skip ~2.4k name_shadowing tests - "name_shadowing_", - // TODO(https://github.com/noir-lang/noir/issues/7763) - "unconditional_recursion_fail_", - "unconditional_recursion_pass_", - // TODO(https://github.com/noir-lang/noir/issues/7783): array type fails to resolve when - // compiled - "traits_calls_trait_method_using_struct_name_when_multiple_impls_exist", - // TODO(https://github.com/noir-lang/noir/issues/7766): trait generic that passes - // frontend test fails to resolve with nargo - "turbofish_numeric_generic_nested_", - ]; - if skipped_tests.iter().any(|skipped_test_name| package_name.contains(skipped_test_name)) { - return; - } - - // in these cases, we expect a warning when 'check_errors' or similar is used - let error_to_warn_cases = [ - "cast_256_to_u8_size_checks", - "enums_errors_on_unspecified_unstable_enum", - "metaprogramming_does_not_fail_to_parse_macro_on_parser_warning", - "resolve_unused_var", - "struct_array_len", - "unused_items_errors_on_unused_private_import", - "unused_items_errors_on_unused_pub_crate_import", - "unused_items_errors_on_unused_struct", - "unused_items_errors_on_unused_trait", - "unused_items_errors_on_unused_type_alias", - "unused_items_warns_on_unused_global", - "warns_on_nested_unsafe", - "warns_on_unneeded_unsafe", - // TODO(https://github.com/noir-lang/noir/issues/7795): these will be hard errors - "indexing_array_with_non_u32_on_lvalue_produces_a_warning", - "indexing_array_with_non_u32_produces_a_warning", - ]; - if let Expect::Error = expect { - if error_to_warn_cases - .iter() - .any(|error_to_warn_case| package_name.contains(error_to_warn_case)) - { - expect = Expect::Success; - } - } - - let error_to_bug_cases = [ - "cast_negative_one_to_u8_size_checks", - "disallows_composing_numeric_type_aliases", - "disallows_numeric_type_aliases_to_expression_with_alias", - "disallows_numeric_type_aliases_to_expression_with_alias_2", - "disallows_numeric_type_aliases_to_type", - ]; - if let Expect::Success = expect { - if error_to_bug_cases - .iter() - .any(|error_to_bug_case| package_name.contains(error_to_bug_case)) - { - expect = Expect::Bug; - } - } - - // "compiler/noirc_frontend" - let noirc_frontend_path = Path::new(std::env!("CARGO_MANIFEST_DIR")); - let noir_root_path = noirc_frontend_path - .parent() - .expect("expected 'noirc_frontend' to be in 'compiler'") - .parent() - .expect("expected 'compiler' to be in the noir root"); - let test_programs_path = noir_root_path.join("test_programs"); - - let tests_dir_name = match expect { - Expect::Bug => "compile_success_with_bug", - Expect::Success => "compile_success_no_bug", - Expect::Error => "compile_failure", - }; - let tests_dir = test_programs_path.join(tests_dir_name); - let crate_path = tests_dir.join(&package_name); - let nargo_toml_path = crate_path.join("Nargo.toml"); - let src_hash_path = crate_path.join("src_hash.txt"); - let src_path = crate_path.join("src"); - let main_nr_path = src_path.join("main.nr"); - - // hash `src` - let mut hasher = DefaultHasher::new(); - src.hash(&mut hasher); - let new_hash = hasher.finish().to_string(); - - if crate_path.is_dir() && src_hash_path.is_file() { - let current_hash = - std::fs::read_to_string(&src_hash_path).expect("Unable to read src_hash.txt"); - // if out of date, update main.nr and hash file - if current_hash != new_hash { - if cfg!(feature = "nextest") { - panic!( - "test generated from frontend unit test {test_path} is out of date: run `cargo test` to update" - ); - } - std::fs::write(main_nr_path, src).expect("Unable to write test file"); - std::fs::write(src_hash_path, new_hash).expect("Unable to write src_hash.txt file"); - } - } else { - if cfg!(feature = "nextest") { - panic!( - "new test generated from frontend unit test {test_path}: run `cargo test` to generate" - ); - } - - // create missing dir's - std::fs::create_dir_all(&crate_path).unwrap_or_else(|_| { - panic!("expected to be able to create the directory {}", crate_path.display()) - }); - std::fs::create_dir_all(&src_path).unwrap_or_else(|_| { - panic!("expected to be able to create the directory {}", src_path.display()) - }); - - let package_type = "bin"; // nargo::package::PackageType::Binary; - let toml_contents = format!( - r#" - [package] - name = "{package_name}" - type = "{package_type}" - authors = [""] - - [dependencies]"# - ); - - std::fs::write(&nargo_toml_path, toml_contents).unwrap_or_else(|_| { - panic!("Unable to write Nargo.toml to {}", nargo_toml_path.display()) - }); - std::fs::write(&main_nr_path, src) - .unwrap_or_else(|_| panic!("Unable to write test file to {}", main_nr_path.display())); - std::fs::write(&src_hash_path, new_hash).unwrap_or_else(|_| { - panic!("Unable to write src_hash.txt file to {}", src_hash_path.display()) - }); - } -} - -// NOTE: this will fail in CI when called twice within one test: test names must be unique -#[macro_export] -macro_rules! function_path { - () => { - std::concat!(std::module_path!(), "::", function_name!(),) - }; -} diff --git a/compiler/noirc_frontend/src/tests.rs b/compiler/noirc_frontend/src/tests.rs index e2412c3269a..efbd1ded940 100644 --- a/compiler/noirc_frontend/src/tests.rs +++ b/compiler/noirc_frontend/src/tests.rs @@ -18,11 +18,8 @@ mod visibility; // A test harness will allow for more expressive and readable tests use std::collections::HashMap; -use ::function_name::named; - use crate::elaborator::{FrontendOptions, UnstableFeature}; -use crate::function_path; -use crate::test_utils::{Expect, get_program, get_program_with_options}; +use crate::test_utils::{get_program, get_program_with_options}; use noirc_errors::reporter::report_all; use noirc_errors::{CustomDiagnostic, Span}; @@ -37,22 +34,20 @@ use crate::hir_def::stmt::HirStatement; pub(crate) fn get_program_using_features( src: &str, - test_path: Option<&str>, - expect: Expect, features: &[UnstableFeature], ) -> (ParsedModule, Context<'static, 'static>, Vec) { let allow_parser_errors = false; let mut options = FrontendOptions::test_default(); options.enabled_unstable_features = features; - get_program_with_options(src, test_path, expect, allow_parser_errors, options) + get_program_with_options(src, allow_parser_errors, options) } -pub(crate) fn get_program_errors(src: &str, test_path: &str) -> Vec { - get_program(src, Some(test_path), Expect::Error).2 +pub(crate) fn get_program_errors(src: &str) -> Vec { + get_program(src).2 } -fn assert_no_errors(src: &str, test_path: &str) { - let (_, context, errors) = get_program(src, Some(test_path), Expect::Success); +fn assert_no_errors(src: &str) { + let (_, context, errors) = get_program(src); if !errors.is_empty() { let errors = errors.iter().map(CustomDiagnostic::from).collect::>(); report_all(context.file_manager.as_file_map(), &errors, false, false); @@ -74,41 +69,35 @@ fn assert_no_errors(src: &str, test_path: &str) { /// /// this method will check that compiling the program without those error markers /// will produce errors at those locations and with/ those messages. -fn check_errors(src: &str, test_path: Option<&str>) { +fn check_errors(src: &str) { let allow_parser_errors = false; let monomorphize = false; check_errors_with_options( src, - test_path, allow_parser_errors, monomorphize, FrontendOptions::test_default(), ); } -fn check_errors_using_features(src: &str, test_path: Option<&str>, features: &[UnstableFeature]) { +fn check_errors_using_features(src: &str, features: &[UnstableFeature]) { let allow_parser_errors = false; let monomorphize = false; let options = FrontendOptions { enabled_unstable_features: features, ..FrontendOptions::test_default() }; - check_errors_with_options(src, test_path, allow_parser_errors, monomorphize, options); + check_errors_with_options(src, allow_parser_errors, monomorphize, options); } #[allow(unused)] -pub(super) fn check_monomorphization_error(src: &str, test_path: Option<&str>) { - check_monomorphization_error_using_features(src, test_path, &[]); +pub(super) fn check_monomorphization_error(src: &str) { + check_monomorphization_error_using_features(src, &[]); } -pub(super) fn check_monomorphization_error_using_features( - src: &str, - test_path: Option<&str>, - features: &[UnstableFeature], -) { +pub(super) fn check_monomorphization_error_using_features(src: &str, features: &[UnstableFeature]) { let allow_parser_errors = false; let monomorphize = true; check_errors_with_options( src, - test_path, allow_parser_errors, monomorphize, FrontendOptions { enabled_unstable_features: features, ..FrontendOptions::test_default() }, @@ -117,7 +106,6 @@ pub(super) fn check_monomorphization_error_using_features( fn check_errors_with_options( src: &str, - test_path: Option<&str>, allow_parser_errors: bool, monomorphize: bool, options: FrontendOptions, @@ -166,9 +154,7 @@ fn check_errors_with_options( secondary_spans_with_errors.into_iter().collect(); let src = code_lines.join("\n"); - let expect = if primary_spans_with_errors.is_empty() { Expect::Success } else { Expect::Error }; - let (_, mut context, errors) = - get_program_with_options(&src, test_path, expect, allow_parser_errors, options); + let (_, mut context, errors) = get_program_with_options(&src, allow_parser_errors, options); let mut errors = errors.iter().map(CustomDiagnostic::from).collect::>(); if monomorphize { @@ -293,21 +279,16 @@ fn get_error_line_span_and_message( // NOTE: this will fail in CI when called twice within one test: test names must be unique #[macro_export] macro_rules! get_program { - ($src:expr, $expect:expr) => { - $crate::tests::get_program($src, $crate::function_path!(), $expr) + ($src:expr) => { + $crate::tests::get_program($src, $expr) }; } // NOTE: this will fail in CI when called twice within one test: test names must be unique #[macro_export] macro_rules! get_program_using_features { - ($src:expr, $expect:expr, $features:expr) => { - $crate::tests::get_program_using_features( - $src, - Some($crate::function_path!()), - $expect, - $features, - ) + ($src:expr, $features:expr) => { + $crate::tests::get_program_using_features($src, $features) }; } @@ -315,7 +296,7 @@ macro_rules! get_program_using_features { #[macro_export] macro_rules! assert_no_errors { ($src:expr) => { - $crate::tests::assert_no_errors($src, $crate::function_path!()) + $crate::tests::assert_no_errors($src) }; } @@ -323,7 +304,7 @@ macro_rules! assert_no_errors { #[macro_export] macro_rules! get_program_errors { ($src:expr) => { - $crate::tests::get_program_errors($src, $crate::function_path!()) + $crate::tests::get_program_errors($src) }; } @@ -331,13 +312,7 @@ macro_rules! get_program_errors { #[macro_export] macro_rules! get_program_with_options { ($src:expr, $expect:expr, $allow_parser_errors:expr, $options:expr) => { - $crate::tests::get_program_with_options( - $src, - Some($crate::function_path!()), - $expect, - $allow_parser_errors, - $options, - ) + $crate::tests::get_program_with_options($src, $allow_parser_errors, $options) }; } @@ -345,7 +320,7 @@ macro_rules! get_program_with_options { #[macro_export] macro_rules! get_program_captures { ($src:expr) => { - $crate::tests::get_program_captures($src, $crate::function_path!()) + $crate::tests::get_program_captures($src) }; } @@ -353,10 +328,7 @@ macro_rules! get_program_captures { #[macro_export] macro_rules! check_errors { ($src:expr) => { - $crate::tests::check_errors($src, Some($crate::function_path!())) - }; - ($src:expr,) => { - $crate::check_errors!($src) + $crate::tests::check_errors($src) }; } @@ -364,7 +336,7 @@ macro_rules! check_errors { #[macro_export] macro_rules! check_errors_using_features { ($src:expr, $features:expr) => { - $crate::tests::check_errors_using_features($src, Some($crate::function_path!()), $features) + $crate::tests::check_errors_using_features($src, $features) }; } @@ -372,7 +344,7 @@ macro_rules! check_errors_using_features { #[macro_export] macro_rules! check_monomorphization_error { ($src:expr) => { - $crate::tests::check_monomorphization_error($src, Some($crate::function_path!())) + $crate::tests::check_monomorphization_error($src) }; } @@ -380,15 +352,10 @@ macro_rules! check_monomorphization_error { #[macro_export] macro_rules! check_monomorphization_error_using_features { ($src:expr, $features:expr) => { - $crate::tests::check_monomorphization_error_using_features( - $src, - Some($crate::function_path!()), - $features, - ) + $crate::tests::check_monomorphization_error_using_features($src, $features) }; } -#[named] #[test] fn check_trait_implemented_for_all_t() { let src = " @@ -436,7 +403,6 @@ fn check_trait_implemented_for_all_t() { assert_no_errors!(src); } -#[named] #[test] fn check_trait_implementation_duplicate_method() { let src = " @@ -469,7 +435,6 @@ fn check_trait_implementation_duplicate_method() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_method_return_type() { let src = " @@ -494,7 +459,6 @@ fn check_trait_wrong_method_return_type() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_method_return_type2() { let src = " @@ -520,7 +484,6 @@ fn check_trait_wrong_method_return_type2() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_method_return_type3() { let src = " @@ -546,7 +509,6 @@ fn check_trait_wrong_method_return_type3() { check_errors!(src); } -#[named] #[test] fn check_trait_missing_implementation() { let src = " @@ -576,7 +538,6 @@ fn check_trait_missing_implementation() { check_errors!(src); } -#[named] #[test] fn check_trait_not_in_scope() { let src = " @@ -598,7 +559,6 @@ fn check_trait_not_in_scope() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_method_name() { let src = " @@ -623,7 +583,6 @@ fn check_trait_wrong_method_name() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_parameter() { let src = " @@ -648,7 +607,6 @@ fn check_trait_wrong_parameter() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_parameter2() { let src = " @@ -674,7 +632,6 @@ fn check_trait_wrong_parameter2() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_parameter_type() { let src = " @@ -690,7 +647,6 @@ fn check_trait_wrong_parameter_type() { check_errors!(src); } -#[named] #[test] fn check_trait_wrong_parameters_count() { let src = " @@ -716,7 +672,6 @@ fn check_trait_wrong_parameters_count() { check_errors!(src); } -#[named] #[test] fn check_trait_impl_for_non_type() { let src = " @@ -736,7 +691,6 @@ fn check_trait_impl_for_non_type() { check_errors!(src); } -#[named] #[test] fn check_impl_struct_not_trait() { let src = " @@ -764,7 +718,6 @@ fn check_impl_struct_not_trait() { check_errors!(src); } -#[named] #[test] fn check_trait_duplicate_declaration() { let src = " @@ -796,7 +749,6 @@ fn check_trait_duplicate_declaration() { check_errors!(src); } -#[named] #[test] fn check_trait_duplicate_implementation() { let src = " @@ -820,7 +772,6 @@ fn check_trait_duplicate_implementation() { check_errors!(src); } -#[named] #[test] fn check_trait_duplicate_implementation_with_alias() { let src = " @@ -848,7 +799,6 @@ fn check_trait_duplicate_implementation_with_alias() { check_errors!(src); } -#[named] #[test] fn test_impl_self_within_default_def() { let src = " @@ -871,7 +821,6 @@ fn test_impl_self_within_default_def() { assert_no_errors!(src); } -#[named] #[test] fn check_trait_as_type_as_fn_parameter() { let src = " @@ -897,7 +846,6 @@ fn check_trait_as_type_as_fn_parameter() { assert_no_errors!(src); } -#[named] #[test] fn check_trait_as_type_as_two_fn_parameters() { let src = " @@ -931,8 +879,8 @@ fn check_trait_as_type_as_two_fn_parameters() { assert_no_errors!(src); } -fn get_program_captures(src: &str, test_path: &str) -> Vec> { - let (program, context, _errors) = get_program(src, Some(test_path), Expect::Success); +fn get_program_captures(src: &str) -> Vec> { + let (program, context, _errors) = get_program(src); let interner = context.def_interner; let mut all_captures: Vec> = Vec::new(); for func in program.into_sorted().functions { @@ -987,7 +935,6 @@ fn get_lambda_captures( } } -#[named] #[test] fn resolve_empty_function() { let src = " @@ -998,7 +945,6 @@ fn resolve_empty_function() { assert_no_errors!(src); } -#[named] #[test] fn resolve_basic_function() { let src = r#" @@ -1010,7 +956,6 @@ fn resolve_basic_function() { assert_no_errors!(src); } -#[named] #[test] fn resolve_unused_var() { let src = r#" @@ -1024,7 +969,6 @@ fn resolve_unused_var() { check_errors!(src); } -#[named] #[test] fn resolve_unresolved_var() { let src = r#" @@ -1038,7 +982,6 @@ fn resolve_unresolved_var() { check_errors!(src); } -#[named] #[test] fn unresolved_path() { let src = " @@ -1050,7 +993,6 @@ fn unresolved_path() { check_errors!(src); } -#[named] #[test] fn resolve_literal_expr() { let src = r#" @@ -1062,7 +1004,6 @@ fn resolve_literal_expr() { assert_no_errors!(src); } -#[named] #[test] fn multiple_resolution_errors() { let src = r#" @@ -1080,7 +1021,6 @@ fn multiple_resolution_errors() { check_errors!(src); } -#[named] #[test] fn resolve_prefix_expr() { let src = r#" @@ -1091,7 +1031,6 @@ fn resolve_prefix_expr() { assert_no_errors!(src); } -#[named] #[test] fn resolve_for_expr() { let src = r#" @@ -1104,7 +1043,6 @@ fn resolve_for_expr() { assert_no_errors!(src); } -#[named] #[test] fn resolve_for_expr_incl() { let src = r#" @@ -1117,7 +1055,6 @@ fn resolve_for_expr_incl() { assert_no_errors!(src); } -#[named] #[test] fn resolve_call_expr() { let src = r#" @@ -1132,7 +1069,6 @@ fn resolve_call_expr() { assert_no_errors!(src); } -#[named] #[test] fn resolve_shadowing() { let src = r#" @@ -1150,7 +1086,6 @@ fn resolve_shadowing() { assert_no_errors!(src); } -#[named] #[test] fn resolve_basic_closure() { let src = r#" @@ -1162,7 +1097,6 @@ fn resolve_basic_closure() { assert_no_errors!(src); } -#[named] #[test] fn resolve_simplified_closure() { // based on bug https://github.com/noir-lang/noir/issues/1088 @@ -1185,7 +1119,6 @@ fn resolve_simplified_closure() { assert_eq!(expected_captures, parsed_captures); } -#[named] #[test] fn resolve_complex_closures() { let src = r#" @@ -1212,7 +1145,7 @@ fn resolve_complex_closures() { a + b + c + closure_with_transitive_captures(6) } "#; - assert_no_errors(src, &format!("{}_1", function_path!())); + assert_no_errors(src); let expected_captures = vec![ vec![], @@ -1223,12 +1156,11 @@ fn resolve_complex_closures() { vec!["x".to_string(), "b".to_string()], ]; - let parsed_captures = get_program_captures(src, &format!("{}_2", function_path!())); + let parsed_captures = get_program_captures(src); assert_eq!(expected_captures, parsed_captures); } -#[named] #[test] fn resolve_fmt_strings() { let src = r#" @@ -1250,7 +1182,6 @@ fn resolve_fmt_strings() { check_errors!(src); } -#[named] #[test] fn deny_cyclic_globals() { let src = r#" @@ -1267,7 +1198,6 @@ fn deny_cyclic_globals() { check_errors!(src); } -#[named] #[test] fn deny_cyclic_type_aliases() { let src = r#" @@ -1280,7 +1210,6 @@ fn deny_cyclic_type_aliases() { check_errors!(src); } -#[named] #[test] fn ensure_nested_type_aliases_type_check() { let src = r#" @@ -1294,7 +1223,6 @@ fn ensure_nested_type_aliases_type_check() { check_errors!(src); } -#[named] #[test] fn type_aliases_in_entry_point() { let src = r#" @@ -1304,7 +1232,6 @@ fn type_aliases_in_entry_point() { assert_no_errors!(src); } -#[named] #[test] fn operators_in_global_used_in_type() { let src = r#" @@ -1317,7 +1244,6 @@ fn operators_in_global_used_in_type() { assert_no_errors!(src); } -#[named] #[test] fn break_and_continue_in_constrained_fn() { let src = r#" @@ -1339,7 +1265,6 @@ fn break_and_continue_in_constrained_fn() { check_errors!(src); } -#[named] #[test] fn break_and_continue_outside_loop() { let src = r#" @@ -1356,7 +1281,6 @@ fn break_and_continue_outside_loop() { } // Regression for #2540 -#[named] #[test] fn for_loop_over_array() { let src = r#" @@ -1373,7 +1297,6 @@ fn for_loop_over_array() { } // Regression for #4545 -#[named] #[test] fn type_aliases_in_main() { let src = r#" @@ -1383,7 +1306,6 @@ fn type_aliases_in_main() { assert_no_errors!(src); } -#[named] #[test] fn ban_mutable_globals() { let src = r#" @@ -1396,7 +1318,6 @@ fn ban_mutable_globals() { check_errors!(src); } -#[named] #[test] fn deny_inline_attribute_on_unconstrained() { let src = r#" @@ -1410,7 +1331,6 @@ fn deny_inline_attribute_on_unconstrained() { check_errors!(src); } -#[named] #[test] fn deny_fold_attribute_on_unconstrained() { let src = r#" @@ -1424,7 +1344,6 @@ fn deny_fold_attribute_on_unconstrained() { check_errors!(src); } -#[named] #[test] fn deny_oracle_attribute_on_non_unconstrained() { let src = r#" @@ -1438,7 +1357,6 @@ fn deny_oracle_attribute_on_non_unconstrained() { check_errors!(src); } -#[named] #[test] fn deny_abi_attribute_outside_of_contract() { let src = r#" @@ -1451,7 +1369,6 @@ fn deny_abi_attribute_outside_of_contract() { check_errors!(src); } -#[named] #[test] fn specify_function_types_with_turbofish() { let src = r#" @@ -1482,7 +1399,6 @@ fn specify_function_types_with_turbofish() { assert_no_errors!(src); } -#[named] #[test] fn specify_method_types_with_turbofish() { let src = r#" @@ -1516,7 +1432,6 @@ fn specify_method_types_with_turbofish() { assert_no_errors!(src); } -#[named] #[test] fn incorrect_turbofish_count_function_call() { let src = r#" @@ -1548,7 +1463,6 @@ fn incorrect_turbofish_count_function_call() { check_errors!(src); } -#[named] #[test] fn incorrect_turbofish_count_method_call() { let src = r#" @@ -1583,7 +1497,6 @@ fn incorrect_turbofish_count_method_call() { check_errors!(src); } -#[named] #[test] fn struct_numeric_generic_in_function() { let src = r#" @@ -1600,7 +1513,6 @@ fn struct_numeric_generic_in_function() { check_errors!(src); } -#[named] #[test] fn struct_numeric_generic_in_struct() { let src = r#" @@ -1615,7 +1527,6 @@ fn struct_numeric_generic_in_struct() { check_errors!(src); } -#[named] #[test] fn bool_numeric_generic() { let src = r#" @@ -1632,7 +1543,6 @@ fn bool_numeric_generic() { check_errors!(src); } -#[named] #[test] fn numeric_generic_binary_operation_type_mismatch() { let src = r#" @@ -1646,7 +1556,6 @@ fn numeric_generic_binary_operation_type_mismatch() { check_errors!(src); } -#[named] #[test] fn bool_generic_as_loop_bound() { let src = r#" @@ -1666,7 +1575,6 @@ fn bool_generic_as_loop_bound() { check_errors!(src); } -#[named] #[test] fn wrong_type_in_for_range() { let src = r#" @@ -1680,7 +1588,6 @@ fn wrong_type_in_for_range() { check_errors!(src); } -#[named] #[test] fn numeric_generic_in_function_signature() { let src = r#" @@ -1691,7 +1598,6 @@ fn numeric_generic_in_function_signature() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_as_struct_field_type_fails() { let src = r#" @@ -1705,7 +1611,6 @@ fn numeric_generic_as_struct_field_type_fails() { check_errors!(src); } -#[named] #[test] fn normal_generic_as_array_length() { // TODO: improve error location, should be just on N @@ -1720,7 +1625,6 @@ fn normal_generic_as_array_length() { check_errors!(src); } -#[named] #[test] fn numeric_generic_as_param_type() { let src = r#" @@ -1740,7 +1644,6 @@ fn numeric_generic_as_param_type() { check_errors!(src); } -#[named] #[test] fn numeric_generic_as_unused_param_type() { let src = r#" @@ -1751,7 +1654,6 @@ fn numeric_generic_as_unused_param_type() { check_errors!(src); } -#[named] #[test] fn numeric_generic_as_unused_trait_fn_param_type() { let src = r#" @@ -1766,7 +1668,6 @@ fn numeric_generic_as_unused_trait_fn_param_type() { check_errors!(src); } -#[named] #[test] fn numeric_generic_as_return_type() { let src = r#" @@ -1790,7 +1691,6 @@ fn numeric_generic_as_return_type() { check_errors!(src); } -#[named] #[test] fn numeric_generic_used_in_nested_type_fails() { let src = r#" @@ -1807,7 +1707,6 @@ fn numeric_generic_used_in_nested_type_fails() { check_errors!(src); } -#[named] #[test] fn normal_generic_used_in_nested_array_length_fail() { let src = r#" @@ -1824,7 +1723,6 @@ fn normal_generic_used_in_nested_array_length_fail() { check_errors!(src); } -#[named] #[test] fn numeric_generic_used_in_nested_type_pass() { // The order of these structs should not be changed to make sure @@ -1843,7 +1741,6 @@ fn numeric_generic_used_in_nested_type_pass() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_used_in_trait() { // We want to make sure that `N` in `impl Deserialize` does @@ -1872,7 +1769,6 @@ fn numeric_generic_used_in_trait() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_in_trait_impl_with_extra_impl_generics() { let src = r#" @@ -1906,7 +1802,6 @@ fn numeric_generic_in_trait_impl_with_extra_impl_generics() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_used_in_where_clause() { let src = r#" @@ -1927,7 +1822,6 @@ fn numeric_generic_used_in_where_clause() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_used_in_turbofish() { let src = r#" @@ -1949,7 +1843,6 @@ fn numeric_generic_used_in_turbofish() { // TODO(https://github.com/noir-lang/noir/issues/6245): // allow u16 to be used as an array size -#[named] #[test] fn numeric_generic_u16_array_size() { // TODO: improve the error location @@ -1972,7 +1865,6 @@ fn numeric_generic_u16_array_size() { check_errors!(src); } -#[named] #[test] fn numeric_generic_field_larger_than_u32() { let src = r#" @@ -1987,7 +1879,6 @@ fn numeric_generic_field_larger_than_u32() { assert_no_errors!(src); } -#[named] #[test] fn numeric_generic_field_arithmetic_larger_than_u32() { let src = r#" @@ -2011,7 +1902,6 @@ fn numeric_generic_field_arithmetic_larger_than_u32() { assert_no_errors!(src); } -#[named] #[test] fn cast_256_to_u8_size_checks() { let src = r#" @@ -2026,7 +1916,6 @@ fn cast_256_to_u8_size_checks() { // TODO(https://github.com/noir-lang/noir/issues/6247): // add negative integer literal checks -#[named] #[test] fn cast_negative_one_to_u8_size_checks() { let src = r#" @@ -2037,7 +1926,6 @@ fn cast_negative_one_to_u8_size_checks() { assert_no_errors!(src); } -#[named] #[test] fn cast_signed_i8_to_field_must_error() { let src = r#" @@ -2046,10 +1934,9 @@ fn cast_signed_i8_to_field_must_error() { ^^^^^^^^^^^^^^^^^^^ Only unsigned integer types may be casted to Field } "#; - check_errors(src, Some(&format!("{}_1", function_path!()))); + check_errors(src); } -#[named] #[test] fn cast_signed_i32_to_field_must_error() { let src = r#" @@ -2058,10 +1945,9 @@ fn cast_signed_i32_to_field_must_error() { ^^^^^^^^^^ Only unsigned integer types may be casted to Field } "#; - check_errors(src, Some(&format!("{}_1", function_path!()))); + check_errors(src); } -#[named] #[test] fn constant_used_with_numeric_generic() { let src = r#" @@ -2086,7 +1972,6 @@ fn constant_used_with_numeric_generic() { assert_no_errors!(src); } -#[named] #[test] fn normal_generic_used_when_numeric_expected_in_where_clause() { let src = r#" @@ -2100,7 +1985,7 @@ fn normal_generic_used_when_numeric_expected_in_where_clause() { T::deserialize([0, 1]) } "#; - check_errors(src, Some(&format!("{}_1", function_path!()))); + check_errors(src); // TODO: improve the error location for the array (should be on N) let src = r#" @@ -2124,10 +2009,9 @@ fn normal_generic_used_when_numeric_expected_in_where_clause() { T::deserialize(fields) } "#; - check_errors(src, Some(&format!("{}_2", function_path!()))); + check_errors(src); } -#[named] #[test] fn numeric_generics_type_kind_mismatch() { let src = r#" @@ -2152,7 +2036,6 @@ fn numeric_generics_type_kind_mismatch() { check_errors!(src); } -#[named] #[test] fn numeric_generics_value_kind_mismatch_u32_u64() { let src = r#" @@ -2186,7 +2069,6 @@ fn numeric_generics_value_kind_mismatch_u32_u64() { check_errors!(src); } -#[named] #[test] fn quote_code_fragments() { // TODO: have the error also point to `contact!` as a secondary @@ -2208,7 +2090,6 @@ fn quote_code_fragments() { check_errors!(src); } -#[named] #[test] fn impl_stricter_than_trait_no_trait_method_constraints() { // This test ensures that the error we get from the where clause on the trait impl method @@ -2259,7 +2140,6 @@ fn impl_stricter_than_trait_no_trait_method_constraints() { check_errors!(src); } -#[named] #[test] fn impl_stricter_than_trait_different_generics() { let src = r#" @@ -2284,7 +2164,6 @@ fn impl_stricter_than_trait_different_generics() { check_errors!(src); } -#[named] #[test] fn impl_stricter_than_trait_different_object_generics() { let src = r#" @@ -2350,7 +2229,6 @@ fn impl_stricter_than_trait_different_object_generics() { check_errors!(src); } -#[named] #[test] fn impl_stricter_than_trait_different_trait() { let src = r#" @@ -2382,7 +2260,6 @@ fn impl_stricter_than_trait_different_trait() { check_errors!(src); } -#[named] #[test] fn trait_impl_where_clause_stricter_pass() { let src = r#" @@ -2414,7 +2291,6 @@ fn trait_impl_where_clause_stricter_pass() { check_errors!(src); } -#[named] #[test] fn impl_stricter_than_trait_different_trait_generics() { let src = r#" @@ -2435,7 +2311,6 @@ fn impl_stricter_than_trait_different_trait_generics() { check_errors!(src); } -#[named] #[test] fn cannot_call_unconstrained_function_outside_of_unsafe() { let src = r#" @@ -2449,7 +2324,6 @@ fn cannot_call_unconstrained_function_outside_of_unsafe() { check_errors!(src); } -#[named] #[test] fn cannot_call_unconstrained_first_class_function_outside_of_unsafe() { let src = r#" @@ -2470,7 +2344,6 @@ fn cannot_call_unconstrained_first_class_function_outside_of_unsafe() { check_errors!(src); } -#[named] #[test] fn missing_unsafe_block_when_needing_type_annotations() { // This test is a regression check that even when an unsafe block is missing @@ -2509,7 +2382,6 @@ fn missing_unsafe_block_when_needing_type_annotations() { check_errors!(src); } -#[named] #[test] fn cannot_pass_unconstrained_function_to_regular_function() { let src = r#" @@ -2527,7 +2399,6 @@ fn cannot_pass_unconstrained_function_to_regular_function() { check_errors!(src); } -#[named] #[test] fn cannot_assign_unconstrained_and_regular_fn_to_variable() { let src = r#" @@ -2542,7 +2413,6 @@ fn cannot_assign_unconstrained_and_regular_fn_to_variable() { check_errors!(src); } -#[named] #[test] fn can_pass_regular_function_to_unconstrained_function() { let src = r#" @@ -2558,7 +2428,6 @@ fn can_pass_regular_function_to_unconstrained_function() { assert_no_errors!(src); } -#[named] #[test] fn cannot_pass_unconstrained_function_to_constrained_function() { let src = r#" @@ -2575,7 +2444,6 @@ fn cannot_pass_unconstrained_function_to_constrained_function() { check_errors!(src); } -#[named] #[test] fn can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var() { let src = r#" @@ -2588,7 +2456,6 @@ fn can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var assert_no_errors!(src); } -#[named] #[test] fn can_assign_regular_function_to_unconstrained_function_in_struct_member() { let src = r#" @@ -2605,7 +2472,6 @@ fn can_assign_regular_function_to_unconstrained_function_in_struct_member() { assert_no_errors!(src); } -#[named] #[test] fn trait_impl_generics_count_mismatch() { let src = r#" @@ -2619,7 +2485,6 @@ fn trait_impl_generics_count_mismatch() { check_errors!(src); } -#[named] #[test] fn bit_not_on_untyped_integer() { let src = r#" @@ -2630,7 +2495,6 @@ fn bit_not_on_untyped_integer() { assert_no_errors!(src); } -#[named] #[test] fn duplicate_struct_field() { let src = r#" @@ -2647,7 +2511,6 @@ fn duplicate_struct_field() { check_errors!(src); } -#[named] #[test] fn trait_constraint_on_tuple_type() { let src = r#" @@ -2663,7 +2526,6 @@ fn trait_constraint_on_tuple_type() { assert_no_errors!(src); } -#[named] #[test] fn trait_constraint_on_tuple_type_pub_crate() { let src = r#" @@ -2679,7 +2541,6 @@ fn trait_constraint_on_tuple_type_pub_crate() { assert_no_errors!(src); } -#[named] #[test] fn incorrect_generic_count_on_struct_impl() { let src = r#" @@ -2693,7 +2554,6 @@ fn incorrect_generic_count_on_struct_impl() { check_errors!(src); } -#[named] #[test] fn incorrect_generic_count_on_type_alias() { let src = r#" @@ -2707,7 +2567,6 @@ fn incorrect_generic_count_on_type_alias() { check_errors!(src); } -#[named] #[test] fn uses_self_type_for_struct_function_call() { let src = r#" @@ -2730,7 +2589,6 @@ fn uses_self_type_for_struct_function_call() { assert_no_errors!(src); } -#[named] #[test] fn uses_self_type_inside_trait() { let src = r#" @@ -2755,7 +2613,6 @@ fn uses_self_type_inside_trait() { assert_no_errors!(src); } -#[named] #[test] fn uses_self_type_in_trait_where_clause() { let src = r#" @@ -2786,7 +2643,6 @@ fn uses_self_type_in_trait_where_clause() { check_errors!(src); } -#[named] #[test] fn do_not_eagerly_error_on_cast_on_type_variable() { let src = r#" @@ -2802,7 +2658,6 @@ fn do_not_eagerly_error_on_cast_on_type_variable() { assert_no_errors!(src); } -#[named] #[test] fn error_on_cast_over_type_variable() { let src = r#" @@ -2819,7 +2674,6 @@ fn error_on_cast_over_type_variable() { check_errors!(src); } -#[named] #[test] fn trait_impl_for_a_type_that_implements_another_trait() { let src = r#" @@ -2852,7 +2706,6 @@ fn trait_impl_for_a_type_that_implements_another_trait() { assert_no_errors!(src); } -#[named] #[test] fn trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used() { let src = r#" @@ -2893,7 +2746,6 @@ fn trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used() assert_no_errors!(src); } -#[named] #[test] fn impl_missing_associated_type() { let src = r#" @@ -2907,7 +2759,6 @@ fn impl_missing_associated_type() { check_errors!(src); } -#[named] #[test] fn as_trait_path_syntax_resolves_outside_impl() { let src = r#" @@ -2933,7 +2784,6 @@ fn as_trait_path_syntax_resolves_outside_impl() { check_errors!(src); } -#[named] #[test] fn as_trait_path_syntax_no_impl() { let src = r#" @@ -2958,7 +2808,6 @@ fn as_trait_path_syntax_no_impl() { check_errors!(src); } -#[named] #[test] fn do_not_infer_globals_to_u32_from_type_use() { let src = r#" @@ -2987,7 +2836,6 @@ fn do_not_infer_globals_to_u32_from_type_use() { check_errors!(src); } -#[named] #[test] fn do_not_infer_partial_global_types() { let src = r#" @@ -3018,7 +2866,6 @@ fn do_not_infer_partial_global_types() { check_errors!(src); } -#[named] #[test] fn u32_globals_as_sizes_in_types() { let src = r#" @@ -3035,7 +2882,6 @@ fn u32_globals_as_sizes_in_types() { assert_no_errors!(src); } -#[named] #[test] fn struct_array_len() { let src = r#" @@ -3063,7 +2909,6 @@ fn struct_array_len() { // TODO(https://github.com/noir-lang/noir/issues/6245): // support u8 as an array size -#[named] #[test] fn non_u32_as_array_length() { let src = r#" @@ -3078,7 +2923,6 @@ fn non_u32_as_array_length() { check_errors!(src); } -#[named] #[test] fn use_non_u32_generic_in_struct() { let src = r#" @@ -3091,7 +2935,6 @@ fn use_non_u32_generic_in_struct() { assert_no_errors!(src); } -#[named] #[test] fn use_numeric_generic_in_trait_method() { let src = r#" @@ -3115,7 +2958,6 @@ fn use_numeric_generic_in_trait_method() { assert_no_errors!(src); } -#[named] #[test] fn trait_unconstrained_methods_typechecked_correctly() { // This test checks that we properly track whether a method has been declared as unconstrained on the trait definition @@ -3142,7 +2984,6 @@ fn trait_unconstrained_methods_typechecked_correctly() { assert_no_errors!(src); } -#[named] #[test] fn error_if_attribute_not_in_scope() { let src = r#" @@ -3153,7 +2994,6 @@ fn error_if_attribute_not_in_scope() { check_errors!(src); } -#[named] #[test] fn arithmetic_generics_rounding_pass() { let src = r#" @@ -3167,7 +3007,6 @@ fn arithmetic_generics_rounding_pass() { assert_no_errors!(src); } -#[named] #[test] fn arithmetic_generics_rounding_fail() { let src = r#" @@ -3183,7 +3022,6 @@ fn arithmetic_generics_rounding_fail() { check_errors!(src); } -#[named] #[test] fn arithmetic_generics_rounding_fail_on_struct() { let src = r#" @@ -3205,7 +3043,6 @@ fn arithmetic_generics_rounding_fail_on_struct() { check_errors!(src); } -#[named] #[test] fn unconditional_recursion_fail() { // These examples are self recursive top level functions, which would actually @@ -3295,12 +3132,11 @@ fn unconditional_recursion_fail() { "#, ]; - for (index, src) in sources.into_iter().enumerate() { - check_errors(src, Some(&format!("{}_{index}", function_path!()))); + for src in sources { + check_errors(src); } } -#[named] #[test] fn unconditional_recursion_pass() { let sources = vec![ @@ -3345,12 +3181,11 @@ fn unconditional_recursion_pass() { "#, ]; - for (index, src) in sources.into_iter().enumerate() { - assert_no_errors(src, &format!("{}_{index}", function_path!())); + for src in sources { + assert_no_errors(src); } } -#[named] #[test] fn uses_self_in_import() { let src = r#" @@ -3373,7 +3208,6 @@ fn uses_self_in_import() { assert_no_errors!(src); } -#[named] #[test] fn does_not_error_on_return_values_after_block_expression() { // Regression test for https://github.com/noir-lang/noir/issues/4372 @@ -3400,7 +3234,6 @@ fn does_not_error_on_return_values_after_block_expression() { assert_no_errors!(src); } -#[named] #[test] fn use_type_alias_in_method_call() { let src = r#" @@ -3426,7 +3259,6 @@ fn use_type_alias_in_method_call() { assert_no_errors!(src); } -#[named] #[test] fn use_type_alias_to_generic_concrete_type_in_method_call() { let src = r#" @@ -3453,7 +3285,6 @@ fn use_type_alias_to_generic_concrete_type_in_method_call() { assert_no_errors!(src); } -#[named] #[test] fn allows_struct_with_generic_infix_type_as_main_input_1() { let src = r#" @@ -3466,7 +3297,6 @@ fn allows_struct_with_generic_infix_type_as_main_input_1() { assert_no_errors!(src); } -#[named] #[test] fn allows_struct_with_generic_infix_type_as_main_input_2() { let src = r#" @@ -3479,7 +3309,6 @@ fn allows_struct_with_generic_infix_type_as_main_input_2() { assert_no_errors!(src); } -#[named] #[test] fn allows_struct_with_generic_infix_type_as_main_input_3() { let src = r#" @@ -3494,7 +3323,6 @@ fn allows_struct_with_generic_infix_type_as_main_input_3() { assert_no_errors!(src); } -#[named] #[test] fn errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function() { let src = r#" @@ -3515,7 +3343,6 @@ fn errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_funct check_errors!(src); } -#[named] #[test] fn disallows_test_attribute_on_impl_method() { // TODO: improve the error location @@ -3523,7 +3350,7 @@ fn disallows_test_attribute_on_impl_method() { pub struct Foo { } impl Foo { - #[named] + #[test] fn foo() { } ^^^ The `#[test]` attribute is disallowed on `impl` methods @@ -3534,7 +3361,6 @@ fn disallows_test_attribute_on_impl_method() { check_errors!(src); } -#[named] #[test] fn disallows_test_attribute_on_trait_impl_method() { let src = " @@ -3555,7 +3381,6 @@ fn disallows_test_attribute_on_trait_impl_method() { check_errors!(src); } -#[named] #[test] fn disallows_export_attribute_on_impl_method() { // TODO: improve the error location @@ -3573,7 +3398,6 @@ fn disallows_export_attribute_on_impl_method() { check_errors!(src); } -#[named] #[test] fn disallows_export_attribute_on_trait_impl_method() { // TODO: improve the error location @@ -3595,7 +3419,6 @@ fn disallows_export_attribute_on_trait_impl_method() { check_errors!(src); } -#[named] #[test] fn allows_multiple_underscore_parameters() { let src = r#" @@ -3606,7 +3429,6 @@ fn allows_multiple_underscore_parameters() { assert_no_errors!(src); } -#[named] #[test] fn disallows_underscore_on_right_hand_side() { let src = r#" @@ -3620,7 +3442,6 @@ fn disallows_underscore_on_right_hand_side() { check_errors!(src); } -#[named] #[test] fn errors_on_cyclic_globals() { let src = r#" @@ -3637,7 +3458,6 @@ fn errors_on_cyclic_globals() { check_errors!(src); } -#[named] #[test] fn warns_on_unneeded_unsafe() { let src = r#" @@ -3654,7 +3474,6 @@ fn warns_on_unneeded_unsafe() { check_errors!(src); } -#[named] #[test] fn warns_on_nested_unsafe() { let src = r#" @@ -3675,7 +3494,6 @@ fn warns_on_nested_unsafe() { check_errors!(src); } -#[named] #[test] fn mutable_self_call() { let src = r#" @@ -3695,7 +3513,6 @@ fn mutable_self_call() { assert_no_errors!(src); } -#[named] #[test] fn checks_visibility_of_trait_related_to_trait_impl_on_method_call() { let src = r#" @@ -3719,7 +3536,6 @@ fn checks_visibility_of_trait_related_to_trait_impl_on_method_call() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_method_call_function_type() { let src = r#" @@ -3751,7 +3567,6 @@ fn infers_lambda_argument_from_method_call_function_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_call_function_type() { let src = r#" @@ -3770,7 +3585,6 @@ fn infers_lambda_argument_from_call_function_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_call_function_type_in_generic_call() { let src = r#" @@ -3789,7 +3603,6 @@ fn infers_lambda_argument_from_call_function_type_in_generic_call() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_call_function_type_as_alias() { let src = r#" @@ -3810,7 +3623,6 @@ fn infers_lambda_argument_from_call_function_type_as_alias() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_function_return_type() { let src = r#" @@ -3828,7 +3640,6 @@ fn infers_lambda_argument_from_function_return_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_function_return_type_multiple_statements() { let src = r#" @@ -3847,7 +3658,6 @@ fn infers_lambda_argument_from_function_return_type_multiple_statements() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_function_return_type_when_inside_if() { let src = r#" @@ -3869,7 +3679,6 @@ fn infers_lambda_argument_from_function_return_type_when_inside_if() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_variable_type() { let src = r#" @@ -3884,7 +3693,6 @@ fn infers_lambda_argument_from_variable_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_variable_alias_type() { let src = r#" @@ -3901,7 +3709,6 @@ fn infers_lambda_argument_from_variable_alias_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_variable_double_alias_type() { let src = r#" @@ -3919,7 +3726,6 @@ fn infers_lambda_argument_from_variable_double_alias_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_variable_tuple_type() { let src = r#" @@ -3934,7 +3740,6 @@ fn infers_lambda_argument_from_variable_tuple_type() { assert_no_errors!(src); } -#[named] #[test] fn infers_lambda_argument_from_variable_tuple_type_aliased() { let src = r#" @@ -3951,7 +3756,6 @@ fn infers_lambda_argument_from_variable_tuple_type_aliased() { assert_no_errors!(src); } -#[named] #[test] fn regression_7088() { // A test for code that initially broke when implementing inferring @@ -3974,7 +3778,6 @@ fn regression_7088() { assert_no_errors!(src); } -#[named] #[test] fn errors_on_empty_loop_no_break() { let src = r#" @@ -3994,7 +3797,6 @@ fn errors_on_empty_loop_no_break() { check_errors!(src); } -#[named] #[test] fn errors_on_loop_without_break() { let src = r#" @@ -4020,7 +3822,6 @@ fn errors_on_loop_without_break() { check_errors!(src); } -#[named] #[test] fn errors_on_loop_without_break_with_nested_loop() { let src = r#" @@ -4050,7 +3851,6 @@ fn errors_on_loop_without_break_with_nested_loop() { check_errors!(src); } -#[named] #[test] fn call_function_alias_type() { let src = r#" @@ -4067,7 +3867,6 @@ fn call_function_alias_type() { assert_no_errors!(src); } -#[named] #[test] fn errors_on_if_without_else_type_mismatch() { let src = r#" @@ -4081,7 +3880,6 @@ fn errors_on_if_without_else_type_mismatch() { check_errors!(src); } -#[named] #[test] fn does_not_stack_overflow_on_many_comments_in_a_row() { let mut src = "//\n".repeat(10_000); @@ -4089,7 +3887,6 @@ fn does_not_stack_overflow_on_many_comments_in_a_row() { assert_no_errors!(&src); } -#[named] #[test] fn errors_if_for_body_type_is_not_unit() { let src = r#" @@ -4103,7 +3900,6 @@ fn errors_if_for_body_type_is_not_unit() { check_errors!(src); } -#[named] #[test] fn errors_if_loop_body_type_is_not_unit() { let src = r#" @@ -4119,7 +3915,6 @@ fn errors_if_loop_body_type_is_not_unit() { check_errors!(src); } -#[named] #[test] fn errors_if_while_body_type_is_not_unit() { let src = r#" @@ -4133,7 +3928,6 @@ fn errors_if_while_body_type_is_not_unit() { check_errors!(src); } -#[named] #[test] fn check_impl_duplicate_method_without_self() { let src = " @@ -4152,7 +3946,6 @@ fn check_impl_duplicate_method_without_self() { check_errors!(src); } -#[named] #[test] fn int_min_global() { let src = r#" @@ -4164,7 +3957,6 @@ fn int_min_global() { assert_no_errors!(src); } -#[named] #[test] fn subtract_to_int_min() { // This would cause an integer underflow panic before @@ -4181,7 +3973,6 @@ fn subtract_to_int_min() { assert_no_errors!(src); } -#[named] #[test] fn mutate_with_reference_in_lambda() { let src = r#" @@ -4198,7 +3989,6 @@ fn mutate_with_reference_in_lambda() { assert_no_errors!(src); } -#[named] #[test] fn mutate_with_reference_marked_mutable_in_lambda() { let src = r#" @@ -4214,7 +4004,6 @@ fn mutate_with_reference_marked_mutable_in_lambda() { assert_no_errors!(src); } -#[named] #[test] fn deny_capturing_mut_variable_without_reference_in_lambda() { let src = r#" @@ -4232,7 +4021,6 @@ fn deny_capturing_mut_variable_without_reference_in_lambda() { check_errors!(src); } -#[named] #[test] fn deny_capturing_mut_variable_without_reference_in_nested_lambda() { let src = r#" @@ -4253,7 +4041,6 @@ fn deny_capturing_mut_variable_without_reference_in_nested_lambda() { check_errors!(src); } -#[named] #[test] fn allow_capturing_mut_variable_only_used_immutably() { let src = r#" @@ -4267,7 +4054,6 @@ fn allow_capturing_mut_variable_only_used_immutably() { assert_no_errors!(src); } -#[named] #[test] fn deny_capturing_mut_var_as_param_to_function() { let src = r#" @@ -4287,7 +4073,6 @@ fn deny_capturing_mut_var_as_param_to_function() { check_errors!(src); } -#[named] #[test] fn deny_capturing_mut_var_as_param_to_function_in_nested_lambda() { let src = r#" @@ -4310,7 +4095,6 @@ fn deny_capturing_mut_var_as_param_to_function_in_nested_lambda() { check_errors!(src); } -#[named] #[test] fn deny_capturing_mut_var_as_param_to_impl_method() { let src = r#" @@ -4336,7 +4120,6 @@ fn deny_capturing_mut_var_as_param_to_impl_method() { check_errors!(src); } -#[named] #[test] fn deny_attaching_mut_ref_to_immutable_object() { let src = r#" @@ -4372,12 +4155,10 @@ fn immutable_references_with_ownership_feature() { fn borrow(_array: &[Field; 3]) {} "#; - let (_, _, errors) = - get_program_using_features(src, None, Expect::Success, &[UnstableFeature::Ownership]); + let (_, _, errors) = get_program_using_features(src, &[UnstableFeature::Ownership]); assert_eq!(errors.len(), 0); } -#[named] #[test] fn immutable_references_without_ownership_feature() { let src = r#" @@ -4395,7 +4176,6 @@ fn immutable_references_without_ownership_feature() { check_errors!(src); } -#[named] #[test] fn mutable_reference_to_array_element_as_func_arg() { let src = r#" @@ -4413,7 +4193,6 @@ fn mutable_reference_to_array_element_as_func_arg() { check_errors!(src); } -#[named] #[test] fn object_type_must_be_known_in_method_call() { let src = r#" @@ -4431,7 +4210,6 @@ fn object_type_must_be_known_in_method_call() { check_errors!(src); } -#[named] #[test] fn indexing_array_with_default_numeric_type_does_not_produce_an_error() { let src = r#" @@ -4444,7 +4222,6 @@ fn indexing_array_with_default_numeric_type_does_not_produce_an_error() { assert_no_errors!(src); } -#[named] #[test] fn indexing_array_with_u32_does_not_produce_an_error() { let src = r#" @@ -4457,7 +4234,6 @@ fn indexing_array_with_u32_does_not_produce_an_error() { assert_no_errors!(src); } -#[named] #[test] fn indexing_array_with_non_u32_produces_an_error() { let src = r#" @@ -4471,7 +4247,6 @@ fn indexing_array_with_non_u32_produces_an_error() { check_errors!(src); } -#[named] #[test] fn indexing_array_with_non_u32_on_lvalue_produces_an_error() { let src = r#" @@ -4485,7 +4260,6 @@ fn indexing_array_with_non_u32_on_lvalue_produces_an_error() { check_errors!(src); } -#[named] #[test] fn cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic() { let src = r#" @@ -4502,7 +4276,6 @@ fn cannot_determine_type_of_generic_argument_in_function_call_with_regular_gener check_errors!(src); } -#[named] #[test] fn cannot_determine_type_of_generic_argument_in_struct_constructor() { let src = r#" @@ -4519,7 +4292,6 @@ fn cannot_determine_type_of_generic_argument_in_struct_constructor() { check_errors!(src); } -#[named] #[test] fn cannot_determine_type_of_generic_argument_in_enum_constructor() { let src = r#" @@ -4539,7 +4311,6 @@ fn cannot_determine_type_of_generic_argument_in_enum_constructor() { check_errors_using_features!(src, &features); } -#[named] #[test] fn cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl() { let src = r#" @@ -4558,7 +4329,6 @@ fn cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl() check_errors!(src); } -#[named] #[test] fn unconstrained_type_parameter_in_impl() { let src = r#" @@ -4575,7 +4345,6 @@ fn unconstrained_type_parameter_in_impl() { check_errors!(src); } -#[named] #[test] fn unconstrained_numeric_generic_in_impl() { let src = r#" @@ -4592,7 +4361,6 @@ fn unconstrained_numeric_generic_in_impl() { check_errors!(src); } -#[named] #[test] fn resolves_generic_type_argument_via_self() { let src = " @@ -4613,7 +4381,6 @@ fn resolves_generic_type_argument_via_self() { check_monomorphization_error!(src); } -#[named] #[test] fn attempt_to_add_with_overflow_at_comptime() { let src = r#" @@ -4628,7 +4395,6 @@ fn attempt_to_add_with_overflow_at_comptime() { check_errors!(src); } -#[named] #[test] fn attempt_to_divide_by_zero_at_comptime() { let src = r#" @@ -4643,7 +4409,6 @@ fn attempt_to_divide_by_zero_at_comptime() { check_errors!(src); } -#[named] #[test] fn same_name_in_types_and_values_namespace_works() { let src = " @@ -4661,7 +4426,6 @@ fn same_name_in_types_and_values_namespace_works() { assert_no_errors!(src); } -#[named] #[test] fn only_one_private_error_when_name_in_types_and_values_namespace_collides() { let src = " @@ -4683,7 +4447,6 @@ fn only_one_private_error_when_name_in_types_and_values_namespace_collides() { check_errors!(src); } -#[named] #[test] fn cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic() { let src = r#" @@ -4711,7 +4474,6 @@ fn cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numer check_errors_using_features!(src, &features); } -#[named] #[test] fn cannot_determine_array_type() { let src = r#" @@ -4724,7 +4486,6 @@ fn cannot_determine_array_type() { check_errors!(src); } -#[named] #[test] fn cannot_determine_slice_type() { let src = r#" @@ -4737,7 +4498,6 @@ fn cannot_determine_slice_type() { check_errors!(src); } -#[named] #[test] fn overflowing_int_in_for_loop() { let src = r#" @@ -4750,7 +4510,6 @@ fn overflowing_int_in_for_loop() { check_errors!(src); } -#[named] #[test] fn cannot_use_prefix_minus_on_u32() { let src = r#" @@ -4763,7 +4522,6 @@ fn cannot_use_prefix_minus_on_u32() { check_errors!(src); } -#[named] #[test] fn static_method_with_generics_on_type_and_method() { let src = r#" @@ -4780,7 +4538,6 @@ fn static_method_with_generics_on_type_and_method() { assert_no_errors!(src); } -#[named] #[test] fn cannot_assign_to_module() { let src = r#" @@ -4794,7 +4551,6 @@ fn cannot_assign_to_module() { check_errors!(src); } -#[named] #[test] fn cannot_assign_to_nested_struct() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/aliases.rs b/compiler/noirc_frontend/src/tests/aliases.rs index bc0f46b01cb..b7fde71bc8f 100644 --- a/compiler/noirc_frontend/src/tests/aliases.rs +++ b/compiler/noirc_frontend/src/tests/aliases.rs @@ -1,6 +1,5 @@ use crate::{assert_no_errors, check_errors}; -#[named] #[test] fn allows_usage_of_type_alias_as_argument_type() { let src = r#" @@ -17,7 +16,6 @@ fn allows_usage_of_type_alias_as_argument_type() { assert_no_errors!(src); } -#[named] #[test] fn allows_usage_of_type_alias_as_return_type() { let src = r#" @@ -34,7 +32,6 @@ fn allows_usage_of_type_alias_as_return_type() { assert_no_errors!(src); } -#[named] #[test] fn alias_in_let_pattern() { let src = r#" @@ -51,7 +48,6 @@ fn alias_in_let_pattern() { assert_no_errors!(src); } -#[named] #[test] fn double_alias_in_path() { let src = r#" @@ -73,7 +69,6 @@ fn double_alias_in_path() { assert_no_errors!(src); } -#[named] #[test] fn double_generic_alias_in_path() { let src = r#" @@ -95,7 +90,6 @@ fn double_generic_alias_in_path() { assert_no_errors!(src); } -#[named] #[test] fn identity_numeric_type_alias_works() { let src = r#" @@ -106,7 +100,6 @@ fn identity_numeric_type_alias_works() { assert_no_errors!(src); } -#[named] #[test] fn self_referring_type_alias_is_not_allowed() { let src = r#" @@ -121,7 +114,6 @@ fn self_referring_type_alias_is_not_allowed() { check_errors!(src); } -#[named] #[test] fn type_alias_to_numeric_generic() { let src = r#" @@ -141,7 +133,6 @@ fn type_alias_to_numeric_generic() { assert_no_errors!(src); } -#[named] #[test] fn disallows_composing_numeric_type_aliases() { let src = r#" @@ -166,7 +157,6 @@ fn disallows_composing_numeric_type_aliases() { check_errors!(src); } -#[named] #[test] fn disallows_numeric_type_aliases_to_expression_with_alias() { let src = r#" @@ -191,7 +181,6 @@ fn disallows_numeric_type_aliases_to_expression_with_alias() { check_errors!(src); } -#[named] #[test] fn disallows_numeric_type_aliases_to_expression_with_alias_2() { let src = r#" @@ -217,7 +206,6 @@ fn disallows_numeric_type_aliases_to_expression_with_alias_2() { check_errors!(src); } -#[named] #[test] fn disallows_numeric_type_aliases_to_type() { let src = r#" @@ -232,7 +220,6 @@ fn disallows_numeric_type_aliases_to_type() { check_errors!(src); } -#[named] #[test] fn type_alias_to_numeric_as_generic() { let src = r#" @@ -256,7 +243,6 @@ fn type_alias_to_numeric_as_generic() { assert_no_errors!(src); } -#[named] #[test] fn self_referring_type_alias_with_generics_is_not_allowed() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/arithmetic_generics.rs b/compiler/noirc_frontend/src/tests/arithmetic_generics.rs index c031b2f736d..99d17cb0686 100644 --- a/compiler/noirc_frontend/src/tests/arithmetic_generics.rs +++ b/compiler/noirc_frontend/src/tests/arithmetic_generics.rs @@ -3,14 +3,12 @@ use core::panic; use crate::assert_no_errors; -use crate::get_monomorphized; use crate::hir::type_check::TypeCheckError; use crate::hir_def::types::{BinaryTypeOperator, Type}; use crate::monomorphization::errors::MonomorphizationError; use crate::signed_field::SignedField; -use crate::tests::Expect; +use crate::test_utils::get_monomorphized; -#[named] #[test] fn arithmetic_generics_canonicalization_deduplication_regression() { let source = r#" @@ -29,7 +27,6 @@ fn arithmetic_generics_canonicalization_deduplication_regression() { assert_no_errors!(source); } -#[named] #[test] fn checked_casts_do_not_prevent_canonicalization() { // Regression test for https://github.com/noir-lang/noir/issues/6495 @@ -60,7 +57,6 @@ fn checked_casts_do_not_prevent_canonicalization() { assert_no_errors!(source); } -#[named] #[test] fn arithmetic_generics_checked_cast_zeros() { let source = r#" @@ -81,7 +77,7 @@ fn arithmetic_generics_checked_cast_zeros() { } "#; - let monomorphization_error = get_monomorphized!(source, Expect::Error).unwrap_err(); + let monomorphization_error = get_monomorphized(source).unwrap_err(); // Expect a CheckedCast (0 % 0) failure if let MonomorphizationError::UnknownArrayLength { ref length, ref err, location: _ } = @@ -105,7 +101,6 @@ fn arithmetic_generics_checked_cast_zeros() { } } -#[named] #[test] fn arithmetic_generics_checked_cast_indirect_zeros() { let source = r#" @@ -126,7 +121,7 @@ fn arithmetic_generics_checked_cast_indirect_zeros() { } "#; - let monomorphization_error = get_monomorphized!(source, Expect::Error).unwrap_err(); + let monomorphization_error = get_monomorphized(source).unwrap_err(); // Expect a CheckedCast (0 % 0) failure if let MonomorphizationError::UnknownArrayLength { ref length, ref err, location: _ } = @@ -151,7 +146,6 @@ fn arithmetic_generics_checked_cast_indirect_zeros() { } } -#[named] #[test] fn global_numeric_generic_larger_than_u32() { // Regression test for https://github.com/noir-lang/noir/issues/6125 @@ -167,7 +161,6 @@ fn global_numeric_generic_larger_than_u32() { assert_no_errors!(source); } -#[named] #[test] fn global_arithmetic_generic_larger_than_u32() { // Regression test for https://github.com/noir-lang/noir/issues/6126 diff --git a/compiler/noirc_frontend/src/tests/bound_checks.rs b/compiler/noirc_frontend/src/tests/bound_checks.rs index 68fd586529c..6bdf964e89f 100644 --- a/compiler/noirc_frontend/src/tests/bound_checks.rs +++ b/compiler/noirc_frontend/src/tests/bound_checks.rs @@ -1,6 +1,5 @@ use crate::check_errors; -#[named] #[test] fn overflowing_u8() { let src = r#" @@ -12,7 +11,6 @@ fn overflowing_u8() { check_errors!(src); } -#[named] #[test] fn underflowing_u8() { let src = r#" @@ -24,7 +22,6 @@ fn underflowing_u8() { check_errors!(src); } -#[named] #[test] fn overflowing_i8() { let src = r#" @@ -36,7 +33,6 @@ fn overflowing_i8() { check_errors!(src); } -#[named] #[test] fn underflowing_i8() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/enums.rs b/compiler/noirc_frontend/src/tests/enums.rs index 4513eba90ed..0639e5703dd 100644 --- a/compiler/noirc_frontend/src/tests/enums.rs +++ b/compiler/noirc_frontend/src/tests/enums.rs @@ -1,12 +1,11 @@ use crate::elaborator::UnstableFeature; use crate::{ assert_no_errors, get_program_using_features, hir::def_collector::dc_crate::CompilationError, - parser::ParserErrorReason, tests::Expect, + parser::ParserErrorReason, }; use crate::{check_errors, check_errors_using_features}; -#[named] #[test] fn error_with_duplicate_enum_variant() { let src = r#" @@ -23,7 +22,6 @@ fn error_with_duplicate_enum_variant() { check_errors!(src); } -#[named] #[test] fn errors_on_unspecified_unstable_enum() { // Enums are experimental - this will need to be updated when they are stabilized @@ -40,7 +38,6 @@ fn errors_on_unspecified_unstable_enum() { check_errors_using_features!(src, no_features); } -#[named] #[test] fn errors_on_unspecified_unstable_match() { // TODO: update this test. Right now it's hard to test because the span happens in the entire @@ -55,7 +52,7 @@ fn errors_on_unspecified_unstable_match() { "#; let no_features = &[]; - let errors = get_program_using_features!(src, Expect::Success, no_features).2; + let errors = get_program_using_features!(src, no_features).2; assert_eq!(errors.len(), 1); let CompilationError::ParseError(error) = &errors[0] else { @@ -65,7 +62,6 @@ fn errors_on_unspecified_unstable_match() { assert!(matches!(error.reason(), Some(ParserErrorReason::ExperimentalFeature(_)))); } -#[named] #[test] fn errors_on_repeated_match_variables_in_pattern() { let src = r#" @@ -81,7 +77,6 @@ fn errors_on_repeated_match_variables_in_pattern() { check_errors!(src); } -#[named] #[test] fn duplicate_field_in_match_struct_pattern() { let src = r#" @@ -101,7 +96,6 @@ fn duplicate_field_in_match_struct_pattern() { check_errors!(src); } -#[named] #[test] fn missing_field_in_match_struct_pattern() { let src = r#" @@ -121,7 +115,6 @@ fn missing_field_in_match_struct_pattern() { check_errors!(src); } -#[named] #[test] fn no_such_field_in_match_struct_pattern() { let src = r#" @@ -141,7 +134,6 @@ fn no_such_field_in_match_struct_pattern() { check_errors!(src); } -#[named] #[test] fn match_integer_type_mismatch_in_pattern() { let src = r#" @@ -159,7 +151,6 @@ fn match_integer_type_mismatch_in_pattern() { check_errors!(src); } -#[named] #[test] fn match_shadow_global() { let src = r#" @@ -174,7 +165,6 @@ fn match_shadow_global() { assert_no_errors!(src); } -#[named] #[test] fn match_no_shadow_global() { let src = r#" @@ -190,7 +180,6 @@ fn match_no_shadow_global() { check_errors!(src); } -#[named] #[test] fn constructor_arg_arity_mismatch_in_pattern() { let src = r#" @@ -211,7 +200,6 @@ fn constructor_arg_arity_mismatch_in_pattern() { check_errors!(src); } -#[named] #[test] fn unreachable_match_case() { check_errors!( @@ -230,11 +218,10 @@ fn unreachable_match_case() { None, Some(T), } - "#, + "# ); } -#[named] #[test] fn match_reachability_errors_ignored_when_there_is_a_type_error() { // No comment on the second `None` case. @@ -259,11 +246,10 @@ fn match_reachability_errors_ignored_when_there_is_a_type_error() { None, Some(T), } - ", + " ); } -#[named] #[test] fn missing_single_case() { check_errors!( @@ -279,11 +265,10 @@ fn missing_single_case() { None, Some(T), } - ", + " ); } -#[named] #[test] fn missing_many_cases() { check_errors!( @@ -299,11 +284,10 @@ fn missing_many_cases() { enum Abc { A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z } - ", + " ); } -#[named] #[test] fn missing_int_ranges() { check_errors!( @@ -321,11 +305,9 @@ fn missing_int_ranges() { None, Some(T), } - ", - ); + "); } -#[named] #[test] fn missing_int_ranges_with_negatives() { check_errors!( @@ -339,11 +321,10 @@ fn missing_int_ranges_with_negatives() { 3 => (), } } - ", + " ); } -#[named] #[test] fn missing_cases_with_empty_match() { check_errors!( @@ -356,11 +337,10 @@ fn missing_cases_with_empty_match() { enum Abc { A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z } - ", + " ); } -#[named] #[test] fn missing_integer_cases_with_empty_match() { check_errors!( @@ -371,11 +351,10 @@ fn missing_integer_cases_with_empty_match() { ^ Missing cases: `i8` is non-empty ~ Try adding a match-all pattern: `_` } - ", + " ); } -#[named] #[test] fn match_on_empty_enum() { let features = vec![UnstableFeature::Enums]; diff --git a/compiler/noirc_frontend/src/tests/imports.rs b/compiler/noirc_frontend/src/tests/imports.rs index 7e1c78de503..1a4db5e3723 100644 --- a/compiler/noirc_frontend/src/tests/imports.rs +++ b/compiler/noirc_frontend/src/tests/imports.rs @@ -2,7 +2,6 @@ use crate::check_errors; use crate::assert_no_errors; -#[named] #[test] fn use_super() { let src = r#" @@ -21,7 +20,6 @@ fn use_super() { assert_no_errors!(src); } -#[named] #[test] fn no_super() { let src = " @@ -31,7 +29,6 @@ fn no_super() { check_errors!(src); } -#[named] #[test] fn use_super_in_path() { let src = r#" @@ -48,7 +45,6 @@ fn use_super_in_path() { assert_no_errors!(src); } -#[named] #[test] fn can_use_pub_use_item() { let src = r#" @@ -67,7 +63,6 @@ fn can_use_pub_use_item() { assert_no_errors!(src); } -#[named] #[test] fn warns_on_re_export_of_item_with_less_visibility() { let src = r#" @@ -88,7 +83,6 @@ fn warns_on_re_export_of_item_with_less_visibility() { check_errors!(src); } -#[named] #[test] fn errors_if_using_alias_in_import() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/metaprogramming.rs b/compiler/noirc_frontend/src/tests/metaprogramming.rs index e9e49dc1e52..6272d777332 100644 --- a/compiler/noirc_frontend/src/tests/metaprogramming.rs +++ b/compiler/noirc_frontend/src/tests/metaprogramming.rs @@ -12,7 +12,6 @@ use crate::{ use crate::{assert_no_errors, get_program_errors}; // Regression for #5388 -#[named] #[test] fn comptime_let() { let src = r#"fn main() { @@ -22,7 +21,6 @@ fn comptime_let() { assert_no_errors!(src); } -#[named] #[test] fn comptime_code_rejects_dynamic_variable() { let src = r#" @@ -36,7 +34,6 @@ fn comptime_code_rejects_dynamic_variable() { check_errors!(src); } -#[named] #[test] fn comptime_type_in_runtime_code() { let source = " @@ -47,7 +44,6 @@ fn comptime_type_in_runtime_code() { check_errors!(source); } -#[named] #[test] fn macro_result_type_mismatch() { let src = r#" @@ -66,7 +62,6 @@ fn macro_result_type_mismatch() { check_errors!(src); } -#[named] #[test] fn unquoted_integer_as_integer_token() { let src = r#" @@ -95,7 +90,6 @@ fn unquoted_integer_as_integer_token() { assert_no_errors!(src); } -#[named] #[test] fn allows_references_to_structs_generated_by_macros() { let src = r#" @@ -115,7 +109,6 @@ fn allows_references_to_structs_generated_by_macros() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_macros_inject_functions_with_name_collisions() { // This can't be tested using `check_errors` right now because the two secondary @@ -161,7 +154,6 @@ fn errors_if_macros_inject_functions_with_name_collisions() { assert_eq!(first_def.as_str(), "foo"); } -#[named] #[test] fn uses_correct_type_for_attribute_arguments() { let src = r#" @@ -182,7 +174,6 @@ fn uses_correct_type_for_attribute_arguments() { assert_no_errors!(src); } -#[named] #[test] fn does_not_fail_to_parse_macro_on_parser_warning() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/name_shadowing.rs b/compiler/noirc_frontend/src/tests/name_shadowing.rs index 6d2830f339f..c7d3bc3287d 100644 --- a/compiler/noirc_frontend/src/tests/name_shadowing.rs +++ b/compiler/noirc_frontend/src/tests/name_shadowing.rs @@ -411,7 +411,7 @@ fn test_name_shadowing() { for (j, y) in names_to_collapse.iter().enumerate().filter(|(j, _)| i < *j) { if !cases_to_skip.contains(&(i, j)) { let modified_src = src.replace(x, y); - let errors = get_program_errors(&modified_src, &format!("name_shadowing_{i}_{j}")); + let errors = get_program_errors(&modified_src); assert!(!errors.is_empty(), "Expected errors, got: {errors:?}"); } } diff --git a/compiler/noirc_frontend/src/tests/references.rs b/compiler/noirc_frontend/src/tests/references.rs index 8ecaebe67a5..39c39560d1a 100644 --- a/compiler/noirc_frontend/src/tests/references.rs +++ b/compiler/noirc_frontend/src/tests/references.rs @@ -1,6 +1,5 @@ use crate::check_errors; -#[named] #[test] fn cannot_mutate_immutable_variable() { let src = r#" @@ -15,7 +14,6 @@ fn cannot_mutate_immutable_variable() { check_errors!(src); } -#[named] #[test] fn cannot_mutate_immutable_variable_on_member_access() { let src = r#" @@ -36,7 +34,6 @@ fn cannot_mutate_immutable_variable_on_member_access() { check_errors!(src); } -#[named] #[test] fn does_not_crash_when_passing_mutable_undefined_variable() { let src = r#" @@ -53,7 +50,6 @@ fn does_not_crash_when_passing_mutable_undefined_variable() { check_errors!(src); } -#[named] #[test] fn constrained_reference_to_unconstrained() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/traits.rs b/compiler/noirc_frontend/src/tests/traits.rs index c7a7065103a..8d1717c114e 100644 --- a/compiler/noirc_frontend/src/tests/traits.rs +++ b/compiler/noirc_frontend/src/tests/traits.rs @@ -1,9 +1,8 @@ use crate::{ assert_no_errors, check_errors, check_monomorphization_error, elaborator::FrontendOptions, - get_program_with_options, tests::Expect, + get_program_with_options, }; -#[named] #[test] fn trait_inheritance() { let src = r#" @@ -28,7 +27,6 @@ fn trait_inheritance() { assert_no_errors!(src); } -#[named] #[test] fn trait_inheritance_with_generics() { let src = r#" @@ -49,7 +47,6 @@ fn trait_inheritance_with_generics() { assert_no_errors!(src); } -#[named] #[test] fn trait_inheritance_with_generics_2() { let src = r#" @@ -70,7 +67,6 @@ fn trait_inheritance_with_generics_2() { assert_no_errors!(src); } -#[named] #[test] fn trait_inheritance_with_generics_3() { let src = r#" @@ -87,7 +83,6 @@ fn trait_inheritance_with_generics_3() { assert_no_errors!(src); } -#[named] #[test] fn trait_inheritance_with_generics_4() { let src = r#" @@ -104,7 +99,6 @@ fn trait_inheritance_with_generics_4() { assert_no_errors!(src); } -#[named] #[test] fn trait_inheritance_dependency_cycle() { let src = r#" @@ -117,7 +111,6 @@ fn trait_inheritance_dependency_cycle() { check_errors!(src); } -#[named] #[test] fn trait_inheritance_missing_parent_implementation() { let src = r#" @@ -138,7 +131,6 @@ fn trait_inheritance_missing_parent_implementation() { check_errors!(src); } -#[named] #[test] fn errors_on_unknown_type_in_trait_where_clause() { let src = r#" @@ -151,7 +143,6 @@ fn errors_on_unknown_type_in_trait_where_clause() { check_errors!(src); } -#[named] #[test] fn does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type() { let src = r#" @@ -185,7 +176,6 @@ fn does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type() { assert_no_errors!(src); } -#[named] #[test] fn does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable() { let src = r#" @@ -210,7 +200,6 @@ fn does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_impl_trait_constraint_is_not_satisfied() { let src = r#" @@ -244,7 +233,6 @@ fn errors_if_impl_trait_constraint_is_not_satisfied() { check_errors!(src); } -#[named] #[test] // Regression test for https://github.com/noir-lang/noir/issues/6314 // Baz inherits from a single trait: Foo @@ -263,7 +251,6 @@ fn regression_6314_single_inheritance() { assert_no_errors!(src); } -#[named] #[test] // Regression test for https://github.com/noir-lang/noir/issues/6314 // Baz inherits from two traits: Foo and Bar @@ -304,7 +291,6 @@ fn regression_6314_double_inheritance() { assert_no_errors!(src); } -#[named] #[test] fn trait_alias_single_member() { let src = r#" @@ -330,7 +316,6 @@ fn trait_alias_single_member() { assert_no_errors!(src); } -#[named] #[test] fn trait_alias_two_members() { let src = r#" @@ -367,7 +352,6 @@ fn trait_alias_two_members() { assert_no_errors!(src); } -#[named] #[test] fn trait_alias_polymorphic_inheritance() { let src = r#" @@ -407,7 +391,6 @@ fn trait_alias_polymorphic_inheritance() { // TODO(https://github.com/noir-lang/noir/issues/6467): currently failing, so // this just tests that the trait alias has an equivalent error to the expected // desugared version -#[named] #[test] fn trait_alias_with_where_clause_has_equivalent_errors() { let src = r#" @@ -439,7 +422,6 @@ fn trait_alias_with_where_clause_has_equivalent_errors() { // TODO(https://github.com/noir-lang/noir/issues/6467): currently failing, so // this just tests that the trait alias has an equivalent error to the expected // desugared version -#[named] #[test] fn trait_alias_with_where_clause_has_equivalent_errors_2() { let alias_src = r#" @@ -463,7 +445,6 @@ fn trait_alias_with_where_clause_has_equivalent_errors_2() { check_errors!(alias_src); } -#[named] #[test] fn removes_assumed_parent_traits_after_function_ends() { let src = r#" @@ -485,7 +466,6 @@ fn removes_assumed_parent_traits_after_function_ends() { assert_no_errors!(src); } -#[named] #[test] fn trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly() { // Regression test for https://github.com/noir-lang/noir/issues/6420 @@ -537,7 +517,6 @@ fn trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly() { assert_no_errors!(src); } -#[named] #[test] fn does_not_crash_on_as_trait_path_with_empty_path() { let src = r#" @@ -555,7 +534,6 @@ fn does_not_crash_on_as_trait_path_with_empty_path() { assert!(!errors.is_empty()); } -#[named] #[test] fn warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method() { let src = r#" @@ -582,7 +560,6 @@ fn warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_ check_errors!(src); } -#[named] #[test] fn calls_trait_function_if_it_is_in_scope() { let src = r#" @@ -610,7 +587,6 @@ fn calls_trait_function_if_it_is_in_scope() { assert_no_errors!(src); } -#[named] #[test] fn calls_trait_function_if_it_is_only_candidate_in_scope() { let src = r#" @@ -648,7 +624,6 @@ fn calls_trait_function_if_it_is_only_candidate_in_scope() { assert_no_errors!(src); } -#[named] #[test] fn calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super() { let src = r#" @@ -679,7 +654,6 @@ fn calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_ assert_no_errors!(src); } -#[named] #[test] fn errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates() { let src = r#" @@ -717,7 +691,6 @@ fn errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_cand check_errors!(src); } -#[named] #[test] fn errors_if_multiple_trait_methods_are_in_scope_for_function_call() { let src = r#" @@ -758,7 +731,6 @@ fn errors_if_multiple_trait_methods_are_in_scope_for_function_call() { check_errors!(src); } -#[named] #[test] fn warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method() { let src = r#" @@ -787,7 +759,6 @@ fn warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_me check_errors!(src); } -#[named] #[test] fn calls_trait_method_if_it_is_in_scope() { let src = r#" @@ -817,7 +788,6 @@ fn calls_trait_method_if_it_is_in_scope() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates() { let src = r#" @@ -857,7 +827,6 @@ fn errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candid check_errors!(src); } -#[named] #[test] fn errors_if_multiple_trait_methods_are_in_scope_for_method_call() { let src = r#" @@ -900,7 +869,6 @@ fn errors_if_multiple_trait_methods_are_in_scope_for_method_call() { check_errors!(src); } -#[named] #[test] fn calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics() { @@ -933,7 +901,6 @@ fn calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_de assert_no_errors!(src); } -#[named] #[test] fn type_checks_trait_default_method_and_errors() { let src = r#" @@ -952,7 +919,6 @@ fn type_checks_trait_default_method_and_errors() { check_errors!(src); } -#[named] #[test] fn type_checks_trait_default_method_and_does_not_error() { let src = r#" @@ -968,7 +934,6 @@ fn type_checks_trait_default_method_and_does_not_error() { assert_no_errors!(src); } -#[named] #[test] fn type_checks_trait_default_method_and_does_not_error_using_self() { let src = r#" @@ -988,7 +953,6 @@ fn type_checks_trait_default_method_and_does_not_error_using_self() { assert_no_errors!(src); } -#[named] #[test] fn warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method() { let src = r#" @@ -1012,7 +976,6 @@ fn warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_ check_errors!(src); } -#[named] #[test] fn warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method() { let src = r#" @@ -1037,7 +1000,6 @@ fn warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_on check_errors!(src); } -#[named] #[test] fn warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method() { let src = r#" @@ -1062,7 +1024,6 @@ fn warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_on check_errors!(src); } -#[named] #[test] fn error_on_duplicate_impl_with_associated_type() { let src = r#" @@ -1086,7 +1047,6 @@ fn error_on_duplicate_impl_with_associated_type() { check_errors!(src); } -#[named] #[test] fn error_on_duplicate_impl_with_associated_constant() { let src = r#" @@ -1111,7 +1071,6 @@ fn error_on_duplicate_impl_with_associated_constant() { } // See https://github.com/noir-lang/noir/issues/6530 -#[named] #[test] fn regression_6530() { let src = r#" @@ -1155,7 +1114,6 @@ fn regression_6530() { assert_no_errors!(src); } -#[named] #[test] fn calls_trait_method_using_struct_name_when_multiple_impls_exist() { let src = r#" @@ -1181,7 +1139,6 @@ fn calls_trait_method_using_struct_name_when_multiple_impls_exist() { assert_no_errors!(src); } -#[named] #[test] fn as_trait_path_in_expression() { let src = r#" @@ -1215,7 +1172,6 @@ fn as_trait_path_in_expression() { assert_no_errors!(src); } -#[named] #[test] fn allows_renaming_trait_during_import() { // Regression test for https://github.com/noir-lang/noir/issues/7632 @@ -1237,7 +1193,6 @@ fn allows_renaming_trait_during_import() { assert_no_errors!(src); } -#[named] #[test] fn renaming_trait_avoids_name_collisions() { // Regression test for https://github.com/noir-lang/noir/issues/7632 @@ -1261,7 +1216,6 @@ fn renaming_trait_avoids_name_collisions() { assert_no_errors!(src); } -#[named] #[test] fn passes_trait_with_associated_number_to_generic_function() { let src = " @@ -1287,7 +1241,6 @@ fn passes_trait_with_associated_number_to_generic_function() { assert_no_errors!(src); } -#[named] #[test] fn passes_trait_with_associated_number_to_generic_function_inside_struct_impl() { let src = " @@ -1317,7 +1270,6 @@ fn passes_trait_with_associated_number_to_generic_function_inside_struct_impl() assert_no_errors!(src); } -#[named] #[test] fn returns_self_in_trait_method_1() { let src = " @@ -1353,7 +1305,6 @@ fn returns_self_in_trait_method_1() { assert_no_errors!(src); } -#[named] #[test] fn returns_self_in_trait_method_2() { let src = " @@ -1385,7 +1336,6 @@ fn returns_self_in_trait_method_2() { assert_no_errors!(src); } -#[named] #[test] fn returns_self_in_trait_method_3() { let src = " @@ -1413,7 +1363,6 @@ fn returns_self_in_trait_method_3() { assert_no_errors!(src); } -#[named] #[test] fn trait_impl_with_where_clause_with_trait_with_associated_numeric() { let src = " @@ -1438,7 +1387,6 @@ fn trait_impl_with_where_clause_with_trait_with_associated_numeric() { assert_no_errors!(src); } -#[named] #[test] fn trait_impl_with_where_clause_with_trait_with_associated_type() { let src = " @@ -1463,7 +1411,6 @@ fn trait_impl_with_where_clause_with_trait_with_associated_type() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_constrained_trait_definition_has_unconstrained_impl() { let src = r#" @@ -1481,7 +1428,6 @@ fn errors_if_constrained_trait_definition_has_unconstrained_impl() { check_errors!(src); } -#[named] #[test] fn errors_if_unconstrained_trait_definition_has_constrained_impl() { let src = r#" @@ -1499,7 +1445,6 @@ fn errors_if_unconstrained_trait_definition_has_constrained_impl() { check_errors!(src); } -#[named] #[test] fn accesses_associated_type_inside_trait_impl_using_self() { let src = r#" @@ -1524,7 +1469,6 @@ fn accesses_associated_type_inside_trait_impl_using_self() { assert_no_errors!(src); } -#[named] #[test] fn accesses_associated_type_inside_trait_using_self() { let src = r#" @@ -1547,7 +1491,6 @@ fn accesses_associated_type_inside_trait_using_self() { assert_no_errors!(src); } -#[named] #[test] fn serialize_test_with_a_previous_unrelated_definition() { let src = r#" @@ -1587,7 +1530,6 @@ fn serialize_test_with_a_previous_unrelated_definition() { check_monomorphization_error!(&src); } -#[named] #[test] fn errors_on_incorrect_generics_in_type_trait_call() { let src = r#" @@ -1614,7 +1556,6 @@ fn errors_on_incorrect_generics_in_type_trait_call() { check_errors!(src); } -#[named] #[test] fn trait_impl_with_child_constraint() { let src = r#" @@ -1634,7 +1575,6 @@ fn trait_impl_with_child_constraint() { assert_no_errors!(src); } -#[named] #[test] fn trait_with_same_generic_in_different_default_methods() { let src = r#" @@ -1659,7 +1599,6 @@ fn trait_with_same_generic_in_different_default_methods() { assert_no_errors!(src); } -#[named] #[test] fn associated_constant_of_generic_type_used_in_another_associated_constant() { let src = r#" @@ -1694,7 +1633,6 @@ fn associated_constant_of_generic_type_used_in_another_associated_constant() { check_monomorphization_error!(src); } -#[named] #[test] fn associated_constant_of_generic_type_used_in_expression() { let src = r#" @@ -1713,7 +1651,6 @@ fn associated_constant_of_generic_type_used_in_expression() { check_monomorphization_error!(src); } -#[named] #[test] fn as_trait_path_called_multiple_times_for_different_t_1() { let src = r#" @@ -1740,7 +1677,6 @@ fn as_trait_path_called_multiple_times_for_different_t_1() { check_monomorphization_error!(src); } -#[named] #[test] fn as_trait_path_called_multiple_times_for_different_t_2() { let src = r#" @@ -1767,7 +1703,6 @@ fn as_trait_path_called_multiple_times_for_different_t_2() { check_monomorphization_error!(src); } -#[named] #[test] fn short_syntax_for_trait_constraint_on_trait_generic() { let src = r#" @@ -1788,7 +1723,6 @@ fn short_syntax_for_trait_constraint_on_trait_generic() { check_monomorphization_error!(src); } -#[named] #[test] fn ambiguous_associated_type() { let src = r#" @@ -1805,7 +1739,6 @@ fn ambiguous_associated_type() { check_errors!(src); } -#[named] #[test] fn as_trait_path_self_type() { let src = r#" @@ -1826,7 +1759,6 @@ fn as_trait_path_self_type() { assert_no_errors!(src); } -#[named] #[test] fn suggests_importing_trait_via_reexport() { let src = r#" @@ -1852,7 +1784,6 @@ fn suggests_importing_trait_via_reexport() { check_errors!(src); } -#[named] #[test] fn suggests_importing_trait_via_module_reexport() { let src = r#" @@ -1880,7 +1811,6 @@ fn suggests_importing_trait_via_module_reexport() { check_errors!(src); } -#[named] #[test] fn associated_constant_sum_of_other_constants() { let src = r#" @@ -1915,7 +1845,6 @@ fn associated_constant_sum_of_other_constants() { assert_no_errors!(src); } -#[named] #[test] fn regression_9245_small_code() { let src = r#" @@ -1938,7 +1867,6 @@ fn regression_9245_small_code() { assert_no_errors!(src); } -#[named] #[test] fn associated_constant_sum_of_other_constants_2() { let src = r#" @@ -1973,7 +1901,6 @@ fn associated_constant_sum_of_other_constants_2() { assert_no_errors!(src); } -#[named] #[test] fn associated_constant_sum_of_other_constants_3() { let src = r#" @@ -2008,7 +1935,6 @@ fn associated_constant_sum_of_other_constants_3() { assert_no_errors!(src); } -#[named] #[test] fn associated_constant_mul_of_other_constants() { let src = r#" @@ -2043,7 +1969,6 @@ fn associated_constant_mul_of_other_constants() { assert_no_errors!(src); } -#[named] #[test] fn trait_bound_with_associated_constant() { let src = r#" @@ -2067,7 +1992,6 @@ fn trait_bound_with_associated_constant() { assert_no_errors!(src); } -#[named] #[test] fn trait_method_call_when_it_has_bounds_on_generic() { let src = r#" @@ -2089,7 +2013,6 @@ fn trait_method_call_when_it_has_bounds_on_generic() { assert_no_errors!(src); } -#[named] #[test] fn trait_bound_constraining_two_generics() { let src = r#" @@ -2111,7 +2034,6 @@ fn trait_bound_constraining_two_generics() { assert_no_errors!(src); } -#[named] #[test] fn trait_where_clause_associated_type_constraint_expected_order() { let src = r#" @@ -2143,7 +2065,6 @@ fn trait_where_clause_associated_type_constraint_expected_order() { assert_no_errors!(src); } -#[named] #[test] fn trait_where_clause_associated_type_constraint_unexpected_order() { let src = r#" @@ -2175,7 +2096,6 @@ fn trait_where_clause_associated_type_constraint_unexpected_order() { assert_no_errors!(src); } -#[named] #[test] fn trait_method_numeric_generic_on_function() { let src = r#" @@ -2200,7 +2120,6 @@ fn trait_method_numeric_generic_on_function() { check_monomorphization_error!(src); } -#[named] #[test] fn trait_bound_on_implementing_type() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/turbofish.rs b/compiler/noirc_frontend/src/tests/turbofish.rs index b1b650afa26..f8d346bdf43 100644 --- a/compiler/noirc_frontend/src/tests/turbofish.rs +++ b/compiler/noirc_frontend/src/tests/turbofish.rs @@ -2,7 +2,6 @@ use crate::check_errors; use crate::assert_no_errors; -#[named] #[test] fn turbofish_numeric_generic_nested_function_call() { // Check for turbofish numeric generics used with function calls @@ -24,7 +23,6 @@ fn turbofish_numeric_generic_nested_function_call() { assert_no_errors!(src); } -#[named] #[test] fn turbofish_numeric_generic_nested_method_call() { // Check for turbofish numeric generics used with method calls @@ -58,7 +56,6 @@ fn turbofish_numeric_generic_nested_method_call() { assert_no_errors!(src); } -#[named] #[test] fn turbofish_in_constructor_generics_mismatch() { let src = r#" @@ -74,7 +71,6 @@ fn turbofish_in_constructor_generics_mismatch() { check_errors!(src); } -#[named] #[test] fn turbofish_in_constructor() { let src = r#" @@ -91,7 +87,6 @@ fn turbofish_in_constructor() { check_errors!(src); } -#[named] #[test] fn turbofish_in_struct_pattern() { let src = r#" @@ -108,7 +103,6 @@ fn turbofish_in_struct_pattern() { assert_no_errors!(src); } -#[named] #[test] fn turbofish_in_struct_pattern_errors_if_type_mismatch() { // TODO: maybe the error should be on the expression @@ -127,7 +121,6 @@ fn turbofish_in_struct_pattern_errors_if_type_mismatch() { check_errors!(src); } -#[named] #[test] fn turbofish_in_struct_pattern_generic_count_mismatch() { let src = r#" @@ -145,7 +138,6 @@ fn turbofish_in_struct_pattern_generic_count_mismatch() { check_errors!(src); } -#[named] #[test] fn numeric_turbofish() { let src = r#" @@ -164,7 +156,6 @@ fn numeric_turbofish() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_turbofish_after_module() { let src = r#" @@ -180,7 +171,6 @@ fn errors_if_turbofish_after_module() { check_errors!(src); } -#[named] #[test] fn turbofish_in_type_before_call_does_not_error() { let src = r#" @@ -201,7 +191,6 @@ fn turbofish_in_type_before_call_does_not_error() { assert_no_errors!(src); } -#[named] #[test] fn turbofish_in_type_before_call_errors() { let src = r#" @@ -223,7 +212,6 @@ fn turbofish_in_type_before_call_errors() { check_errors!(src); } -#[named] #[test] fn use_generic_type_alias_with_turbofish_in_method_call_does_not_error() { let src = r#" @@ -249,7 +237,6 @@ fn use_generic_type_alias_with_turbofish_in_method_call_does_not_error() { assert_no_errors!(src); } -#[named] #[test] fn use_generic_type_alias_with_turbofish_in_method_call_errors() { let src = r#" @@ -273,7 +260,6 @@ fn use_generic_type_alias_with_turbofish_in_method_call_errors() { check_errors!(src); } -#[named] #[test] fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error() { let src = r#" @@ -297,7 +283,6 @@ fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_do assert_no_errors!(src); } -#[named] #[test] fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type() { let src = r#" @@ -322,7 +307,6 @@ fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_er check_errors!(src); } -#[named] #[test] fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type() { let src = r#" @@ -347,7 +331,6 @@ fn use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_er check_errors!(src); } -#[named] #[test] fn trait_function_with_turbofish_on_trait_gives_error() { let src = r#" @@ -369,7 +352,6 @@ fn trait_function_with_turbofish_on_trait_gives_error() { check_errors!(src); } -#[named] #[test] fn turbofish_named_numeric() { let src = r#" diff --git a/compiler/noirc_frontend/src/tests/unused_items.rs b/compiler/noirc_frontend/src/tests/unused_items.rs index 0dfe02e39cd..07a4939bc4a 100644 --- a/compiler/noirc_frontend/src/tests/unused_items.rs +++ b/compiler/noirc_frontend/src/tests/unused_items.rs @@ -1,6 +1,5 @@ use crate::{assert_no_errors, check_errors}; -#[named] #[test] fn errors_on_unused_private_import() { let src = r#" @@ -28,7 +27,6 @@ fn errors_on_unused_private_import() { check_errors!(src); } -#[named] #[test] fn errors_on_unused_pub_crate_import() { let src = r#" @@ -56,7 +54,6 @@ fn errors_on_unused_pub_crate_import() { check_errors!(src); } -#[named] #[test] fn errors_on_unused_function() { let src = r#" @@ -80,7 +77,6 @@ fn errors_on_unused_function() { check_errors!(src); } -#[named] #[test] fn errors_on_unused_struct() { let src = r#" @@ -96,7 +92,6 @@ fn errors_on_unused_struct() { check_errors!(src); } -#[named] #[test] fn errors_on_unused_trait() { let src = r#" @@ -116,7 +111,6 @@ fn errors_on_unused_trait() { check_errors!(src); } -#[named] #[test] fn silences_unused_variable_warning() { let src = r#" @@ -128,7 +122,6 @@ fn silences_unused_variable_warning() { assert_no_errors!(src); } -#[named] #[test] fn errors_on_unused_type_alias() { let src = r#" @@ -142,7 +135,6 @@ fn errors_on_unused_type_alias() { check_errors!(src); } -#[named] #[test] fn warns_on_unused_global() { let src = r#" @@ -158,7 +150,6 @@ fn warns_on_unused_global() { check_errors!(src); } -#[named] #[test] fn does_not_warn_on_unused_global_if_it_has_an_abi_attribute() { let src = r#" @@ -172,7 +163,6 @@ fn does_not_warn_on_unused_global_if_it_has_an_abi_attribute() { assert_no_errors!(src); } -#[named] #[test] fn does_not_warn_on_unused_struct_if_it_has_an_abi_attribute() { let src = r#" @@ -184,7 +174,6 @@ fn does_not_warn_on_unused_struct_if_it_has_an_abi_attribute() { assert_no_errors!(src); } -#[named] #[test] fn does_not_warn_on_unused_function_if_it_has_an_export_attribute() { let src = r#" @@ -196,7 +185,6 @@ fn does_not_warn_on_unused_function_if_it_has_an_export_attribute() { assert_no_errors!(src); } -#[named] #[test] fn no_warning_on_inner_struct_when_parent_is_used() { let src = r#" @@ -216,7 +204,6 @@ fn no_warning_on_inner_struct_when_parent_is_used() { assert_no_errors!(src); } -#[named] #[test] fn no_warning_on_struct_if_it_has_an_abi_attribute() { let src = r#" @@ -230,7 +217,6 @@ fn no_warning_on_struct_if_it_has_an_abi_attribute() { assert_no_errors!(src); } -#[named] #[test] fn no_warning_on_indirect_struct_if_it_has_an_abi_attribute() { let src = r#" @@ -248,7 +234,6 @@ fn no_warning_on_indirect_struct_if_it_has_an_abi_attribute() { assert_no_errors!(src); } -#[named] #[test] fn no_warning_on_self_in_trait_impl() { let src = r#" @@ -269,7 +254,6 @@ fn no_warning_on_self_in_trait_impl() { assert_no_errors!(src); } -#[named] #[test] fn resolves_trait_where_clause_in_the_correct_module() { // This is a regression test for https://github.com/noir-lang/noir/issues/6479 @@ -290,7 +274,6 @@ fn resolves_trait_where_clause_in_the_correct_module() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_impl_method_is_called() { let src = " @@ -307,7 +290,6 @@ fn considers_struct_as_constructed_if_impl_method_is_called() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_trait_method_is_called() { let src = " @@ -328,7 +310,6 @@ fn considers_struct_as_constructed_if_trait_method_is_called() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_mentioned_in_let_type() { let src = " @@ -345,7 +326,6 @@ fn considers_struct_as_constructed_if_mentioned_in_let_type() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_mentioned_in_return_type() { let src = " @@ -362,7 +342,6 @@ fn considers_struct_as_constructed_if_mentioned_in_return_type() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_passed_in_generic_args_in_constructor() { let src = " @@ -377,7 +356,6 @@ fn considers_struct_as_constructed_if_passed_in_generic_args_in_constructor() { assert_no_errors!(src); } -#[named] #[test] fn considers_struct_as_constructed_if_passed_in_generic_args_in_function_call() { let src = " @@ -392,7 +370,6 @@ fn considers_struct_as_constructed_if_passed_in_generic_args_in_function_call() assert_no_errors!(src); } -#[named] #[test] fn does_not_consider_struct_as_constructed_if_mentioned_in_function_argument() { let src = " @@ -410,7 +387,6 @@ fn does_not_consider_struct_as_constructed_if_mentioned_in_function_argument() { check_errors!(src); } -#[named] #[test] fn allow_dead_code_on_unused_function() { let src = " @@ -423,7 +399,6 @@ fn allow_dead_code_on_unused_function() { assert_no_errors!(src); } -#[named] #[test] fn allow_dead_code_on_unused_struct() { let src = " @@ -436,7 +411,6 @@ fn allow_dead_code_on_unused_struct() { assert_no_errors!(src); } -#[named] #[test] fn allow_dead_code_on_unused_trait() { let src = " @@ -449,7 +423,6 @@ fn allow_dead_code_on_unused_trait() { assert_no_errors!(src); } -#[named] #[test] fn allow_dead_code_on_unused_enum() { let src = " diff --git a/compiler/noirc_frontend/src/tests/visibility.rs b/compiler/noirc_frontend/src/tests/visibility.rs index 6673d16e5c9..af85848cb21 100644 --- a/compiler/noirc_frontend/src/tests/visibility.rs +++ b/compiler/noirc_frontend/src/tests/visibility.rs @@ -1,6 +1,5 @@ use crate::{assert_no_errors, check_errors}; -#[named] #[test] fn errors_once_on_unused_import_that_is_not_accessible() { // Tests that we don't get an "unused import" here given that the import is not accessible @@ -18,7 +17,6 @@ fn errors_once_on_unused_import_that_is_not_accessible() { check_errors!(src); } -#[named] #[test] fn errors_if_type_alias_aliases_more_private_type() { let src = r#" @@ -33,7 +31,6 @@ fn errors_if_type_alias_aliases_more_private_type() { check_errors!(src); } -#[named] #[test] fn errors_if_type_alias_aliases_more_private_type_in_generic() { let src = r#" @@ -50,7 +47,6 @@ fn errors_if_type_alias_aliases_more_private_type_in_generic() { check_errors!(src); } -#[named] #[test] fn errors_if_pub_type_alias_leaks_private_type_in_generic() { let src = r#" @@ -69,7 +65,6 @@ fn errors_if_pub_type_alias_leaks_private_type_in_generic() { check_errors!(src); } -#[named] #[test] fn errors_if_pub_struct_field_leaks_private_type_in_generic() { let src = r#" @@ -88,7 +83,6 @@ fn errors_if_pub_struct_field_leaks_private_type_in_generic() { check_errors!(src); } -#[named] #[test] fn errors_if_pub_function_leaks_private_type_in_return() { let src = r#" @@ -105,7 +99,6 @@ fn errors_if_pub_function_leaks_private_type_in_return() { check_errors!(src); } -#[named] #[test] fn errors_if_pub_function_leaks_private_type_in_arg() { let src = r#" @@ -123,7 +116,6 @@ fn errors_if_pub_function_leaks_private_type_in_arg() { check_errors!(src); } -#[named] #[test] fn does_not_error_if_pub_function_is_on_private_struct() { let src = r#" @@ -145,7 +137,6 @@ fn does_not_error_if_pub_function_is_on_private_struct() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_pub_function_on_pub_struct_returns_private() { let src = r#" @@ -169,7 +160,6 @@ fn errors_if_pub_function_on_pub_struct_returns_private() { check_errors!(src); } -#[named] #[test] fn does_not_error_if_pub_trait_is_defined_on_private_struct() { let src = r#" @@ -195,7 +185,6 @@ fn does_not_error_if_pub_trait_is_defined_on_private_struct() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_pub_trait_returns_private_struct() { let src = r#" @@ -216,7 +205,6 @@ fn errors_if_pub_trait_returns_private_struct() { check_errors!(src); } -#[named] #[test] fn does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility() { let src = r#" @@ -240,7 +228,6 @@ fn does_not_error_if_trait_with_default_visibility_returns_struct_with_default_v assert_no_errors!(src); } -#[named] #[test] fn errors_if_trying_to_access_public_function_inside_private_module() { let src = r#" @@ -258,7 +245,6 @@ fn errors_if_trying_to_access_public_function_inside_private_module() { check_errors!(src); } -#[named] #[test] fn errors_if_calling_private_struct_method() { let src = r#" @@ -283,7 +269,6 @@ fn errors_if_calling_private_struct_method() { check_errors!(src); } -#[named] #[test] fn does_not_warn_if_calling_pub_crate_struct_method_from_same_crate() { let src = r#" @@ -306,7 +291,6 @@ fn does_not_warn_if_calling_pub_crate_struct_method_from_same_crate() { assert_no_errors!(src); } -#[named] #[test] fn does_not_error_if_calling_private_struct_function_from_same_struct() { let src = r#" @@ -329,7 +313,6 @@ fn does_not_error_if_calling_private_struct_function_from_same_struct() { assert_no_errors!(src); } -#[named] #[test] fn does_not_error_if_calling_private_struct_function_from_same_module() { let src = r#" @@ -349,7 +332,6 @@ fn does_not_error_if_calling_private_struct_function_from_same_module() { assert_no_errors!(src); } -#[named] #[test] fn error_when_accessing_private_struct_field() { let src = r#" @@ -370,7 +352,6 @@ fn error_when_accessing_private_struct_field() { check_errors!(src); } -#[named] #[test] fn does_not_error_when_accessing_private_struct_field_from_nested_module() { let src = r#" @@ -391,7 +372,6 @@ fn does_not_error_when_accessing_private_struct_field_from_nested_module() { assert_no_errors!(src); } -#[named] #[test] fn does_not_error_when_accessing_pub_crate_struct_field_from_nested_module() { let src = r#" @@ -412,7 +392,6 @@ fn does_not_error_when_accessing_pub_crate_struct_field_from_nested_module() { assert_no_errors!(src); } -#[named] #[test] fn error_when_using_private_struct_field_in_constructor() { let src = r#" @@ -431,7 +410,6 @@ fn error_when_using_private_struct_field_in_constructor() { check_errors!(src); } -#[named] #[test] fn error_when_using_private_struct_field_in_struct_pattern() { let src = r#" @@ -454,7 +432,6 @@ fn error_when_using_private_struct_field_in_struct_pattern() { check_errors!(src); } -#[named] #[test] fn does_not_error_if_referring_to_top_level_private_module_via_crate() { let src = r#" @@ -471,7 +448,6 @@ fn does_not_error_if_referring_to_top_level_private_module_via_crate() { assert_no_errors!(src); } -#[named] #[test] fn visibility_bug_inside_comptime() { let src = r#" @@ -497,7 +473,6 @@ fn visibility_bug_inside_comptime() { assert_no_errors!(src); } -#[named] #[test] fn errors_if_accessing_private_struct_member_inside_comptime_context() { let src = r#" @@ -527,7 +502,6 @@ fn errors_if_accessing_private_struct_member_inside_comptime_context() { check_errors!(src); } -#[named] #[test] fn errors_if_accessing_private_struct_member_inside_function_generated_at_comptime() { let src = r#" @@ -562,7 +536,6 @@ fn errors_if_accessing_private_struct_member_inside_function_generated_at_compti check_errors!(src); } -#[named] #[test] fn errors_on_use_of_private_exported_item() { let src = r#" @@ -587,7 +560,6 @@ fn errors_on_use_of_private_exported_item() { check_errors!(src); } -#[named] #[test] fn private_impl_method_on_another_module_1() { let src = r#" @@ -610,7 +582,6 @@ fn private_impl_method_on_another_module_1() { assert_no_errors!(src); } -#[named] #[test] fn private_impl_method_on_another_module_2() { let src = r#" diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/Nargo.toml deleted file mode 100644 index 3eb9193c6f3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_monomorphization_tests_bounded_recursive_type_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src/main.nr deleted file mode 100644 index 2896bb1582b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let _tree: Tree>> = Tree::Branch( - Tree::Branch(Tree::Leaf, Tree::Leaf), - Tree::Branch(Tree::Leaf, Tree::Leaf), - ); - } - - enum Tree { - Branch(T, T), - Leaf, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src_hash.txt deleted file mode 100644 index e0dc8f2a8a4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14576281618808178952 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/Nargo.toml b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/Nargo.toml deleted file mode 100644 index 390aa479917..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_monomorphization_tests_mutually_recursive_types_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src/main.nr b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src/main.nr deleted file mode 100644 index 11934e58805..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - fn main() { - let _zero = Even::Zero; - } - - enum Even { - Zero, - Succ(Odd), - } - - enum Odd { - One, - Succ(Even), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src_hash.txt b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src_hash.txt deleted file mode 100644 index bb6c32cc7b7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3489682293631372958 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/Nargo.toml deleted file mode 100644 index 9c84343bb14..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src/main.nr deleted file mode 100644 index 5c254dd268b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - let _tree: Opt> = Opt::Some(OptAlias::None); - } - - type OptAlias = Opt; - - enum Opt { - Some(T), - None, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src_hash.txt deleted file mode 100644 index cc66ab0d7f0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3955322897894262320 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/Nargo.toml deleted file mode 100644 index ad7a5b0c496..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src/main.nr deleted file mode 100644 index 81a9948735e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - type Double: u32 = N * 2; - type Quadruple: u32 = Double>; - fn main() { - let b: [u32; 12] = foo(); - assert(b[0] == 0); - } - fn foo() -> [u32;Quadruple::] { - let n = Double::; // To avoid the unused 'Double' error - let mut a = [0;Quadruple::]; - for i in 0..Quadruple:: { - a[i] = i + n; - } - a - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src_hash.txt deleted file mode 100644 index 8c0d6dc7e55..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9312592120729157351 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/Nargo.toml deleted file mode 100644 index 142668a7b29..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src/main.nr deleted file mode 100644 index 912f800af3c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - type Double: u32 = N * 2; - type Quadruple: u32 = Double::+Double::; - fn main() { - let b: [u32; 12] = foo(); - assert(b[0] == 0); - } - fn foo() -> [u32;Quadruple::] { - let n = Double::; // To avoid the unused 'Double' error - let mut a = [0;Quadruple::]; - for i in 0..Quadruple:: { - a[i] = i + n; - } - a - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src_hash.txt deleted file mode 100644 index 14e6e062b34..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11505745393982003357 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/Nargo.toml deleted file mode 100644 index 1528369ae04..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src/main.nr deleted file mode 100644 index 82bb2f332f8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - type Double: u32 = N * 2; - type Quadruple: u32 = N*(Double::+3); - - fn main() { - let b: [u32; 12] = foo(); - assert(b[0] == 0); - } - fn foo() -> [u32;Quadruple::] { - let n = Double::; // To avoid the unused 'Double' error - let mut a = [0;Quadruple::]; - for i in 0..Quadruple:: { - a[i] = i + n; - } - a - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src_hash.txt deleted file mode 100644 index 8592e4b0737..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2259100302281809625 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/Nargo.toml deleted file mode 100644 index f4fe8074c90..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src/main.nr deleted file mode 100644 index e95c51cc26c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - type Foo: u32 = u32; - - fn main(a: Foo) -> pub Foo { - a - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src_hash.txt deleted file mode 100644 index 4093a978155..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14239910228341176700 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/Nargo.toml deleted file mode 100644 index 8f4fdfa9a89..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src/main.nr deleted file mode 100644 index b64bd17bd14..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - pub type X = X; - - fn main() { - let _: X = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src_hash.txt deleted file mode 100644 index d8eeba51e55..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9419506384696888879 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/Nargo.toml deleted file mode 100644 index 89c6177e1fc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src/main.nr deleted file mode 100644 index 9b4d0eca509..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - type Id = T; - - fn main() { - let _: Id> = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src_hash.txt deleted file mode 100644 index 54e5882d14b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13396690747591022545 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/Nargo.toml deleted file mode 100644 index d0da0495b21..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src/main.nr deleted file mode 100644 index c18d82cc83f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - struct W {} - - fn foo(_x: W) -> W<(N - N) % (N - N)> { - W {} - } - - fn bar(_x: W) -> Field { - N - } - - fn main() { - let w_0: W<0> = W {}; - let w = foo(w_0); - let _ = bar(w); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src_hash.txt deleted file mode 100644 index 0f9451e8b22..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7107065283094189597 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/Nargo.toml deleted file mode 100644 index c2ec1edad07..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src/main.nr deleted file mode 100644 index b602ffe8f4f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - struct W {} - - fn foo(_x: W) -> W<(0 * N) / (N % N)> { - W {} - } - - fn bar(_x: W) -> u1 { - N - } - - fn main() -> pub u1 { - let w_0: W<0> = W {}; - let w: W<_> = foo(w_0); - bar(w) - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src_hash.txt deleted file mode 100644 index 2fa754a7332..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7851817167187605552 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/Nargo.toml deleted file mode 100644 index ed5c7574fdd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_rounding_fail" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src/main.nr deleted file mode 100644 index fa85b211261..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main() { - // Do not simplify N/M*M to just N - // This should be 3/2*2 = 2, not 3 - round::<3, 2>([1, 2, 3]); - } - - fn round(_x: [Field; N / M * M]) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src_hash.txt deleted file mode 100644 index 11fbb55199b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10198920919953685015 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/Nargo.toml deleted file mode 100644 index f47fdbfa017..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src/main.nr deleted file mode 100644 index 0d805f96fa3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct W {} - - fn foo(_x: W, _y: W) -> W { - W {} - } - - fn main() { - let w_2: W<2> = W {}; - let w_3: W<3> = W {}; - // Do not simplify N/M*M to just N - // This should be 3/2*2 = 2, not 3 - let _: W<3> = foo(w_3, w_2); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src_hash.txt deleted file mode 100644 index ad2c14e34f8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6060477922040311055 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/Nargo.toml deleted file mode 100644 index 90f6afc0ac4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_as_trait_path_syntax_no_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src/main.nr deleted file mode 100644 index 08787b72821..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - trait Foo { - type Assoc; - } - - struct Bar {} - - impl Foo for Bar { - type Assoc = i32; - } - - fn main() { - let _: i64 = 1 as >::Assoc; - - let _ = Bar {}; // silence Bar never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src_hash.txt deleted file mode 100644 index e2a7342ccbf..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7226846037780275040 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/Nargo.toml deleted file mode 100644 index 20303075280..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src/main.nr deleted file mode 100644 index ebe39467d08..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Foo { - type Assoc; - } - - struct Bar {} - - impl Foo for Bar { - type Assoc = i32; - } - - fn main() { - // AsTraitPath syntax is a bit silly when associated types - // are explicitly specified - let _: i64 = 1 as >::Assoc; - - let _ = Bar {}; // silence Bar never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src_hash.txt deleted file mode 100644 index 6036a778bf6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5837416959599413277 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/Nargo.toml deleted file mode 100644 index a00352c318a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src/main.nr deleted file mode 100644 index 2abb6d831ed..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - fn main() -> pub u8 { - comptime { - 255 as u8 + 1 as u8 - } - } - - diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src_hash.txt deleted file mode 100644 index 513f1235cd1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13522078675290589745 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/Nargo.toml deleted file mode 100644 index d95e3221724..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src/main.nr deleted file mode 100644 index d7a528fd51a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - fn main() -> pub u8 { - comptime { - 255 as u8 / 0 - } - } - - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src_hash.txt deleted file mode 100644 index 506e1f344d2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13409194042539933503 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/Nargo.toml deleted file mode 100644 index 7204ff4cfe3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_ban_mutable_globals" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src/main.nr deleted file mode 100644 index 11a7bcb3d93..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - mut global FOO: Field = 0; - fn main() { - let _ = FOO; // silence FOO never used warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src_hash.txt deleted file mode 100644 index 882f8138257..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ban_mutable_globals/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7916899670675750541 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/Nargo.toml deleted file mode 100644 index 88fcd724848..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bool_generic_as_loop_bound" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src/main.nr deleted file mode 100644 index 12fe0a4752c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub fn read() { - let mut fields = [0; N]; - for i in 0..N { - fields[i] = i + 1; - } - assert(fields[0] == 1); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src_hash.txt deleted file mode 100644 index 936c7471076..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11013514441700219781 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/Nargo.toml deleted file mode 100644 index 880d19710e5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bool_numeric_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src/main.nr deleted file mode 100644 index d7501143b78..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub fn read() -> Field { - if N { - 0 - } else { - 1 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src_hash.txt deleted file mode 100644 index 30954cbecb1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bool_numeric_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13266227603999059487 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/Nargo.toml deleted file mode 100644 index 5104115641f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bound_checks_overflowing_i8" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src/main.nr deleted file mode 100644 index 22a7f34540d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _: i8 = 128; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src_hash.txt deleted file mode 100644 index 71c987cb0ba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6627711976797255259 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/Nargo.toml deleted file mode 100644 index d9de80fe5a8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bound_checks_overflowing_u8" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src/main.nr deleted file mode 100644 index b13ff8a7052..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _: u8 = 256; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src_hash.txt deleted file mode 100644 index d02999de718..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4110483933878709618 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/Nargo.toml deleted file mode 100644 index 7cbd7c42edb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bound_checks_underflowing_i8" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src/main.nr deleted file mode 100644 index 17b7033f206..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _: i8 = -129; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src_hash.txt deleted file mode 100644 index 89e20746b08..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2388665173691925939 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/Nargo.toml deleted file mode 100644 index c4ced3da38e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bound_checks_underflowing_u8" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src/main.nr deleted file mode 100644 index 8c58344ab58..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _: u8 = -1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src_hash.txt deleted file mode 100644 index b7c6c700286..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -688173042326360649 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/Nargo.toml deleted file mode 100644 index 549ff13b6e8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_break_and_continue_in_constrained_fn" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src/main.nr deleted file mode 100644 index c4895ae318d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - for i in 0 .. 10 { - if i == 2 { - continue; - } - if i == 5 { - break; - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src_hash.txt deleted file mode 100644 index 1fb1fa41fd1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1551703649898461606 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/Nargo.toml deleted file mode 100644 index cd2faa400f9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_break_and_continue_outside_loop" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src/main.nr deleted file mode 100644 index d1a10c18573..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - pub unconstrained fn foo() { - continue; - } - pub unconstrained fn bar() { - break; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src_hash.txt deleted file mode 100644 index 9aeb4f4e6bd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3791504174465283486 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/Nargo.toml deleted file mode 100644 index 614e97c7967..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_assign_to_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src/main.nr deleted file mode 100644 index 6d65646e1ed..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - mod foo {} - - fn main() { - foo = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src_hash.txt deleted file mode 100644 index 061a6630592..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17735523665232120734 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/Nargo.toml deleted file mode 100644 index 04ca8db9d6a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_assign_to_nested_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src/main.nr deleted file mode 100644 index bd52786bce1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - mod foo { - pub struct bar {} - } - - fn main() { - foo::bar = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src_hash.txt deleted file mode 100644 index 9b11b3d9a6b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9100784775671389985 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/Nargo.toml deleted file mode 100644 index df0b2663e42..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src/main.nr deleted file mode 100644 index 7b9648fc8c2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - fn main() { - let _func = if true { foo } else { bar }; - } - - fn foo() {} - unconstrained fn bar() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src_hash.txt deleted file mode 100644 index 8637ea7e44d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5013019659425022242 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/Nargo.toml deleted file mode 100644 index 2a11922ede0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src/main.nr deleted file mode 100644 index 90899259931..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let func = foo; - func(); - inner(func); - } - - fn inner(x: unconstrained fn() -> ()) { - x(); - } - - unconstrained fn foo() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src_hash.txt deleted file mode 100644 index cb45f1fd226..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1368822950437249517 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/Nargo.toml deleted file mode 100644 index 354da6dcfa2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src/main.nr deleted file mode 100644 index bf238d6d5fc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - foo(); - } - - unconstrained fn foo() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src_hash.txt deleted file mode 100644 index 1275fc9e243..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11573653782500082605 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/Nargo.toml deleted file mode 100644 index f4310869ced..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_array_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src/main.nr deleted file mode 100644 index def4d0c5875..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _ = []; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src_hash.txt deleted file mode 100644 index ae3d44198e3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_array_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2106807571799906179 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/Nargo.toml deleted file mode 100644 index 9ee80d504ec..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_slice_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src/main.nr deleted file mode 100644 index c633e85008b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - let _ = &[]; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src_hash.txt deleted file mode 100644 index 6ec671badcb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4321272040692519803 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/Nargo.toml deleted file mode 100644 index ffc92c9794a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src/main.nr deleted file mode 100644 index 80bdf801aaa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - enum Foo { - Bar, - } - - fn main() - { - let _ = Foo::Bar; - } - - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src_hash.txt deleted file mode 100644 index de0173c759e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17764197622749245485 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/Nargo.toml deleted file mode 100644 index 3c9843ab937..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src/main.nr deleted file mode 100644 index 5dcb07e4eb5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn foo() {} - - fn main() - { - foo(); - } - - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src_hash.txt deleted file mode 100644 index 6d742034371..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18413755304929648438 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/Nargo.toml deleted file mode 100644 index a452317cf2b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src/main.nr deleted file mode 100644 index 498659fa9b0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub struct Foo {} - - impl Foo { - fn one() {} - } - - fn main() { - Foo::one(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src_hash.txt deleted file mode 100644 index a8b5314fe55..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -127637158036360596 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/Nargo.toml deleted file mode 100644 index 9d863231e98..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src/main.nr deleted file mode 100644 index d73d2f2ec95..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - struct Foo { - array: [Field; N], - } - - impl Foo { - fn new() -> Self { - Self { array: [0; N] } - } - } - - fn foo() -> Foo { - Foo::new() - } - - fn main() { - let _ = foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src_hash.txt deleted file mode 100644 index accede56629..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7627233576545093977 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/Nargo.toml deleted file mode 100644 index ae76414c32b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src/main.nr deleted file mode 100644 index 5dcb07e4eb5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn foo() {} - - fn main() - { - foo(); - } - - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src_hash.txt deleted file mode 100644 index 6d742034371..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18413755304929648438 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/Nargo.toml deleted file mode 100644 index e2004871cbf..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src/main.nr deleted file mode 100644 index 03a6999b5be..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Foo {} - - fn main() - { - let _ = Foo {}; - } - - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src_hash.txt deleted file mode 100644 index a14857d991f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2308161220480564741 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/Nargo.toml deleted file mode 100644 index d21d1449c93..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src/main.nr deleted file mode 100644 index 22fcc51ae25..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - let func = foo; - expect_regular(func); - } - - unconstrained fn foo() {} - - fn expect_regular(_func: fn() -> ()) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src_hash.txt deleted file mode 100644 index cca5bedae2a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -877069992783235171 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/Nargo.toml deleted file mode 100644 index 14da2a0c030..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src/main.nr deleted file mode 100644 index 39d58ff0d31..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - fn main() { - let func = foo; - expect_regular(func); - } - - unconstrained fn foo() {} - - fn expect_regular(_func: fn() -> ()) { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src_hash.txt deleted file mode 100644 index 7055b01a3e7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13097054476693988902 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/Nargo.toml deleted file mode 100644 index 16bd8f99cf2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cannot_use_prefix_minus_on_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src/main.nr deleted file mode 100644 index 767cbf07220..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main() { - let x: u32 = 1; - let _ = -x; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src_hash.txt deleted file mode 100644 index 64c0554aa41..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10865989912812931159 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/Nargo.toml deleted file mode 100644 index 52b3166d054..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cast_signed_i32_to_field_must_error_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src/main.nr deleted file mode 100644 index fc38f723b4f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main(x: i32) { - assert(x as Field != 0); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src_hash.txt deleted file mode 100644 index 7241d1d57cf..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -808821915073472277 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/Nargo.toml deleted file mode 100644 index 096071c5201..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cast_signed_i8_to_field_must_error_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src/main.nr deleted file mode 100644 index e5b9715964e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - assert((-1 as i8) as Field != 0); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src_hash.txt deleted file mode 100644 index 9fd5c3fe43e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11745274124228274270 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/Nargo.toml deleted file mode 100644 index 4034f24bfbb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_impl_duplicate_method_without_self" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src/main.nr deleted file mode 100644 index 686814ce150..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub struct Foo {} - - impl Foo { - fn foo() {} - fn foo() {} - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src_hash.txt deleted file mode 100644 index 24122d007f5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3068353513110886525 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/Nargo.toml deleted file mode 100644 index adea5bd1585..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_impl_struct_not_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src/main.nr deleted file mode 100644 index 63f58daca6d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - struct Foo { - bar: Field, - array: [Field; 2], - } - - struct Default2 { - x: Field, - z: Field, - } - - impl Default2 for Foo { - fn default(x: Field, y: Field) -> Self { - Self { bar: x, array: [x,y] } - } - } - - fn main() { - let _ = Default2 { x: 1, z: 1 }; // silence Default2 never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src_hash.txt deleted file mode 100644 index ee3f92943e6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4788621171978462173 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/Nargo.toml deleted file mode 100644 index 72b14da897c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_duplicate_declaration" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src/main.nr deleted file mode 100644 index c4223743054..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src/main.nr +++ /dev/null @@ -1,23 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field,y: Field) -> Self { - Self { bar: x, array: [x,y] } - } - } - - trait Default2 { - fn default(x: Field) -> Self; - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src_hash.txt deleted file mode 100644 index f6b0a38bf94..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15904795626386982820 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/Nargo.toml deleted file mode 100644 index b44583b563e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_duplicate_implementation" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src/main.nr deleted file mode 100644 index 4a2d7f5be34..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Default2 { - } - struct Foo { - bar: Field, - } - - impl Default2 for Foo { - } - impl Default2 for Foo { - } - fn main() { - let _ = Foo { bar: 1 }; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src_hash.txt deleted file mode 100644 index f7a5ce601b1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16231079987046764507 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/Nargo.toml deleted file mode 100644 index c6d8aef4a7e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_duplicate_implementation_with_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src/main.nr deleted file mode 100644 index 6b22c9b0cef..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Default2 { - } - - struct MyStruct { - } - - type MyType = MyStruct; - - impl Default2 for MyStruct { - } - - impl Default2 for MyType { - } - - fn main() { - let _ = MyStruct {}; // silence MyStruct never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src_hash.txt deleted file mode 100644 index a4bf8d11504..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13687429507094701347 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/Nargo.toml deleted file mode 100644 index 841c13ebf10..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_impl_for_non_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src/main.nr deleted file mode 100644 index 111aeea30c1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Field; - } - - impl Default2 for main { - fn default(x: Field, y: Field) -> Field { - x + y - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src_hash.txt deleted file mode 100644 index edbe453df0d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17838155263113435768 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/Nargo.toml deleted file mode 100644 index b36d33628b2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_implementation_duplicate_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src/main.nr deleted file mode 100644 index cdfdc03eb99..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src/main.nr +++ /dev/null @@ -1,24 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Field; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - // Duplicate trait methods should not compile - fn default(x: Field, y: Field) -> Field { - y + 2 * x - } - // Duplicate trait methods should not compile - fn default(x: Field, y: Field) -> Field { - x + 2 * y - } - } - - fn main() { - let _ = Foo { bar: 1, array: [2, 3] }; // silence Foo never constructed warning - } \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src_hash.txt deleted file mode 100644 index b5373086511..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1618993871036959247 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/Nargo.toml deleted file mode 100644 index 7da618eb3bd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_missing_implementation" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src/main.nr deleted file mode 100644 index 254ba89e192..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - - fn method2(x: Field) -> Field; - - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field, y: Field) -> Self { - Self { bar: x, array: [x,y] } - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src_hash.txt deleted file mode 100644 index 95d0347a35b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14627753583443918183 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/Nargo.toml deleted file mode 100644 index 1c0dd236c61..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_not_in_scope" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src/main.nr deleted file mode 100644 index 3908c695d61..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field, y: Field) -> Self { - Self { bar: x, array: [x,y] } - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src_hash.txt deleted file mode 100644 index 75f2f2d760a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11295338554677059075 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/Nargo.toml deleted file mode 100644 index a85b66508c9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_method_name" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src/main.nr deleted file mode 100644 index ba02a0c6e61..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - trait Default2 { - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn does_not_exist(x: Field, y: Field) -> Self { - Self { bar: x, array: [x,y] } - } - } - - fn main() { - let _ = Foo { bar: 1, array: [2, 3] }; // silence Foo never constructed warning - } \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src_hash.txt deleted file mode 100644 index 6dbdc2100f7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3136928121998021347 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/Nargo.toml deleted file mode 100644 index 377692ae190..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_method_return_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src/main.nr deleted file mode 100644 index 49901f886a0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - trait Default2 { - fn default() -> Self; - } - - struct Foo { - } - - impl Default2 for Foo { - fn default() -> Field { - 0 - } - } - - fn main() { - let _ = Foo {}; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src_hash.txt deleted file mode 100644 index 97082d505ae..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -266540714043275597 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/Nargo.toml deleted file mode 100644 index 7f61762b84f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_method_return_type2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src/main.nr deleted file mode 100644 index 2b38680ee5e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field, _y: Field) -> Field { - x - } - } - - fn main() { - let _ = Foo { bar: 1, array: [2, 3] }; // silence Foo never constructed warning - } \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src_hash.txt deleted file mode 100644 index acb5bd5c80f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16149913162461699090 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/Nargo.toml deleted file mode 100644 index aa870b5516e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_method_return_type3" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src/main.nr deleted file mode 100644 index 03c840e08fe..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(_x: Field, _y: Field) { - } - } - - fn main() { - let _ = Foo { bar: 1, array: [2, 3] }; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src_hash.txt deleted file mode 100644 index c0194eeb1f0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5014005832671691702 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/Nargo.toml deleted file mode 100644 index 476e560f1fa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_parameter" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src/main.nr deleted file mode 100644 index ee7d679c6a3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - trait Default2 { - fn default(x: Field) -> Self; - } - - struct Foo { - bar: u32, - } - - impl Default2 for Foo { - fn default(x: u32) -> Self { - Foo {bar: x} - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src_hash.txt deleted file mode 100644 index ed202ecf35f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16485731199497446049 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/Nargo.toml deleted file mode 100644 index d817cff0814..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_parameter2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src/main.nr deleted file mode 100644 index 515daeeb8fa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field, y: Foo) -> Self { - Self { bar: x, array: [x, y.bar] } - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src_hash.txt deleted file mode 100644 index 331d1d27077..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9816240377330629104 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/Nargo.toml deleted file mode 100644 index 905e4015244..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_parameter_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src/main.nr deleted file mode 100644 index eb934686eb8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub trait Default2 { - fn default(x: Field, y: NotAType) -> Field; - } - - fn main(x: Field, y: Field) { - assert(y == x); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src_hash.txt deleted file mode 100644 index e5044ac500e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2502384413416828153 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/Nargo.toml deleted file mode 100644 index a1e0e194240..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_wrong_parameters_count" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src/main.nr deleted file mode 100644 index 0ac9c3c55d3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Default2 { - fn default(x: Field, y: Field) -> Self; - } - - struct Foo { - bar: Field, - array: [Field; 2], - } - - impl Default2 for Foo { - fn default(x: Field) -> Self { - Self { bar: x, array: [x, x] } - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src_hash.txt deleted file mode 100644 index 944c13fb79c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4488016810418731930 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/Nargo.toml deleted file mode 100644 index f2324491f69..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_abi_attribute_outside_of_contract" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src/main.nr deleted file mode 100644 index 9bae055408a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - - #[abi(foo)] - global foo: Field = 1; - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src_hash.txt deleted file mode 100644 index 7e80b21bc3a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -619298329797893628 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/Nargo.toml deleted file mode 100644 index 51e468c535d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src/main.nr deleted file mode 100644 index a78a11ef936..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - struct Foo { - value: Field, - } - - impl Foo { - fn mutate(&mut self) { - self.value = 2; - } - } - - fn main() { - let foo = Foo { value: 1 }; - let f = || foo.mutate(); - f(); - assert(foo.value == 2); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src_hash.txt deleted file mode 100644 index 8a947e116a0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16280995085275610225 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/Nargo.toml deleted file mode 100644 index 86993b885ad..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src/main.nr deleted file mode 100644 index 439910749e6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - let mut x = 3; - let f = || mutate(&mut x); - f(); - assert(x == 3); - } - - fn mutate(x: &mut Field) { - *x = 5; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src_hash.txt deleted file mode 100644 index 6b731323287..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -884026163848163335 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/Nargo.toml deleted file mode 100644 index 4f47637cd8d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src/main.nr deleted file mode 100644 index c024a980072..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - fn main() { - let mut x = 3; - let f = || { - let inner = || mutate(&mut x); - inner(); - }; - f(); - assert(x == 3); - } - - fn mutate(x: &mut Field) { - *x = 5; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src_hash.txt deleted file mode 100644 index 46b3af6e086..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17828515749291644453 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/Nargo.toml deleted file mode 100644 index 6ba7dc2d740..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src/main.nr deleted file mode 100644 index fc4d6e1bc93..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - struct Foo { - value: Field, - } - - impl Foo { - fn mutate(&mut self) { - self.value = 2; - } - } - - fn main() { - let mut foo = Foo { value: 1 }; - let f = || foo.mutate(); - f(); - assert(foo.value == 2); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src_hash.txt deleted file mode 100644 index fe6875ea4aa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9246039281989826422 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/Nargo.toml deleted file mode 100644 index cd2a6a15243..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src/main.nr deleted file mode 100644 index f9231633b10..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - let mut x = 3; - let f = || { - x += 2; - }; - f(); - assert(x == 5); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src_hash.txt deleted file mode 100644 index 9babeb05808..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5046447181168457692 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/Nargo.toml deleted file mode 100644 index 88b599e7113..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src/main.nr deleted file mode 100644 index 003d1d1df9a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let mut x = 3; - let f = || { - let inner = || { - x += 2; - }; - inner(); - }; - f(); - assert(x == 5); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src_hash.txt deleted file mode 100644 index e8d855490bf..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4750812361725682810 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/Nargo.toml deleted file mode 100644 index 5c0600144fd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_cyclic_globals" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src/main.nr deleted file mode 100644 index 989f70a920d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - global A: u32 = B; - global B: u32 = A; - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src_hash.txt deleted file mode 100644 index 182d67e5a01..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_globals/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15497112877972207231 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/Nargo.toml deleted file mode 100644 index 01783503f3a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_cyclic_type_aliases" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src/main.nr deleted file mode 100644 index b9909486b81..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - type A = B; - type B = A; - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src_hash.txt deleted file mode 100644 index da84c9b2c2f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6384184749894466571 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/Nargo.toml deleted file mode 100644 index 86ccbf6237d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_fold_attribute_on_unconstrained" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src/main.nr deleted file mode 100644 index 9a37e172519..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - #[fold] - unconstrained pub fn foo(x: Field, y: Field) { - assert(x != y); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src_hash.txt deleted file mode 100644 index 243fc73c42b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -946022204169937366 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/Nargo.toml deleted file mode 100644 index 14258441b2c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_inline_attribute_on_unconstrained" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src/main.nr deleted file mode 100644 index 9ecb16ebdec..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - #[no_predicates] - unconstrained pub fn foo(x: Field, y: Field) { - assert(x != y); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src_hash.txt deleted file mode 100644 index 2d7ed4c0193..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10546568868135715921 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/Nargo.toml deleted file mode 100644 index f1959a67a76..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src/main.nr deleted file mode 100644 index ca62de7d1da..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - #[oracle(foo)] - pub fn foo(x: Field, y: Field) { - assert(x != y); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src_hash.txt deleted file mode 100644 index 5c6acabe625..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9365656274238483297 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/Nargo.toml deleted file mode 100644 index c79f6ff739e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_disallows_export_attribute_on_impl_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src/main.nr deleted file mode 100644 index 1bc36f4fa76..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub struct Foo { } - - impl Foo { - #[export] - fn foo() { } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src_hash.txt deleted file mode 100644 index c2a1f4209fc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7396823058166074426 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/Nargo.toml deleted file mode 100644 index c2d9b032436..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src/main.nr deleted file mode 100644 index cca801babc5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - pub trait Trait { - fn foo() { } - } - - pub struct Foo { } - - impl Trait for Foo { - #[export] - fn foo() { } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src_hash.txt deleted file mode 100644 index 77eb7092e44..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9978522564554661770 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/Nargo.toml deleted file mode 100644 index 3b13f6e31c9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_disallows_test_attribute_on_impl_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src/main.nr deleted file mode 100644 index dd535513bff..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub struct Foo { } - - impl Foo { - #[named] -#[test] - fn foo() { } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src_hash.txt deleted file mode 100644 index bbe51e79cf3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9770690773820454748 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/Nargo.toml deleted file mode 100644 index fa1e41436e4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src/main.nr deleted file mode 100644 index 130ad33329e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - pub trait Trait { - fn foo() { } - } - - pub struct Foo { } - - impl Trait for Foo { - #[test] - fn foo() { } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src_hash.txt deleted file mode 100644 index 5f8d7d5d274..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9256808368182217732 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/Nargo.toml deleted file mode 100644 index 8389fe1df9c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_disallows_underscore_on_right_hand_side" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src/main.nr deleted file mode 100644 index 424476d4200..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main() { - let _ = 1; - let _x = _; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src_hash.txt deleted file mode 100644 index d82d10b71ff..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15354567787850974700 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/Nargo.toml deleted file mode 100644 index e80a8d24789..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src/main.nr deleted file mode 100644 index 4e5fbebef64..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - global ARRAY_LEN = 3; - global STR_LEN: _ = 2; - global FMT_STR_LEN = 2; - - fn main() { - let _a: [u32; ARRAY_LEN] = [1, 2, 3]; - let _b: str = "hi"; - let _c: fmtstr = f"hi"; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src_hash.txt deleted file mode 100644 index 3a7a91197c1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1688956643580454669 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/Nargo.toml deleted file mode 100644 index 5ac323cd439..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_do_not_infer_partial_global_types" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src/main.nr deleted file mode 100644 index 5723c26802a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - pub global ARRAY: [Field; _] = [0; 3]; - pub global NESTED_ARRAY: [[Field; _]; 3] = [[]; 3]; - pub global STR: str<_> = "hi"; - - pub global NESTED_STR: [str<_>] = &["hi"]; - pub global FORMATTED_VALUE: str<5> = "there"; - pub global FMT_STR: fmtstr<_, _> = f"hi {FORMATTED_VALUE}"; - pub global TUPLE_WITH_MULTIPLE: ([str<_>], [[Field; _]; 3]) = - (&["hi"], [[]; 3]); - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src_hash.txt deleted file mode 100644 index d8d0a4e9435..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15365215632713197015 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/Nargo.toml deleted file mode 100644 index 9d28ccd06b8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_duplicate_struct_field" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src/main.nr deleted file mode 100644 index a78d462e2d5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - pub struct Foo { - x: i32, - x: i32, - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src_hash.txt deleted file mode 100644 index f0bf56199bd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_duplicate_struct_field/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15870087683980640332 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/Nargo.toml deleted file mode 100644 index 550eef22d56..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_ensure_nested_type_aliases_type_check" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src/main.nr deleted file mode 100644 index d997a2b8c9f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - type A = B; - type B = u8; - fn main() { - let _a: A = 0u16; - } - diff --git a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src_hash.txt deleted file mode 100644 index 3051245d378..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2689859331324516119 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/Nargo.toml deleted file mode 100644 index 7bbc6f3a64a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src/main.nr deleted file mode 100644 index bd19a425f3b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - match Foo::One(1) { - Foo::One(_, _) => (), - Foo::Two(_) => (), - } - } - - enum Foo { - One(i32), - Two(i32, i32), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src_hash.txt deleted file mode 100644 index 8829cbf92b1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12447938316761256051 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/Nargo.toml deleted file mode 100644 index 96d0a329171..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src/main.nr deleted file mode 100644 index a152e3c0577..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let foo = Foo { x: 10, y: 20 }; - match foo { - Foo { x: _, x: _, y: _ } => {} - } - } - - struct Foo { - x: i32, - y: Field, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src_hash.txt deleted file mode 100644 index da902ff3350..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15069705151773245494 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/Nargo.toml deleted file mode 100644 index 46207c4f396..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_error_with_duplicate_enum_variant" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src/main.nr deleted file mode 100644 index 5a5f0fb4472..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - pub enum Foo { - Bar(i32), - Bar(u8), - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src_hash.txt deleted file mode 100644 index 292cd1af2a4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8963215312482461965 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/Nargo.toml deleted file mode 100644 index 1bc3bfe894d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src/main.nr deleted file mode 100644 index ee920e31615..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - match (1, 2) { - (_x, _x) => (), - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src_hash.txt deleted file mode 100644 index a3dc2ac797d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5028939386835713311 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/Nargo.toml deleted file mode 100644 index 2cd54114722..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src/main.nr deleted file mode 100644 index 0dbfd40f909..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - fn main() { - match 2 { - Foo::One(_) => (), - } - } - - enum Foo { - One(i32), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src_hash.txt deleted file mode 100644 index 3a137754a68..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4233497258783555667 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/Nargo.toml deleted file mode 100644 index 028c3e0a4fb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_match_no_shadow_global" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src/main.nr deleted file mode 100644 index 983df65df22..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main() { - match 2 { - crate::foo => (), - } - } - - fn foo() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src_hash.txt deleted file mode 100644 index c1bcab81c4e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8197714838391506428 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/Nargo.toml deleted file mode 100644 index 2c8418b0af1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src/main.nr deleted file mode 100644 index eb4531ccd32..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - fn main() { - match Opt::Some(3) { - Opt::None => (), - Opt::Some(_) => {}, - Opt::None => (), - 3 => (), - } - } - - enum Opt { - None, - Some(T), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src_hash.txt deleted file mode 100644 index 442a757c86d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -485999045244371531 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/Nargo.toml deleted file mode 100644 index 725808d5d0d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_cases_with_empty_match" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src/main.nr deleted file mode 100644 index 309f207cfc2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main() { - match Abc::A {} - } - - enum Abc { - A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src_hash.txt deleted file mode 100644 index f290e6cf731..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9972190720552114817 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/Nargo.toml deleted file mode 100644 index 2f24b30965e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_field_in_match_struct_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src/main.nr deleted file mode 100644 index 2c12dfbc7de..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let foo = Foo { x: 10, y: 20 }; - match foo { - Foo { x: _ } => {} - } - } - - struct Foo { - x: i32, - y: Field, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src_hash.txt deleted file mode 100644 index 6a3ba68a9bd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10912628529732065454 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/Nargo.toml deleted file mode 100644 index 100c5121781..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_int_ranges" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src/main.nr deleted file mode 100644 index 630aa696c9e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - fn main() { - let x: i8 = 3; - match Opt::Some(x) { - Opt::Some(4) => (), - Opt::Some(6) => (), - } - } - - enum Opt { - None, - Some(T), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src_hash.txt deleted file mode 100644 index fe658caa268..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17116808291427896735 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/Nargo.toml deleted file mode 100644 index b898f89791a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_int_ranges_with_negatives" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src/main.nr deleted file mode 100644 index bb01541166d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - let x: i32 = -4; - match x { - -5 => (), - 0 => (), - 3 => (), - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src_hash.txt deleted file mode 100644 index 8a29b7bfc26..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6303584181625073876 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/Nargo.toml deleted file mode 100644 index 5f8ce43c970..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_integer_cases_with_empty_match" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src/main.nr deleted file mode 100644 index 1ccec3f2c3f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main() { - let x: i8 = 3; - match x {} - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src_hash.txt deleted file mode 100644 index 9de2afcfcc9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7700112283308208541 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/Nargo.toml deleted file mode 100644 index ee80f1e3c63..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_many_cases" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src/main.nr deleted file mode 100644 index 058dfdbf7fb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - match Abc::A { - Abc::A => (), - Abc::B => (), - } - } - - enum Abc { - A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src_hash.txt deleted file mode 100644 index ca38318e4f4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_many_cases/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6027509558896233409 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/Nargo.toml deleted file mode 100644 index 68f4f168038..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_missing_single_case" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src/main.nr deleted file mode 100644 index 83c2165a10a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - match Opt::Some(3) { - Opt::None => (), - } - } - - enum Opt { - None, - Some(T), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src_hash.txt deleted file mode 100644 index f88016aeb3e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_missing_single_case/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1895295292057608419 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/Nargo.toml deleted file mode 100644 index fbebbfa9c6b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src/main.nr deleted file mode 100644 index ff4fead9e2e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - let foo = Foo { x: 10, y: 20 }; - match foo { - Foo { x: _, y: _, z: _ } => {} - } - } - - struct Foo { - x: i32, - y: Field, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src_hash.txt deleted file mode 100644 index f03f85ed4d4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5690042993439072644 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/Nargo.toml deleted file mode 100644 index 6000c22fdda..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_unreachable_match_case" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src/main.nr deleted file mode 100644 index 15c74da4a4d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - fn main() { - match Opt::Some(Opt::Some(3)) { - Opt::Some(_) => (), - Opt::None => (), - Opt::Some(Opt::Some(_)) => (), - } - } - - enum Opt { - None, - Some(T), - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src_hash.txt deleted file mode 100644 index f4d80f8da13..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11228524439675620134 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/Nargo.toml deleted file mode 100644 index 5e58a74057f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_error_if_attribute_not_in_scope" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src/main.nr deleted file mode 100644 index dee221d5643..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src/main.nr +++ /dev/null @@ -1,4 +0,0 @@ - - #[not_in_scope] - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src_hash.txt deleted file mode 100644 index 4f100378bea..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -370655018097712853 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/Nargo.toml deleted file mode 100644 index a6762f30299..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_error_on_cast_over_type_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src/main.nr deleted file mode 100644 index 0092891e4e2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub fn foo(f: fn(T) -> U, x: T, ) -> U { - f(x) - } - - fn main() { - let x = "a"; - let _: Field = foo(|x| x as Field, x); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src_hash.txt deleted file mode 100644 index ac09821f565..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17452766614694242692 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/Nargo.toml deleted file mode 100644 index 1fdd6a92be4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_if_for_body_type_is_not_unit" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src/main.nr deleted file mode 100644 index 40d3f8e248f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - for _ in 0..1 { - 1 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src_hash.txt deleted file mode 100644 index afe8592e930..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15425436559717852085 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/Nargo.toml deleted file mode 100644 index 9cb50302e54..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_if_loop_body_type_is_not_unit" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src/main.nr deleted file mode 100644 index 50c217a59a8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - unconstrained fn main() { - loop { - if false { break; } - - 1 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src_hash.txt deleted file mode 100644 index 9edfe587df9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12255967097836883681 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/Nargo.toml deleted file mode 100644 index 69d65bdedcc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_if_while_body_type_is_not_unit" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src/main.nr deleted file mode 100644 index d4c6aa3ffb1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - unconstrained fn main() { - while 1 == 1 { - 1 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src_hash.txt deleted file mode 100644 index f1ceebd5c32..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10786399293388165226 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/Nargo.toml deleted file mode 100644 index f0706a3b5c1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_on_cyclic_globals" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src/main.nr deleted file mode 100644 index b848527de19..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - pub comptime global A: u32 = B; - pub comptime global B: u32 = A; - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src_hash.txt deleted file mode 100644 index 5c9da8e5589..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12986352562140979283 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/Nargo.toml deleted file mode 100644 index db4b4108389..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_on_empty_loop_no_break" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src/main.nr deleted file mode 100644 index 798c082e42b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - // Safety: test - unsafe { - foo() - } - } - - unconstrained fn foo() { - loop {} - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src_hash.txt deleted file mode 100644 index 327faadd97f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1887445942975019873 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/Nargo.toml deleted file mode 100644 index 46f280d2722..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_on_if_without_else_type_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src/main.nr deleted file mode 100644 index 4c4a6086881..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - if true { - 1 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src_hash.txt deleted file mode 100644 index f1481ce51e2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7714439217034337878 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/Nargo.toml deleted file mode 100644 index 6c54200d98a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_on_loop_without_break" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src/main.nr deleted file mode 100644 index 1c34779195a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - fn main() { - // Safety: test - unsafe { - foo() - } - } - - unconstrained fn foo() { - let mut x = 1; - loop { - x += 1; - bar(x); - } - } - - fn bar(_: Field) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src_hash.txt deleted file mode 100644 index 5bb0195f0d1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -72763761456187254 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/Nargo.toml deleted file mode 100644 index 1c87bffa569..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src/main.nr deleted file mode 100644 index af221629e12..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - fn main() { - // Safety: test - unsafe { - foo() - } - } - - unconstrained fn foo() { - let mut x = 1; - loop { - x += 1; - bar(x); - loop { - x += 2; - break; - } - } - } - - fn bar(_: Field) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src_hash.txt deleted file mode 100644 index 191fa5d4fc9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12801648832100342225 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/Nargo.toml deleted file mode 100644 index b67214ce7c8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src/main.nr deleted file mode 100644 index a31c5604e56..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - pub struct Foo { - wrapped: fn(Field) -> bool, - } - - impl Foo { - fn call(self) -> bool { - self.wrapped(1) - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src_hash.txt deleted file mode 100644 index 3527751bedc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10983588983807543661 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/Nargo.toml deleted file mode 100644 index 2b1a19cfaf5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_immutable_references_without_ownership_feature" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src/main.nr deleted file mode 100644 index b97d8b264dc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - fn main() { - let mut array = [1, 2, 3]; - borrow(&array); - } - - fn borrow(_array: &[Field; 3]) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src_hash.txt deleted file mode 100644 index 24957b33d80..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7450976631215707949 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/Nargo.toml deleted file mode 100644 index 94b0e3f5b60..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_missing_associated_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src/main.nr deleted file mode 100644 index ecb107bfbc4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - trait Foo { - type Assoc; - } - - impl Foo for () {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src_hash.txt deleted file mode 100644 index 7df140f509e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_missing_associated_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10813624746697187193 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/Nargo.toml deleted file mode 100644 index aa1e470dd35..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_not_found_for_inner_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src/main.nr deleted file mode 100644 index 1a586efa21f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src/main.nr +++ /dev/null @@ -1,38 +0,0 @@ - - trait Serialize { - fn serialize(self) -> [Field; N]; - } - - trait ToField { - fn to_field(self) -> Field; - } - - fn process_array(array: [Field; N]) -> Field { - array[0] - } - - fn serialize_thing(thing: A) -> [Field; N] where A: Serialize { - thing.serialize() - } - - struct MyType { - a: T, - b: T, - } - - impl Serialize<2> for MyType where T: ToField { - fn serialize(self) -> [Field; 2] { - [ self.a.to_field(), self.b.to_field() ] - } - } - - impl MyType { - fn do_thing_with_serialization_with_extra_steps(self) -> Field { - process_array(serialize_thing(self)) - } - } - - fn main() { - let _ = MyType { a: 1, b: 1 }; // silence MyType never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src_hash.txt deleted file mode 100644 index bba80473478..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10899577712528120787 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/Nargo.toml deleted file mode 100644 index 15d7ea11f35..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_stricter_than_trait_different_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src/main.nr deleted file mode 100644 index 13c1edd2997..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - trait Default2 { } - - // Object type of the trait constraint differs - trait Foo { - fn foo_good() where T: Default2; - - fn foo_bad() where T: Default2; - } - - impl Foo for () { - fn foo_good() where A: Default2 {} - - fn foo_bad() where B: Default2 {} - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src_hash.txt deleted file mode 100644 index a555fea2ea2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13041887471689669324 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/Nargo.toml deleted file mode 100644 index d1c6c001050..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_stricter_than_trait_different_object_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src/main.nr deleted file mode 100644 index 5109507f5a7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src/main.nr +++ /dev/null @@ -1,51 +0,0 @@ - - trait MyTrait { } - - trait OtherTrait {} - - struct Option2 { - inner: T - } - - struct OtherOption { - inner: Option2, - } - - trait Bar { - fn bar_good() where Option2: MyTrait, OtherOption>: OtherTrait; - - fn bar_bad() where Option2: MyTrait, OtherOption>: OtherTrait; - - fn array_good() where [T; 8]: MyTrait; - - fn array_bad() where [T; 8]: MyTrait; - - fn tuple_good() where (Option2, Option2): MyTrait; - - fn tuple_bad() where (Option2, Option2): MyTrait; - } - - impl Bar for () { - fn bar_good() - where - OtherOption>: OtherTrait, - Option2: MyTrait { } - - fn bar_bad() - where - OtherOption>: OtherTrait, - Option2: MyTrait { } - - fn array_good() where [A; 8]: MyTrait { } - - fn array_bad() where [B; 8]: MyTrait { } - - fn tuple_good() where (Option2, Option2): MyTrait { } - - fn tuple_bad() where (Option2, Option2): MyTrait { } - } - - fn main() { - let _ = OtherOption { inner: Option2 { inner: 1 } }; // silence unused warnings - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src_hash.txt deleted file mode 100644 index 1e4bcd2a973..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12882390028894776845 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/Nargo.toml deleted file mode 100644 index 72d03d32aec..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_stricter_than_trait_different_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src/main.nr deleted file mode 100644 index 0ce259d7307..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src/main.nr +++ /dev/null @@ -1,23 +0,0 @@ - - trait Default2 { } - - trait OtherDefault { } - - struct Option2 { - inner: T - } - - trait Bar { - fn bar() where Option2: Default2; - } - - impl Bar for () { - // Trait constraint differs due to the trait even though the constraint - // types are the same. - fn bar() where Option2: OtherDefault {} - } - - fn main() { - let _ = Option2 { inner: 1 }; // silence Option2 never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src_hash.txt deleted file mode 100644 index 5dfc3a8c9b7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8929859657496971076 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/Nargo.toml deleted file mode 100644 index a0cfe1954eb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src/main.nr deleted file mode 100644 index fc4b8c3d9f7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - trait Foo { - fn foo() where T: T2; - } - - impl Foo for () { - // Should be A: T2 - fn foo() where A: T2 {} - } - - trait T2 {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src_hash.txt deleted file mode 100644 index 38e130ca771..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5785008654833206720 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/Nargo.toml deleted file mode 100644 index 62dba3f8c0d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src/main.nr deleted file mode 100644 index 7690ba379eb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src/main.nr +++ /dev/null @@ -1,40 +0,0 @@ - - trait Serialize { - // We want to make sure we trigger the error when override a trait method - // which itself has no trait constraints. - fn serialize(self) -> [Field; N]; - } - - trait ToField { - fn to_field(self) -> Field; - } - - fn process_array(array: [Field; N]) -> Field { - array[0] - } - - fn serialize_thing(thing: A) -> [Field; N] where A: Serialize { - thing.serialize() - } - - struct MyType { - a: T, - b: T, - } - - impl Serialize<2> for MyType { - fn serialize(self) -> [Field; 2] where T: ToField { - [ self.a.to_field(), self.b.to_field() ] - } - } - - impl MyType { - fn do_thing_with_serialization_with_extra_steps(self) -> Field { - process_array(serialize_thing(self)) - } - } - - fn main() { - let _ = MyType { a: 1, b: 1 }; // silence MyType never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src_hash.txt deleted file mode 100644 index 769cca31177..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18126375868535936621 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/Nargo.toml deleted file mode 100644 index c3637d67c63..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_errors_if_using_alias_in_import" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src/main.nr deleted file mode 100644 index d38d738f02a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - mod foo { - pub type bar = i32; - } - - use foo::bar::baz; - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src_hash.txt deleted file mode 100644 index 5641782112d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8784175932312491950 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/Nargo.toml deleted file mode 100644 index 2d5b9e04da3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_no_super" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src/main.nr deleted file mode 100644 index c4939a13792..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ - - use super::some_func; - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src_hash.txt deleted file mode 100644 index b5344adca3d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_no_super/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6790742783369314380 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/Nargo.toml deleted file mode 100644 index e5184b91506..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src/main.nr deleted file mode 100644 index f8268b5e0b7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - mod foo { - mod bar { - pub(crate) fn baz() {} - } - - pub use bar::baz; - } - - fn main() { - foo::baz(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src_hash.txt deleted file mode 100644 index 5852ab71a68..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14523317450263524170 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/Nargo.toml deleted file mode 100644 index 61cee0e1479..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_incorrect_generic_count_on_struct_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src/main.nr deleted file mode 100644 index bf1fad165c6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - struct Foo {} - impl Foo {} - fn main() { - let _ = Foo {}; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src_hash.txt deleted file mode 100644 index db89f1c5b8b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9800918136047473802 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/Nargo.toml deleted file mode 100644 index ec0c4370507..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_incorrect_generic_count_on_type_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src/main.nr deleted file mode 100644 index 80d7c9c90ce..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - pub struct Foo {} - pub type Bar = Foo; - fn main() { - let _ = Foo {}; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src_hash.txt deleted file mode 100644 index 76f5302b6d1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17164933626738581186 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/Nargo.toml deleted file mode 100644 index 64f8aebc8f6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_incorrect_turbofish_count_function_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src/main.nr deleted file mode 100644 index 32527300aeb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src/main.nr +++ /dev/null @@ -1,25 +0,0 @@ - - trait Default2 { - fn default() -> Self; - } - - impl Default2 for Field { - fn default() -> Self { 0 } - } - - impl Default2 for u64 { - fn default() -> Self { 0 } - } - - // Need the above as we don't have access to the stdlib here. - // We also need to construct a concrete value of `U` without giving away its type - // as otherwise the unspecified type is ignored. - - fn generic_func() -> (T, U) where T: Default2, U: Default2 { - (T::default(), U::default()) - } - - fn main() { - let _ = generic_func::(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src_hash.txt deleted file mode 100644 index d113af8599a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6698627152417292549 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/Nargo.toml deleted file mode 100644 index 0eaf01f41fd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_incorrect_turbofish_count_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src/main.nr deleted file mode 100644 index 7cfc0ce179d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src/main.nr +++ /dev/null @@ -1,28 +0,0 @@ - - trait Default2 { - fn default() -> Self; - } - - impl Default2 for Field { - fn default() -> Self { 0 } - } - - // Need the above as we don't have access to the stdlib here. - // We also need to construct a concrete value of `U` without giving away its type - // as otherwise the unspecified type is ignored. - - struct Foo { - inner: T - } - - impl Foo { - fn generic_method(_self: Self) -> U where U: Default2 { - U::default() - } - } - - fn main() { - let foo: Foo = Foo { inner: 1 }; - let _ = foo.generic_method::(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src_hash.txt deleted file mode 100644 index b715d23e01d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15341821732686577727 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/Nargo.toml deleted file mode 100644 index 5318a50ece4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_non_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src/main.nr deleted file mode 100644 index c411170e4a6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index: u64 = 0; - let array = [1, 2, 3]; - let _ = array[index]; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src_hash.txt deleted file mode 100644 index 457ab72675f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10017009056754967234 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/Nargo.toml deleted file mode 100644 index a71ac543942..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src/main.nr deleted file mode 100644 index 45030f4119c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index: u64 = 0; - let mut array = [1, 2, 3]; - array[index] = 0; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src_hash.txt deleted file mode 100644 index 99e16c66f7f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3206140538212568229 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/Nargo.toml deleted file mode 100644 index 68ec9787c4d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src/main.nr deleted file mode 100644 index f807d3fa52a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index: Field = 0; - let mut array = [1, 2, 3]; - array[index] = 0; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src_hash.txt deleted file mode 100644 index dc2ed45eac5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13389659972219580025 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/Nargo.toml deleted file mode 100644 index ff44591c6e1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src/main.nr deleted file mode 100644 index b0841ee2b2b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index: Field = 0; - let array = [1, 2, 3]; - let _ = array[index]; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src_hash.txt deleted file mode 100644 index 43cf2db5633..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8473283628554404298 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/Nargo.toml deleted file mode 100644 index 4586543fbd1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src/main.nr deleted file mode 100644 index 5fc31203b9c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x: Field) { - comptime let my_var = (x - x) + 2; - assert_eq(my_var, 2); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src_hash.txt deleted file mode 100644 index 6b2aaeddd5d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8768889499835968724 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/Nargo.toml deleted file mode 100644 index c70b21ac0c3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src/main.nr deleted file mode 100644 index 51368a47401..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ - - pub fn foo(_f: FunctionDefinition) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src_hash.txt deleted file mode 100644 index 98970d5eb0d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2881018532561555068 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/Nargo.toml deleted file mode 100644 index f4b6932d631..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src/main.nr deleted file mode 100644 index 3b734ba5a3d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - comptime fn make_colliding_functions(_s: TypeDefinition) -> Quoted { - quote { - fn foo() {} - } - } - - #[make_colliding_functions] - struct Foo {} - - #[make_colliding_functions] - struct Bar {} - - fn main() { - let _ = Foo {}; - let _ = Bar {}; - foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src_hash.txt deleted file mode 100644 index 1569be49633..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8117581159660053830 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/Nargo.toml deleted file mode 100644 index 821fa7f9004..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_macro_result_type_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src/main.nr deleted file mode 100644 index f4a6c56aca8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - comptime { - let x = unquote!(quote { "test" }); - let _: Field = x; - } - } - - comptime fn unquote(q: Quoted) -> Quoted { - q - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src_hash.txt deleted file mode 100644 index 0952d114dfd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10745319793674251593 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/Nargo.toml deleted file mode 100644 index 18af7a23305..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src/main.nr deleted file mode 100644 index 59739bd0578..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - fn main() { - let z = BigNum { limbs: [2, 0, 0] }; - assert(z.__is_zero() == false); - } - - struct BigNum { - limbs: [u64; N], - } - - impl BigNum { - unconstrained fn __is_zero_impl(self) -> bool { - let mut result: bool = true; - for i in 0..N { - result = result & (self.limbs[i] == 0); - } - result - } - } - - trait BigNumTrait { - fn __is_zero(self) -> bool; - } - - impl BigNumTrait for BigNum { - fn __is_zero(self) -> bool { - self.__is_zero_impl() - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src_hash.txt deleted file mode 100644 index c8e68ff7aba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17832428252294509170 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/Nargo.toml deleted file mode 100644 index 216ca454eaa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_multiple_resolution_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src/main.nr deleted file mode 100644 index 5ea5247be30..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main(x : Field) { - let y = foo::bar(x); - let z = y + a; - - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src_hash.txt deleted file mode 100644 index 587c317b45f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_multiple_resolution_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1546509687079062653 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/Nargo.toml deleted file mode 100644 index 5fc1427f954..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src/main.nr deleted file mode 100644 index 753f6fd1ff2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn foo(x: &mut u32) { - *x += 1; - } - fn main() { - let mut state: [u32; 4] = [1, 2, 3, 4]; - foo(&mut state[0]); - assert_eq(state[0], 2); // expect:2 got:1 - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src_hash.txt deleted file mode 100644 index 9b48706c92f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16478403269296950022 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/Nargo.toml deleted file mode 100644 index 0866d01db5f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_non_u32_as_array_length" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src/main.nr deleted file mode 100644 index 01db3a3f44e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - global ARRAY_LEN: u8 = 3; - - fn main() { - let _a: [u32; ARRAY_LEN] = [1, 2, 3]; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src_hash.txt deleted file mode 100644 index 9b96ca36700..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_non_u32_as_array_length/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12957875919458975176 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/Nargo.toml deleted file mode 100644 index 4c9424a663a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_normal_generic_as_array_length" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src/main.nr deleted file mode 100644 index 56f0e019974..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - pub struct Foo { - a: Field, - b: [Field; N], - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src_hash.txt deleted file mode 100644 index 24f9fd85ab5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15463199865666918611 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/Nargo.toml deleted file mode 100644 index ac01a8884cd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src/main.nr deleted file mode 100644 index ac5d65c0378..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo { - a: Field, - b: Bar, - } - pub struct Bar { - inner: [Field; N] - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src_hash.txt deleted file mode 100644 index 273cb64f31a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16034624471637400485 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/Nargo.toml deleted file mode 100644 index 125cd836795..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src/main.nr deleted file mode 100644 index 95db175e41c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; - } - - pub fn read() -> T where T: Deserialize { - T::deserialize([0, 1]) - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src_hash.txt deleted file mode 100644 index 6246a69f6d7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9194675236093786708 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/Nargo.toml deleted file mode 100644 index d266e6db28e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src/main.nr deleted file mode 100644 index 5dd412b9881..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; - } - - pub fn read() -> T where T: Deserialize { - let mut fields: [Field; N] = [0; N]; - for i in 0..N { - fields[i] = i as Field + 1; - } - T::deserialize(fields) - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src_hash.txt deleted file mode 100644 index 3cfa44c5e6e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13688380561725972358 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/Nargo.toml deleted file mode 100644 index 788a2d2133f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_as_param_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src/main.nr deleted file mode 100644 index fbf2f43383a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - pub fn foo(x: I) -> I { - - - let _q: I = 5; - x - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src_hash.txt deleted file mode 100644 index 6e7923bdab0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8391891070132271316 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/Nargo.toml deleted file mode 100644 index 998d13ea8b9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_as_return_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src/main.nr deleted file mode 100644 index 3b3917d6a78..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - // std::mem::zeroed() without stdlib - trait Zeroed { - fn zeroed(self) -> T; - } - - fn foo(x: T) -> I where T: Zeroed { - x.zeroed() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src_hash.txt deleted file mode 100644 index 4f0b9dfc9c1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3696761890288142507 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/Nargo.toml deleted file mode 100644 index e12faf24941..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_as_struct_field_type_fails" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src/main.nr deleted file mode 100644 index a57008ca432..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - pub struct Foo { - a: Field, - b: N, - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src_hash.txt deleted file mode 100644 index 2ef7b49a599..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7822607593719409515 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/Nargo.toml deleted file mode 100644 index ab38d297a96..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_as_unused_param_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src/main.nr deleted file mode 100644 index 5a380cc3a1f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ - - pub fn foo(_x: I) { } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src_hash.txt deleted file mode 100644 index fb7cab3af35..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -181012993924721101 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/Nargo.toml deleted file mode 100644 index 88a6db84dfd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src/main.nr deleted file mode 100644 index 5007323639a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - trait Foo { - fn foo(_x: I) { } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src_hash.txt deleted file mode 100644 index 036cab9cc12..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10366002121757775343 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/Nargo.toml deleted file mode 100644 index f8eab6d97e9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src/main.nr deleted file mode 100644 index bc4c7ab75e3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - pub fn foo() -> bool { - let mut check: bool = true; - check = N; - check - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src_hash.txt deleted file mode 100644 index 200faefe65e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17825349360619967714 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/Nargo.toml deleted file mode 100644 index b2ed535a8e9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_u16_array_size" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src/main.nr deleted file mode 100644 index 5e56e663766..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn len(_arr: [Field; N]) -> u32 { - N - } - - pub fn foo() -> u32 { - let fields: [Field; N] = [0; N]; - len(fields) - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src_hash.txt deleted file mode 100644 index fb8bd0b95ca..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2176388899630659331 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/Nargo.toml deleted file mode 100644 index 1a51bb7f8aa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_used_in_nested_type_fails" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src/main.nr deleted file mode 100644 index 843452a1f60..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo { - a: Field, - b: Bar, - } - pub struct Bar { - inner: N - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src_hash.txt deleted file mode 100644 index 8804065e515..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14986261799264400091 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/Nargo.toml deleted file mode 100644 index abe14076518..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generics_type_kind_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src/main.nr deleted file mode 100644 index 428654dd30a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - fn foo() -> u16 { - N as u16 - } - - global J: u16 = 10; - - fn bar() -> u16 { - foo::() - } - - global M: u16 = 3; - - fn main() { - let _ = bar::(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src_hash.txt deleted file mode 100644 index bf91e4f1400..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8942993631839620971 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/Nargo.toml deleted file mode 100644 index 33c0cdf3f09..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src/main.nr deleted file mode 100644 index 732dc8b5f09..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - struct BoundedVec { - storage: [T; MaxLen], - // can't be compared to MaxLen: u32 - // can't be used to index self.storage - len: u64, - } - - impl BoundedVec { - pub fn extend_from_bounded_vec(&mut self, _vec: BoundedVec) { - // We do this to avoid an unused variable warning on `self` - let _ = self.len; - for _ in 0..Len { } - } - - pub fn push(&mut self, elem: T) { - assert(self.len < MaxLen, "push out of bounds"); - self.storage[self.len] = elem; - self.len += 1; - } - } - - fn main() { - let _ = BoundedVec { storage: [1], len: 1 }; // silence never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src_hash.txt deleted file mode 100644 index 8aca3dede3f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1449769457880191807 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/Nargo.toml deleted file mode 100644 index cd11e7f6b0e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_object_type_must_be_known_in_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src/main.nr deleted file mode 100644 index 70660686925..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub fn foo() -> [Field; N] { - let array = []; - let mut bar = array[0]; - let _ = bar.len(); - bar - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src_hash.txt deleted file mode 100644 index 9c4de4625d8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17984758935192644218 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/Nargo.toml deleted file mode 100644 index fc26df9d0be..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src/main.nr deleted file mode 100644 index 9385de2ffac..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - mod moo { - struct foo {} - - fn foo() {} - } - - fn main() { - let _ = moo::foo {}; - x - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src_hash.txt deleted file mode 100644 index 3fa26b26993..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2073315907866401059 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/Nargo.toml deleted file mode 100644 index 9fd8d441059..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_overflowing_int_in_for_loop" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src/main.nr deleted file mode 100644 index ae8da6bb9aa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - for _ in -2..-1 {} - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src_hash.txt deleted file mode 100644 index a8c51ba2ac9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17760966657121348866 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/Nargo.toml deleted file mode 100644 index d38b4edc461..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_quote_code_fragments" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src/main.nr deleted file mode 100644 index 0844eeeb339..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - fn main() { - comptime { - concat!(quote { assert( }, quote { false); }); - } - } - - comptime fn concat(a: Quoted, b: Quoted) -> Quoted { - quote { $a $b } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src_hash.txt deleted file mode 100644 index 9f3fdadc34c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_quote_code_fragments/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9649227115546994303 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/Nargo.toml deleted file mode 100644 index f8ec55abb8b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_references_cannot_mutate_immutable_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src/main.nr deleted file mode 100644 index 5789f4123fe..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - fn main() { - let array = [1]; - mutate(&mut array); - } - - fn mutate(_: &mut [Field; 1]) {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src_hash.txt deleted file mode 100644 index 794c750009b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7292594971943401835 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/Nargo.toml deleted file mode 100644 index b1863fd01d5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src/main.nr deleted file mode 100644 index 3787ae0191d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - struct Foo { - x: Field - } - - fn main() { - let foo = Foo { x: 0 }; - mutate(&mut foo.x); - } - - fn mutate(foo: &mut Field) { - *foo = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src_hash.txt deleted file mode 100644 index bec15dbbe10..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14171819403918055634 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/Nargo.toml deleted file mode 100644 index 629b500b5a3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_references_constrained_reference_to_unconstrained" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src/main.nr deleted file mode 100644 index 0b8cafcb43a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - fn main(mut x: u32, y: pub u32) { - let x_ref = &mut x; - if x == 5 { - // Safety: test context - unsafe { - mut_ref_input(x_ref, y); - } - } - - assert(x == 10); - } - - unconstrained fn mut_ref_input(x: &mut u32, y: u32) { - *x = y; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src_hash.txt deleted file mode 100644 index 19da2ad583d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4513530981893321998 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/Nargo.toml deleted file mode 100644 index 773e7a5da10..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src/main.nr deleted file mode 100644 index 849a3e445ad..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main() { - mutate(&mut undefined); - } - - fn mutate(foo: &mut Field) { - *foo = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src_hash.txt deleted file mode 100644 index 51ce6465a8b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10418849100793200808 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/Nargo.toml deleted file mode 100644 index 246c039168e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_fmt_strings" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src/main.nr deleted file mode 100644 index e4355c44094..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main() { - let string = f"this is i: {i}"; - println(string); - - let new_val = 10; - println(f"random_string{new_val}{new_val}"); - } - fn println(x : T) -> T { - x - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src_hash.txt deleted file mode 100644 index 3e7d141d204..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_fmt_strings/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5921858798247487200 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/Nargo.toml deleted file mode 100644 index c88eae29bbc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_unresolved_var" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src/main.nr deleted file mode 100644 index bae22cec6f2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x : Field) { - let y = x + x; - assert(y == z); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src_hash.txt deleted file mode 100644 index 26ef6ca78b6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_resolve_unresolved_var/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14180204181997264210 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/Nargo.toml deleted file mode 100644 index 7f375bce302..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_struct_numeric_generic_in_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src/main.nr deleted file mode 100644 index b84e910b9b2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Foo { - inner: u64 - } - - pub fn bar() { - let _ = Foo { inner: 1 }; // silence Foo never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src_hash.txt deleted file mode 100644 index 512cfced74a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7997993370185136210 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/Nargo.toml deleted file mode 100644 index f3470f93fe8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_struct_numeric_generic_in_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src/main.nr deleted file mode 100644 index 6327c6ad949..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ -pub struct Foo { - inner: u64, -} - -pub struct Bar {} diff --git a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src_hash.txt deleted file mode 100644 index d71eb589236..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5691798254030106717 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/Nargo.toml deleted file mode 100644 index 53530421ee3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_impl_generics_count_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src/main.nr deleted file mode 100644 index a3b7a85f2b8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - trait Foo {} - - impl Foo<()> for Field {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src_hash.txt deleted file mode 100644 index 22e5f3a1ea1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2844671246965634617 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/Nargo.toml deleted file mode 100644 index 3657c50cf7a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_impl_where_clause_stricter_pass" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src/main.nr deleted file mode 100644 index 27f4027e5eb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src/main.nr +++ /dev/null @@ -1,23 +0,0 @@ - - trait MyTrait { - fn good_foo() where H: OtherTrait; - - fn bad_foo() where H: OtherTrait; - } - - trait OtherTrait {} - - struct Option2 { - inner: T - } - - impl MyTrait for [T] where Option2: MyTrait { - fn good_foo() where B: OtherTrait { } - - fn bad_foo() where A: OtherTrait { } - } - - fn main() { - let _ = Option2 { inner: 1 }; // silence Option2 never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src_hash.txt deleted file mode 100644 index 00c84ae5292..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11987089964395655875 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/Nargo.toml deleted file mode 100644 index 68965b8a60d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_ambiguous_associated_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src/main.nr deleted file mode 100644 index dff578e28ae..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - trait MyTrait { - type X; - } - - fn main() { - let _: MyTrait::X = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src_hash.txt deleted file mode 100644 index 5f9a2720f02..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13862314908428953715 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/Nargo.toml deleted file mode 100644 index 4764e8a90f5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src/main.nr deleted file mode 100644 index 439e3d6b851..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - struct Foo { - x: , - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src_hash.txt deleted file mode 100644 index b874c936482..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2345230380561338133 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/Nargo.toml deleted file mode 100644 index 6ce71fa021d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src/main.nr deleted file mode 100644 index 7e63cc313f0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Foo { - let Bar: u32; - } - - impl Foo for i32 { - let Bar: u32 = 5; - } - - impl Foo for i32 { - let Bar: u32 = 6; - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src_hash.txt deleted file mode 100644 index eee6fae264c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -136060998287146535 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/Nargo.toml deleted file mode 100644 index 53a56451586..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src/main.nr deleted file mode 100644 index d68cd7f4a81..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Foo { - type Bar; - } - - impl Foo for i32 { - type Bar = u32; - } - - impl Foo for i32 { - type Bar = u8; - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src_hash.txt deleted file mode 100644 index 3c0e776e0bd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7008148422845370924 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/Nargo.toml deleted file mode 100644 index 73828e3fe73..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl" - type = "bin" - authors = [""] - - [dependencies] diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src/main.nr deleted file mode 100644 index 64d9d8ace90..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub trait Foo { - fn foo() -> Field; - } - - impl Foo for Field { - unconstrained fn foo() -> Field { - 42 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src_hash.txt deleted file mode 100644 index 46be0f3a590..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11746277096026948021 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/Nargo.toml deleted file mode 100644 index 15c7e47194a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src/main.nr deleted file mode 100644 index 4a76893afa8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src/main.nr +++ /dev/null @@ -1,25 +0,0 @@ - - pub trait Greeter { - fn greet(self); - } - - pub trait Foo - where - T: Greeter, - { - fn greet(object: U) - where - U: Greeter, - { - object.greet(); - } - } - - pub struct SomeGreeter; - - pub struct Bar; - - impl Foo for Bar {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src_hash.txt deleted file mode 100644 index 039ac002e43..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8015054849739264459 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/Nargo.toml deleted file mode 100644 index 54413b7f965..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src/main.nr deleted file mode 100644 index b902cb8012b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src/main.nr +++ /dev/null @@ -1,33 +0,0 @@ - - use private_mod::Foo; - use private_mod::Foo2; - - fn main() { - let _ = Bar::foo(); - } - - pub struct Bar { - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - - pub trait Foo2 { - fn foo() -> i32; - } - - impl Foo2 for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src_hash.txt deleted file mode 100644 index 3f142024390..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15992121295715033032 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/Nargo.toml deleted file mode 100644 index 43507b8690f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src/main.nr deleted file mode 100644 index bcd78b73883..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src/main.nr +++ /dev/null @@ -1,35 +0,0 @@ - - use private_mod::Foo; - use private_mod::Foo2; - - fn main() { - let bar = Bar { x : 42 }; - let _ = bar.foo(); - } - - pub struct Bar { - x: i32, - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - - pub trait Foo2 { - fn foo(self) -> i32; - } - - impl Foo2 for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src_hash.txt deleted file mode 100644 index 690202de5d8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15243105102475783522 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/Nargo.toml deleted file mode 100644 index e29c7c8d1c4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src/main.nr deleted file mode 100644 index f99c5b87ec4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - fn main() { - let _ = Bar::foo(); - } - - pub struct Bar { - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - - pub trait Foo2 { - fn foo() -> i32; - } - - impl Foo2 for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src_hash.txt deleted file mode 100644 index a068bdcc830..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16091303172575704457 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/Nargo.toml deleted file mode 100644 index d04ee0649ba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src/main.nr deleted file mode 100644 index 6a05337a3c9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src/main.nr +++ /dev/null @@ -1,32 +0,0 @@ - - fn main() { - let bar = Bar { x: 42 }; - let _ = bar.foo(); - } - - pub struct Bar { - x: i32, - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - - pub trait Foo2 { - fn foo(self) -> i32; - } - - impl Foo2 for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src_hash.txt deleted file mode 100644 index db8a9d72f8d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8754941268889085174 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/Nargo.toml deleted file mode 100644 index fad94b6e7a3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl" - type = "bin" - authors = [""] - - [dependencies] diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src/main.nr deleted file mode 100644 index 2d7495cd02e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub trait Foo { - unconstrained fn foo() -> Field; - } - - impl Foo for Field { - fn foo() -> Field { - 42 - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src_hash.txt deleted file mode 100644 index ff458187950..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9121808244621508618 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/Nargo.toml deleted file mode 100644 index aba41f89606..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src/main.nr deleted file mode 100644 index 1295bc9398e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - trait From2 { - fn from2(input: T) -> Self; - } - struct U60Repr {} - impl From2<[Field; 3]> for U60Repr { - fn from2(_: [Field; 3]) -> Self { - U60Repr {} - } - } - impl From2 for U60Repr { - fn from2(_: Field) -> Self { - U60Repr {} - } - } - - fn main() { - let _ = U60Repr::::from2([1, 2, 3]); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src_hash.txt deleted file mode 100644 index 140ee8d7b58..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15773000329539722749 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/Nargo.toml deleted file mode 100644 index 59367cc9a84..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src/main.nr deleted file mode 100644 index 86491234724..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - pub trait Foo where T: Unknown {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src_hash.txt deleted file mode 100644 index 4e3605e6624..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4705812359270583727 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/Nargo.toml deleted file mode 100644 index c4e09030c25..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src/main.nr deleted file mode 100644 index 8e039821b6f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - mod one { - mod two { - pub mod three { - pub trait Trait { - fn method(self); - } - - impl Trait for bool { - fn method(self) {} - } - } - } - - pub use two::three; - } - - fn main() { - true.method() - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src_hash.txt deleted file mode 100644 index 298fe9156d6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -106678126860204168 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/Nargo.toml deleted file mode 100644 index e55453129d7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_suggests_importing_trait_via_reexport" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src/main.nr deleted file mode 100644 index 54b60953444..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - mod one { - mod two { - pub trait Trait { - fn method(self); - } - - impl Trait for bool { - fn method(self) {} - } - } - - pub use two::Trait; - } - - fn main() { - true.method() - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src_hash.txt deleted file mode 100644 index 93b95f620ac..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7772219077855071971 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/Nargo.toml deleted file mode 100644 index 66f9e8147e4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src/main.nr deleted file mode 100644 index 700a17703c8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src/main.nr +++ /dev/null @@ -1,41 +0,0 @@ - - trait Foo { - fn foo(self) -> Self; - } - - trait Bar { - fn bar(self) -> T; - } - - trait Baz { - fn baz(self) -> bool; - } - - trait Qux = Foo + Bar where T: Baz; - - fn qux(x: T) -> bool where T: Qux { - x.foo().bar().baz() - } - - impl Foo for Field { - fn foo(self) -> Self { - self + 1 - } - } - - impl Bar for Field { - fn bar(self) -> bool { - true - } - } - - impl Baz for bool { - fn baz(self) -> bool { - self - } - } - - fn main() { - assert(0.foo().bar().baz() == qux(0)); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src_hash.txt deleted file mode 100644 index 3706782e8c0..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13618652351149091895 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/Nargo.toml deleted file mode 100644 index 2310aaaaa4d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src/main.nr deleted file mode 100644 index 628450a7d13..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - trait Bar { - fn bar(self) -> Self; - } - - trait Baz { - fn baz(self) -> bool; - } - - trait Qux: Bar where T: Baz {} - - impl Qux for U where - U: Bar, - T: Baz, - {} - - pub fn qux(x: T, _: U) -> bool where U: Qux { - x.baz() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src_hash.txt deleted file mode 100644 index 1f591aa55b3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4547988263846367549 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/Nargo.toml deleted file mode 100644 index 67b5ceb42df..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src/main.nr deleted file mode 100644 index 39d2805e140..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - trait Bar { - fn bar(self) -> Self; - } - - trait Baz { - fn baz(self) -> bool; - } - - trait Qux = Bar where T: Baz; - - pub fn qux(x: T, _: U) -> bool where U: Qux { - x.baz() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src_hash.txt deleted file mode 100644 index d7d9c41769c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4906776882135662269 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/Nargo.toml deleted file mode 100644 index a11110f3374..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_dependency_cycle" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src/main.nr deleted file mode 100644 index c2024476e56..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - trait Foo: Bar {} - trait Bar: Foo {} - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src_hash.txt deleted file mode 100644 index fa01a6bd51c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9815061337034138962 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/Nargo.toml deleted file mode 100644 index e78ec03e4ba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src/main.nr deleted file mode 100644 index 41f00f39e8b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - pub trait Foo {} - - pub trait Bar: Foo {} - - pub struct Struct {} - - impl Bar for Struct {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src_hash.txt deleted file mode 100644 index bec750a9229..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7024564493620083231 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/Nargo.toml deleted file mode 100644 index 7918817f966..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src/main.nr deleted file mode 100644 index 711b3b0b889..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub trait Foo { - fn foo(self) -> i32 { - let _ = self; - true - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src_hash.txt deleted file mode 100644 index 74eab4b28de..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11814460594693844334 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/Nargo.toml deleted file mode 100644 index 71a4e313007..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src/main.nr deleted file mode 100644 index e753c924dff..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - fn main() { - let _ = Bar::foo(); - } - - pub struct Bar { - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src_hash.txt deleted file mode 100644 index c8dd38dc458..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -867979350234127708 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/Nargo.toml deleted file mode 100644 index 9f2d79ec62a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src/main.nr deleted file mode 100644 index f95119f6060..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - fn main() { - let x: i32 = 1; - let _ = x.foo(); - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for T { - fn foo(self) -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src_hash.txt deleted file mode 100644 index c57abcb7b1d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1411311848477753305 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/Nargo.toml deleted file mode 100644 index f2f4a339709..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src/main.nr deleted file mode 100644 index cb66977a615..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - fn main() { - let bar = Bar { x: 42 }; - let _ = bar.foo(); - } - - pub struct Bar { - x: i32, - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src_hash.txt deleted file mode 100644 index 92d1ce2bc96..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9179673143116991075 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/Nargo.toml deleted file mode 100644 index 232b42fd326..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src/main.nr deleted file mode 100644 index e01385aeef9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - fn main() { - let _ = Field::foo(); - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for Field { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src_hash.txt deleted file mode 100644 index 42680525bbf..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8912359360509133311 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/Nargo.toml deleted file mode 100644 index 36ef2927380..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src/main.nr deleted file mode 100644 index 6120bd6b478..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - fn main() { - let x: Field = 1; - let _ = x.foo(); - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for Field { - fn foo(self) -> i32 { - self as i32 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src_hash.txt deleted file mode 100644 index cd7abf8687c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11034378750280193157 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/Nargo.toml deleted file mode 100644 index f4e85e903e1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_errors_if_turbofish_after_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src/main.nr deleted file mode 100644 index 4ae8d7d4c2b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - mod moo { - pub fn foo() {} - } - - fn main() { - moo::::foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src_hash.txt deleted file mode 100644 index d876a96fa71..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8237992509244447141 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/Nargo.toml deleted file mode 100644 index 0bd94ffaa8a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src/main.nr deleted file mode 100644 index d00be4ca332..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Foo { - fn foo(_x: T) -> Self; - } - - impl Foo for i32 { - fn foo(_x: T) -> Self { - 1 - } - } - - fn main() { - let _: i32 = Foo::::foo(1); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src_hash.txt deleted file mode 100644 index c6c0f83ec98..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12391473843073723579 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/Nargo.toml deleted file mode 100644 index 689ff9d0d80..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_constructor" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src/main.nr deleted file mode 100644 index 8d65038b519..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - struct Foo { - x: T - } - - fn main() { - let x: Field = 0; - let _ = Foo:: { x: x }; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src_hash.txt deleted file mode 100644 index 413f156b9d3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3203793305669805060 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/Nargo.toml deleted file mode 100644 index 4da02a89454..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src/main.nr deleted file mode 100644 index 1e7f92d46e8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Foo { - x: T - } - - fn main() { - let _ = Foo:: { x: 1 }; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src_hash.txt deleted file mode 100644 index 63912f7a748..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7582472937482180100 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/Nargo.toml deleted file mode 100644 index 4900b84690c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src/main.nr deleted file mode 100644 index 32e484cf4a3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Foo { - x: T - } - - fn main() { - let value: Field = 0; - let Foo:: { x } = Foo { x: value }; - let _ = x; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src_hash.txt deleted file mode 100644 index 665ef036d9b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8196180437664453393 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/Nargo.toml deleted file mode 100644 index 8c90df72d50..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src/main.nr deleted file mode 100644 index 4532c268a4d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Foo { - x: T - } - - fn main() { - let value = 0; - let Foo:: { x } = Foo { x: value }; - let _ = x; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src_hash.txt deleted file mode 100644 index faeef81efc7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9540633165364372388 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/Nargo.toml deleted file mode 100644 index 051934bfb83..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src/main.nr deleted file mode 100644 index b8610cae23f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Foo { - x: T - } - - impl Foo { - fn new(x: T) -> Self { - Foo { x } - } - } - - fn main() { - let _ = Foo::::new(true); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src_hash.txt deleted file mode 100644 index d4381b1627d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3753580909427188599 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/Nargo.toml deleted file mode 100644 index d0151afa1c9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_named_numeric" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src/main.nr deleted file mode 100644 index 3568f016a3c..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src/main.nr +++ /dev/null @@ -1,23 +0,0 @@ - - trait Bar { - let N: u32; - } - - impl Bar for Field { - let N: u32 = 1; - } - - impl Bar for i32 { - let N: u32 = 2; - } - - fn foo() - where - B: Bar, - {} - - fn main() { - foo::(); - foo::(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src_hash.txt deleted file mode 100644 index 9ee91a64253..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16318933143472963725 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/Nargo.toml deleted file mode 100644 index 64ed8ab5d30..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src/main.nr deleted file mode 100644 index c2dd15a8268..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - pub struct Foo { - x: T, - y: U, - } - - impl Foo { - fn new(x: T, y: U) -> Self { - Foo { x, y } - } - } - - type Bar = Foo; - - fn main() { - let _ = Bar::::new(1, 1); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src_hash.txt deleted file mode 100644 index d4abbaaa6bc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14057661072059716017 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/Nargo.toml deleted file mode 100644 index ec0471343fa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src/main.nr deleted file mode 100644 index b5045cb7032..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - pub struct Foo { - x: T, - y: U, - } - - impl Foo { - fn new(x: T, y: U) -> Self { - Foo { x, y } - } - } - - type Bar = Foo; - - fn main() { - let _ = Bar::::new(true, true); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src_hash.txt deleted file mode 100644 index 93779f1c1a4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16985499290222082880 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/Nargo.toml deleted file mode 100644 index c02b1356c16..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src/main.nr deleted file mode 100644 index 798d1c9c8d7..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - pub struct Foo { - x: T, - } - - impl Foo { - fn new(x: T) -> Self { - Foo { x } - } - } - - type Bar = Foo; - - fn main() { - let _ = Bar::::new(true); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src_hash.txt deleted file mode 100644 index 6d0942c304d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7144064894453690564 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/Nargo.toml deleted file mode 100644 index 1b9acb2e8fc..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unconstrained_numeric_generic_in_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src/main.nr deleted file mode 100644 index 529aa05f6ba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo {} - - impl Foo {} - - fn main() { - let _ = Foo {}; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src_hash.txt deleted file mode 100644 index cefc6a0159f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10648545254261603633 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/Nargo.toml deleted file mode 100644 index e41a788b5b9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unconstrained_type_parameter_in_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src/main.nr deleted file mode 100644 index 9da9f80fba4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo {} - - impl Foo {} - - fn main() { - let _ = Foo:: {}; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src_hash.txt deleted file mode 100644 index 550dc0c08c8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12299367657260516465 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/Nargo.toml deleted file mode 100644 index 9ffe019b021..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unresolved_path" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src/main.nr deleted file mode 100644 index 0e6afb1d644..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main(x : Field) { - let _z = some::path::to::a::func(x); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src_hash.txt deleted file mode 100644 index ab8bbb6e19e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unresolved_path/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4535604847518504455 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/Nargo.toml deleted file mode 100644 index 13eb250ab1d..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src/main.nr deleted file mode 100644 index be4973f8003..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Bar {} - - fn foo(_: [Bar; 1]) {} - - fn main() { - foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src_hash.txt deleted file mode 100644 index 65f46c436aa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6625675327575863409 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/Nargo.toml deleted file mode 100644 index 1d467f82dfa..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src/main.nr deleted file mode 100644 index de3a98767bb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - contract some_contract { - // This function is unused, but it's a contract entrypoint - // so it should not produce a warning - fn foo() -> pub Field { - 1 - } - } - - - fn foo() { - bar(); - } - - fn bar() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src_hash.txt deleted file mode 100644 index 7a882265e11..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1265255823714909444 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/Nargo.toml deleted file mode 100644 index a49371834c4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_uses_self_type_in_trait_where_clause" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src/main.nr deleted file mode 100644 index 44b5ed63266..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - pub trait Trait { - fn trait_func(self) -> bool; - } - - pub trait Foo where Self: Trait { - fn foo(self) -> bool { - self.trait_func() - } - } - - struct Bar {} - - impl Foo for Bar { - - } - - fn main() { - let _ = Bar {}; // silence Bar never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src_hash.txt deleted file mode 100644 index fc11287721a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7212256495608086426 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/Nargo.toml deleted file mode 100644 index d63e22d0ae8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_error_when_accessing_private_struct_field" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src/main.nr deleted file mode 100644 index ab68ff53820..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - mod moo { - pub struct Foo { - x: Field - } - } - - fn foo(foo: moo::Foo) -> Field { - foo.x - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src_hash.txt deleted file mode 100644 index 38d4b5e57bb..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12619117288444294013 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/Nargo.toml deleted file mode 100644 index e0a60040f46..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src/main.nr deleted file mode 100644 index 6678f98af7b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - mod moo { - pub struct Foo { - x: Field - } - } - - fn main() { - let _ = moo::Foo { x: 1 }; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src_hash.txt deleted file mode 100644 index 68e016760fe..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5886272703145218094 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/Nargo.toml deleted file mode 100644 index cc82fd8b4dd..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src/main.nr deleted file mode 100644 index f321767f100..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - mod moo { - pub struct Foo { - x: Field - } - } - - fn foo(foo: moo::Foo) -> Field { - let moo::Foo { x } = foo; - x - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src_hash.txt deleted file mode 100644 index be099109626..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9991863851284638220 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/Nargo.toml deleted file mode 100644 index 7f464a4505f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src/main.nr deleted file mode 100644 index bc991d9c38f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - mod foo { - pub struct Foo { - inner: Field, - } - - impl Foo { - pub fn new(inner: Field) -> Self { - Self { inner } - } - } - } - - use foo::Foo; - - fn main() { - comptime { - let foo = Foo::new(5); - let _ = foo.inner; - }; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src_hash.txt deleted file mode 100644 index c0142eaa432..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2376727577700643731 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/stderr.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/stderr.txt deleted file mode 100644 index f35dea3b5d9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/stderr.txt +++ /dev/null @@ -1,8 +0,0 @@ -error: inner is private and not visible from the current module - ┌─ src/main.nr:19:25 - │ -19 │ let _ = foo.inner; - │ ----- inner is private - │ - -Aborting due to 1 previous error diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/Nargo.toml deleted file mode 100644 index 926a2048155..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src/main.nr deleted file mode 100644 index 1820bb94d42..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - mod foo { - pub struct Foo { - foo_inner: Field, - } - } - - use foo::Foo; - - #[generate_inner_accessor] - struct Bar { - bar_inner: Foo, - } - - comptime fn generate_inner_accessor(_s: TypeDefinition) -> Quoted { - quote { - fn bar_get_foo_inner(x: Bar) -> Field { - x.bar_inner.foo_inner - } - } - } - - fn main(x: Bar) { - let _ = bar_get_foo_inner(x); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src_hash.txt deleted file mode 100644 index 605fc6efc06..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -869014804958835686 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/Nargo.toml deleted file mode 100644 index d4abcb212f3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_calling_private_struct_method" - type = "bin" - authors = [""] - - [dependencies] diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src/main.nr deleted file mode 100644 index 4b27bdbc80a..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - mod moo { - pub struct Foo {} - - impl Foo { - fn bar(self) { - let _ = self; - } - } - } - - pub fn method(foo: moo::Foo) { - foo.bar() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src_hash.txt deleted file mode 100644 index 334f2a3ecf5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2455933571118455365 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/Nargo.toml deleted file mode 100644 index 263f9085eba..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src/main.nr deleted file mode 100644 index 60d4bc878e1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub mod moo { - struct Bar {} - pub fn bar(_bar: Bar) {} - - pub fn no_unused_warnings() { - let _ = Bar {}; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src_hash.txt deleted file mode 100644 index 47013684e31..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14918166114493128018 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/Nargo.toml deleted file mode 100644 index 221a335cb83..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src/main.nr deleted file mode 100644 index dfd8ea2788b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub mod moo { - struct Bar {} - - pub fn bar() -> Bar { - Bar {} - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src_hash.txt deleted file mode 100644 index cf594e037b5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9394254933616111492 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/Nargo.toml deleted file mode 100644 index 120cc591fc3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src/main.nr deleted file mode 100644 index 593f9db221f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - pub mod moo { - struct Bar {} - pub struct Foo {} - - impl Foo { - pub fn bar() -> Bar { - Bar {} - } - } - - pub fn no_unused_warnings() { - let _ = Foo {}; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src_hash.txt deleted file mode 100644 index bd859444f44..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6355737224158671252 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/Nargo.toml deleted file mode 100644 index cec56c2cdc3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src/main.nr deleted file mode 100644 index 94e70151a8e..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - pub mod moo { - struct Bar {} - pub struct Foo { pub value: T } - pub struct FooBar { pub value: Foo } - - pub fn no_unused_warnings() { - let _ = FooBar { value: Foo { value: Bar {} } }; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src_hash.txt deleted file mode 100644 index d8663f9ace9..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -362265625591003446 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/Nargo.toml deleted file mode 100644 index 1ae56a16584..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src/main.nr deleted file mode 100644 index 01dd2977739..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - pub mod moo { - struct Bar {} - - pub trait Foo { - fn foo() -> Bar; - } - - pub fn no_unused_warnings() { - let _ = Bar {}; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src_hash.txt deleted file mode 100644 index 3cb5700f389..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6451822704067958048 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/Nargo.toml deleted file mode 100644 index 9bfc36805b4..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src/main.nr deleted file mode 100644 index 398d2560c76..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - pub mod moo { - struct Bar {} - pub struct Foo { pub value: T } - pub type FooBar = Foo; - - pub fn no_unused_warnings() { - let _: FooBar = Foo { value: Bar {} }; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src_hash.txt deleted file mode 100644 index ed77ca0bc88..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1529609977754226254 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/Nargo.toml deleted file mode 100644 index 85028723bd5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src/main.nr deleted file mode 100644 index 6b7df17d389..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - mod foo { - mod bar { - pub fn baz() {} - } - } - fn main() { - foo::bar::baz() - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src_hash.txt deleted file mode 100644 index 8efbdbffc43..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12098545189706092033 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/Nargo.toml deleted file mode 100644 index cc3d9f89436..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src/main.nr deleted file mode 100644 index 3d7f0468dc6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - struct Foo {} - pub type Bar = Foo; - pub fn no_unused_warnings() { - let _: Bar = Foo {}; - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src_hash.txt deleted file mode 100644 index bb2a51bd704..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14497384968548256350 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/Nargo.toml deleted file mode 100644 index 3e83e33849f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src/main.nr deleted file mode 100644 index 619823865c6..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub struct Generic { value: T } - struct Foo {} - pub type Bar = Generic; - pub fn no_unused_warnings() { - let _ = Foo {}; - let _: Bar = Generic { value: Foo {} }; - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src_hash.txt deleted file mode 100644 index 41bdaddddf3..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14644009341813893715 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/Nargo.toml deleted file mode 100644 index 4e351cb853f..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src/main.nr deleted file mode 100644 index 88e1fa9b193..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - mod foo { - mod bar { - pub fn baz() {} - } - - use bar::baz; - - pub fn qux() { - baz(); - } - } - - fn main() { - foo::baz(); - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src_hash.txt deleted file mode 100644 index 4d97ee569d1..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16613303424921387041 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/Nargo.toml deleted file mode 100644 index 80f0cf5d991..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src/main.nr deleted file mode 100644 index 59bd865b5a2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - mod moo { - struct Foo {} - } - use moo::Foo; - fn main() { - let _ = Foo {}; - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src_hash.txt deleted file mode 100644 index 7d0b86e4ce8..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14981979933201061246 \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/Nargo.toml b/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/Nargo.toml deleted file mode 100644 index 73aad5c37c2..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_wrong_type_in_for_range" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src/main.nr b/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src/main.nr deleted file mode 100644 index c85dd00bdb5..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - pub fn foo() { - for _ in true..false { - - } - } - \ No newline at end of file diff --git a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src_hash.txt b/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src_hash.txt deleted file mode 100644 index b1980b5514b..00000000000 --- a/test_programs/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -725225106212079319 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/Nargo.toml deleted file mode 100644 index 1473706c6e6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src/main.nr deleted file mode 100644 index ccf3a949f38..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main(y: call_data(0) Field) -> pub Field { - let x = 1; - let closure = || x; - closure() - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src_hash.txt deleted file mode 100644 index 551d8388374..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10974501271618953777 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/Nargo.toml deleted file mode 100644 index b0b39591e8c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_alias_in_let_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src/main.nr deleted file mode 100644 index 0d15de4d13f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ -struct Foo { - x: T, -} - -type Bar = Foo; - -fn main() { - let Bar { x } = Foo { x: [0] }; - // This is just to show the compiler knows this is an array. - let _: [Field; 1] = x; -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src_hash.txt deleted file mode 100644 index cf0943b8837..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2546530869003737131 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/Nargo.toml deleted file mode 100644 index 90d58f11d33..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src/main.nr deleted file mode 100644 index 7716bf1cf3d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ -type Foo = Field; - -fn accepts_a_foo(x: Foo) { - assert_eq(x, 42); -} - -fn main() { - accepts_a_foo(42); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src_hash.txt deleted file mode 100644 index 4b3a9323643..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17523821898075766291 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/Nargo.toml deleted file mode 100644 index 7459cc750b6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src/main.nr deleted file mode 100644 index 96b49b346d2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ -type Foo = Field; - -fn returns_a_foo() -> Foo { - 42 -} - -fn main() { - let _ = returns_a_foo(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src_hash.txt deleted file mode 100644 index 60a0399a1b5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18383360333132836781 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/Nargo.toml deleted file mode 100644 index 61a6af756e6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_double_alias_in_path" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src/main.nr deleted file mode 100644 index 21cf8a028af..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ -struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type FooAlias1 = Foo; -type FooAlias2 = FooAlias1; - -fn main() { - let _ = FooAlias2::new(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src_hash.txt deleted file mode 100644 index 2f326832d69..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16958336362368810351 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/Nargo.toml deleted file mode 100644 index 25be897747d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_double_generic_alias_in_path" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src/main.nr deleted file mode 100644 index 09f2e5c4b43..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ -struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type FooAlias1 = Foo; -type FooAlias2 = FooAlias1; - -fn main() { - let _ = FooAlias2::new(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src_hash.txt deleted file mode 100644 index 8f8d1067b9a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16835031346007054180 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/Nargo.toml deleted file mode 100644 index 11f2261c3c8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_identity_numeric_type_alias_works" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src/main.nr deleted file mode 100644 index ab32e9852a6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - pub type Identity: u32 = N; - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src_hash.txt deleted file mode 100644 index 0a269cf05a7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4880584451925734703 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/Nargo.toml deleted file mode 100644 index 91634c7ae07..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src/main.nr deleted file mode 100644 index 981c2d87830..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - type Double: u32 = N * 2; - - pub struct Foo { - a: T, - b: [Field; N], - } - fn main(x: Field) { - let a = foo::<4>(x); - assert(a.a == x); - } - fn foo(x: Field) -> Foo> { - Foo { - a: x, - b: [1; Double::] - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src_hash.txt deleted file mode 100644 index a91c5c20db7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9213057798705197017 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/Nargo.toml deleted file mode 100644 index 63a41ccc56d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_aliases_type_alias_to_numeric_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src/main.nr deleted file mode 100644 index 969a1456d7b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - type Double: u32 = N * 2; - fn main() { - let b: [u32; 6] = foo(); - assert(b[0] == 0); - } - fn foo() -> [u32;Double::] { - let mut a = [0;Double::]; - for i in 0..Double:: { - a[i] = i; - } - a - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src_hash.txt deleted file mode 100644 index 7adc0ec57e2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4319076876570430566 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/Nargo.toml deleted file mode 100644 index 9854e24b206..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src/main.nr deleted file mode 100644 index a8e55f254ea..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - let mut x = 3; - let f = || x; - let _x2 = f(); - assert(x == 3); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src_hash.txt deleted file mode 100644 index f1ed2d39fb6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8172008059125388530 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/Nargo.toml deleted file mode 100644 index 59f24b7c0e8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_allows_multiple_underscore_parameters" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src/main.nr deleted file mode 100644 index 2fd0cc6aeaf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ -pub fn foo(_: i32, _: i64) {} - -fn main() {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src_hash.txt deleted file mode 100644 index f5aa12ab6e7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10103823805088014420 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/Nargo.toml deleted file mode 100644 index 6eb7f4398e4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src/main.nr deleted file mode 100644 index 494c981c179..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ -struct Foo { - x: [u64; N * 2], -} - -fn main(_x: Foo<18>) {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src_hash.txt deleted file mode 100644 index 83d1d9e3e62..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7054923584311054314 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/Nargo.toml deleted file mode 100644 index 6ebe4e01124..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src/main.nr deleted file mode 100644 index e11871beb1c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ -struct Foo { - x: [u64; N * 2], -} - -fn main(_x: Foo<2 * 9>) {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src_hash.txt deleted file mode 100644 index 46b1a29be4c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8249514946129741465 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/Nargo.toml deleted file mode 100644 index de7ef5b1fab..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src/main.nr deleted file mode 100644 index d38c2f1a006..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ -struct Foo { - x: [u64; N * 2], -} - -global N: u32 = 9; - -fn main(_x: Foo) {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src_hash.txt deleted file mode 100644 index d0c0519ba50..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10866095349512482600 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/Nargo.toml deleted file mode 100644 index 89b93a90a99..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src/main.nr deleted file mode 100644 index 68f1939ae22..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ -struct ArrData { - a: [Field; N], - b: [Field; N + N - 1], -} - -fn main() { - let _f: ArrData<5> = ArrData { a: [0; 5], b: [0; 9] }; -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src_hash.txt deleted file mode 100644 index 2e74f158610..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5581559551989058227 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/Nargo.toml deleted file mode 100644 index 593ef2811b9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src/main.nr deleted file mode 100644 index 6d1cfbecee6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ -pub trait Serialize { - fn serialize(self) -> [Field; N]; -} - -pub struct Counted { - pub inner: T, -} - -pub fn append(array1: [T; N]) -> [T; N + 1] { - [array1[0]; N + 1] -} - -impl Serialize for Counted -where - T: Serialize, -{ - fn serialize(self) -> [Field; N] { - append(self.inner.serialize()) - } -} - -fn main() {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src_hash.txt deleted file mode 100644 index b9ff7f5abeb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9967244660383391763 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/Nargo.toml deleted file mode 100644 index 73d43fcb53d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src/main.nr deleted file mode 100644 index 2f52828510c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ -struct Foo {} - -impl Foo { - fn size(self) -> Field { - let _ = self; - F - } -} - -// 2^32 - 1 -global A: Field = 4294967295; - -// Avoiding overflow succeeds: -// fn foo() -> Foo { -fn foo() -> Foo { - Foo {} -} - -fn main() { - let _ = foo::().size(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src_hash.txt deleted file mode 100644 index 36e677a7e7b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6218631029461246066 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/Nargo.toml deleted file mode 100644 index ac2e1518443..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src/main.nr deleted file mode 100644 index bd5d57e87d0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ -global A: Field = 4294967297; - -fn foo() {} - -fn main() { - let _ = foo::(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src_hash.txt deleted file mode 100644 index 270e2b85bdd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15339436698213422561 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/Nargo.toml deleted file mode 100644 index 3f7e8a3345c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_arithmetic_generics_rounding_pass" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src/main.nr deleted file mode 100644 index efe900efc21..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - // 3/2*2 = 2 - round::<3, 2>([1, 2]); -} - -fn round(_x: [Field; N / M * M]) {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src_hash.txt deleted file mode 100644 index d4bdeadb497..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9601199679503423696 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/Nargo.toml deleted file mode 100644 index 0fb38769413..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_bit_not_on_untyped_integer" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src/main.nr deleted file mode 100644 index 6a024d11abb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - let _: u32 = 3 & !1; -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src_hash.txt deleted file mode 100644 index cd92ec1d19d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15462039305108027273 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/Nargo.toml deleted file mode 100644 index 58333949602..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_call_function_alias_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src/main.nr deleted file mode 100644 index d199da02366..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ -type Alias = fn[Env](Field) -> Field; - -fn main() { - call_fn(|x| x + 1); -} - -fn call_fn(f: Alias) { - assert_eq(f(0), 1); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src_hash.txt deleted file mode 100644 index 5d0c9db7f44..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16316125956176478979 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/Nargo.toml deleted file mode 100644 index e832f147840..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src/main.nr deleted file mode 100644 index 7735b042410..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ -fn main() { - let _func: unconstrained fn() -> () = foo; -} - -fn foo() {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src_hash.txt deleted file mode 100644 index 60e9a236e27..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5670237679441192496 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/Nargo.toml deleted file mode 100644 index 5f3c26ef0f6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src/main.nr deleted file mode 100644 index d5bb15a29e1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ -fn main() { - let _ = Foo { func: foo }; -} - -fn foo() {} - -struct Foo { - func: unconstrained fn() -> (), -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src_hash.txt deleted file mode 100644 index 2ae526531bd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4324130850050463149 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/Nargo.toml deleted file mode 100644 index 0804832756b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src/main.nr deleted file mode 100644 index dde620c8efd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ -fn main() { - let func = foo; - expect_unconstrained(func); -} - -fn foo() {} - -fn expect_unconstrained(_func: unconstrained fn() -> ()) {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src_hash.txt deleted file mode 100644 index 7de4653ac2a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10990241033989737414 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/Nargo.toml deleted file mode 100644 index 92aa6317bcb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cast_256_to_u8_size_checks" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src/main.nr deleted file mode 100644 index 05f7471a0b4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src/main.nr +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - assert(256 as u8 == 0); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src_hash.txt deleted file mode 100644 index 7b776b487a0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4608860228609396197 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/Nargo.toml deleted file mode 100644 index 5c449b0648d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_as_type_as_fn_parameter" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src/main.nr deleted file mode 100644 index efe19dd1b1b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Foo) -> bool { - self.a == other.a - } -} - -fn test_eq(x: impl Eq2) -> bool { - x.eq2(x) -} - -fn main(a: Foo) -> pub bool { - test_eq(a) -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src_hash.txt deleted file mode 100644 index bd801b246ad..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11752992457943587534 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/Nargo.toml deleted file mode 100644 index 8c1aacead75..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src/main.nr deleted file mode 100644 index 111ce779d6c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src/main.nr +++ /dev/null @@ -1,31 +0,0 @@ -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -trait Test { - fn test(self) -> bool; -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Foo) -> bool { - self.a == other.a - } -} - -impl Test for u64 { - fn test(self) -> bool { - self == self - } -} - -fn test_eq(x: impl Eq2, y: impl Test) -> bool { - x.eq2(x) == y.test() -} - -fn main(a: Foo, b: u64) -> pub bool { - test_eq(a, b) -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src_hash.txt deleted file mode 100644 index c2cc8ccfc14..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4770942073530830357 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/Nargo.toml deleted file mode 100644 index f383ca8acf3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_check_trait_implemented_for_all_t" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src/main.nr deleted file mode 100644 index 8e8fbcae0d9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src/main.nr +++ /dev/null @@ -1,46 +0,0 @@ -trait Default2 { - fn default2() -> Self; -} - -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -trait IsDefault { - fn is_default(self) -> bool; -} - -impl IsDefault for T -where - T: Default2 + Eq2, -{ - fn is_default(self) -> bool { - self.eq2(T::default2()) - } -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Foo) -> bool { - self.a == other.a - } -} - -impl Default2 for u64 { - fn default2() -> Self { - 0 - } -} - -impl Default2 for Foo { - fn default2() -> Self { - Foo { a: Default2::default2() } - } -} - -fn main(a: Foo) -> pub bool { - a.is_default() -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src_hash.txt deleted file mode 100644 index 33df4e0e1a1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15325556904029108757 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/Nargo.toml deleted file mode 100644 index 730dbf02aaa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src/main.nr deleted file mode 100644 index 004cb83f1b6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ -mod moo { - pub struct Bar {} -} - -trait Foo { - fn foo(self); -} - -impl Foo for moo::Bar { - fn foo(self) {} -} - -fn main() { - let bar = moo::Bar {}; - bar.foo(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src_hash.txt deleted file mode 100644 index a97db17beb8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6070861983192767556 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/Nargo.toml deleted file mode 100644 index 74a380d709c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_constant_used_with_numeric_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src/main.nr deleted file mode 100644 index 03ceb64ee0b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ -struct ValueNote { - value: Field, -} - -trait Serialize { - fn serialize(self) -> [Field; N]; -} - -impl Serialize<1> for ValueNote { - fn serialize(self) -> [Field; 1] { - [self.value] - } -} - -fn main() { - let _ = ValueNote { value: 1 }; // silence ValueNote never constructed warning -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src_hash.txt deleted file mode 100644 index 9f86af747dc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3137259325458101498 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/Nargo.toml deleted file mode 100644 index 3294fe02e1b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src/main.nr deleted file mode 100644 index 84e378654fd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ -pub fn foo(x: T, f: fn(T) -> U) -> U { - f(x) -} - -fn main() { - let x: u8 = 1; - let _: Field = foo(x, |x| x as Field); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src_hash.txt deleted file mode 100644 index a7f3a25a436..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9102795853357034897 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/Nargo.toml deleted file mode 100644 index ee7f68044ea..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_does_not_error_on_return_values_after_block_expression" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src/main.nr deleted file mode 100644 index 160b023c3ba..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ -fn case1() -> [Field] { - if true {} - &[1] -} - -fn case2() -> [u8] { - let mut var: u8 = 1; - { - var += 1; - } - &[var] -} - -fn main() { - let _ = case1(); - let _ = case2(); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src_hash.txt deleted file mode 100644 index ac0917c1846..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9904259862412280558 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/Nargo.toml deleted file mode 100644 index c1b025e4554..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src/main.nr deleted file mode 100644 index 7fe3535f1d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src/main.nr +++ /dev/null @@ -1,10001 +0,0 @@ -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -fn main() {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src_hash.txt deleted file mode 100644 index 9335037636b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -128018307344592792 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/Nargo.toml deleted file mode 100644 index 0fbaa81db59..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src/main.nr deleted file mode 100644 index 73caba8c2aa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ -enum Foo { - Bar, -} - -fn main() { - let _x = Foo::Bar; -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src_hash.txt deleted file mode 100644 index 0f13157c97c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13855275778645181482 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/Nargo.toml deleted file mode 100644 index a0dbc9f42a9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_errors_on_unspecified_unstable_match" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src/main.nr deleted file mode 100644 index f80f517e66e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ -fn main() { - match 3 { - _ => (), - } -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src_hash.txt deleted file mode 100644 index 75de601f510..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10105938574547796458 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/Nargo.toml deleted file mode 100644 index 349aeec8264..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_match_on_empty_enum" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/Prover.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/Prover.toml deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src/main.nr deleted file mode 100644 index e9a22d73b2b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - pub fn foo(v: Void) { - match v {} - } - pub enum Void {} - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src_hash.txt deleted file mode 100644 index f0e9c82e287..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_on_empty_enum/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7312261204488485949 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/Nargo.toml deleted file mode 100644 index cc5b7276807..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_enums_match_shadow_global" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src/main.nr deleted file mode 100644 index 82b87a66767..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ -fn main() { - match 2 { - foo => assert_eq(foo, 2), - } -} - -fn foo() {} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src_hash.txt deleted file mode 100644 index 0a89c39b996..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7325511787751589218 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/Nargo.toml deleted file mode 100644 index 1e640fe364d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_for_loop_over_array" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src/main.nr deleted file mode 100644 index 59e9f2dbfcb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ -fn hello(_array: [u1; N]) { - for _ in 0..N {} -} - -fn main() { - let array: [u1; 2] = [0, 1]; - hello(array); -} diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src_hash.txt deleted file mode 100644 index 589257aeee5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16683820581938585094 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/Nargo.toml deleted file mode 100644 index cf66f3fcb6d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_can_use_pub_use_item" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src/main.nr deleted file mode 100644 index 519abbfd266..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - mod foo { - mod bar { - pub fn baz() {} - } - - pub use bar::baz; - } - - fn main() { - foo::baz(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src_hash.txt deleted file mode 100644 index 50cce423ac5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12512591803201523202 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/Nargo.toml deleted file mode 100644 index fd534bced0d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_use_super" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src/main.nr deleted file mode 100644 index 12bc8367939..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn some_func() {} - - mod foo { - use super::some_func; - - pub fn bar() { - some_func(); - } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src_hash.txt deleted file mode 100644 index e7685c4b296..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15707143970392054184 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/Nargo.toml deleted file mode 100644 index e4055fe95ab..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_imports_use_super_in_path" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src/main.nr deleted file mode 100644 index 79dbccc9b5f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - fn some_func() {} - - mod foo { - pub fn func() { - super::some_func(); - } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src_hash.txt deleted file mode 100644 index 5e070d2d497..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6574682800108439514 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/Nargo.toml deleted file mode 100644 index de6581758bc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src/main.nr deleted file mode 100644 index 32358d30fa0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index = 0; - let array = [1, 2, 3]; - let _ = array[index]; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src_hash.txt deleted file mode 100644 index db7f9607411..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16181082951457948547 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/Nargo.toml deleted file mode 100644 index c1200e664ad..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src/main.nr deleted file mode 100644 index 696c028f8cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main() { - let index: u32 = 0; - let array = [1, 2, 3]; - let _ = array[index]; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src_hash.txt deleted file mode 100644 index a521451a25e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15035695236948106054 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/Nargo.toml deleted file mode 100644 index 6e8d31e541e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_call_function_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src/main.nr deleted file mode 100644 index 0add26ca47a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - struct Foo { - value: Field, - } - - fn call(f: fn(Foo) -> Field) -> Field { - f(Foo { value: 1 }) - } - - fn main() { - let _ = call(|foo| foo.value); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src_hash.txt deleted file mode 100644 index 4be481980cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5016056652643158289 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/Nargo.toml deleted file mode 100644 index 2e96c8dc405..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src/main.nr deleted file mode 100644 index 75024b07313..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Foo { - value: Field, - } - - type MyFn = fn(Foo) -> Field; - - fn call(f: MyFn) -> Field { - f(Foo { value: 1 }) - } - - fn main() { - let _ = call(|foo| foo.value); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src_hash.txt deleted file mode 100644 index 0892d802176..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -441296513579945378 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/Nargo.toml deleted file mode 100644 index 8df031a2964..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src/main.nr deleted file mode 100644 index 638949c3dd7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - struct Foo { - value: Field, - } - - fn call(t: T, f: fn(T) -> Field) -> Field { - f(t) - } - - fn main() { - let _ = call(Foo { value: 1 }, |foo| foo.value); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src_hash.txt deleted file mode 100644 index 2fae137c777..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13735848125041879025 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/Nargo.toml deleted file mode 100644 index 1ab6083b824..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_function_return_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src/main.nr deleted file mode 100644 index d4559be73ed..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - pub struct Foo { - value: Field, - } - - pub fn func() -> fn(Foo) -> Field { - |foo| foo.value - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src_hash.txt deleted file mode 100644 index 686ebc35aee..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12289058481189432114 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/Nargo.toml deleted file mode 100644 index 5001dad4b36..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src/main.nr deleted file mode 100644 index 3064416f64b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - pub struct Foo { - value: Field, - } - - pub fn func() -> fn(Foo) -> Field { - let _ = 1; - |foo| foo.value - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src_hash.txt deleted file mode 100644 index e7a6153bf70..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -279204775514779131 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/Nargo.toml deleted file mode 100644 index 99c75847105..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src/main.nr deleted file mode 100644 index 195fb45eb41..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - pub struct Foo { - value: Field, - } - - pub fn func() -> fn(Foo) -> Field { - if true { - |foo| foo.value - } else { - |foo| foo.value - } - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src_hash.txt deleted file mode 100644 index 056281e6234..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12462660476214075287 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/Nargo.toml deleted file mode 100644 index 2de5e30a8e5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src/main.nr deleted file mode 100644 index 422a12b872f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - struct Foo { - value: Field, - } - - impl Foo { - fn foo(self) -> Field { - self.value - } - } - - struct Box { - value: T, - } - - impl Box { - fn map(self, f: fn(T) -> U) -> Box { - Box { value: f(self.value) } - } - } - - fn main() { - let box = Box { value: Foo { value: 1 } }; - let _ = box.map(|foo| foo.foo()); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src_hash.txt deleted file mode 100644 index 1ff0f1f8417..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2822314868348524392 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/Nargo.toml deleted file mode 100644 index 4a87fdf5ebe..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src/main.nr deleted file mode 100644 index 350f1dd8a10..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub struct Foo { - value: Field, - } - - type FooFn = fn(Foo) -> Field; - - fn main() { - let _: FooFn = |foo| foo.value; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src_hash.txt deleted file mode 100644 index 0a2230ceb02..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -694367520073539917 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/Nargo.toml deleted file mode 100644 index 3ef1e2b3aad..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src/main.nr deleted file mode 100644 index 3bcf4342e8a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - pub struct Foo { - value: Field, - } - - type FooFn = fn(Foo) -> Field; - type FooFn2 = FooFn; - - fn main() { - let _: FooFn2 = |foo| foo.value; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src_hash.txt deleted file mode 100644 index b4ffe6bbf85..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17034931414489082603 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/Nargo.toml deleted file mode 100644 index 941ab5f3b7b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src/main.nr deleted file mode 100644 index 66cb0183ab8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo { - value: Field, - } - - fn main() { - let _: (fn(Foo) -> Field, _) = (|foo| foo.value, 1); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src_hash.txt deleted file mode 100644 index 8713ee4a0e5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -128293692059453858 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/Nargo.toml deleted file mode 100644 index 76546dc7895..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src/main.nr deleted file mode 100644 index 3304d6fc5e0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub struct Foo { - value: Field, - } - - type Alias = (fn(Foo) -> Field, Field); - - fn main() { - let _: Alias = (|foo| foo.value, 1); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src_hash.txt deleted file mode 100644 index 380002c04d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17106837663718192118 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/Nargo.toml deleted file mode 100644 index 2af1d15b063..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_infers_lambda_argument_from_variable_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src/main.nr deleted file mode 100644 index f68e3bbea51..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - pub struct Foo { - value: Field, - } - - fn main() { - let _: fn(Foo) -> Field = |foo| foo.value; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src_hash.txt deleted file mode 100644 index 48543755e67..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2329580621712852911 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/Nargo.toml deleted file mode 100644 index dbc195f93e6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_int_min_global" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src/main.nr deleted file mode 100644 index 2a1b200c21a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - global MIN: i8 = -128; - fn main() { - let _x = MIN; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src_hash.txt deleted file mode 100644 index 8869ab6f74a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_int_min_global/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1119789796717000991 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/Nargo.toml deleted file mode 100644 index 5234e9e4369..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src/main.nr deleted file mode 100644 index 201e39aa337..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - comptime fn make_new_struct(_s: TypeDefinition) -> Quoted { - quote { struct Bar {} } - } - - #[make_new_struct] - struct Foo {} - - fn main() { - let _ = Foo {}; - let _ = Bar {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src_hash.txt deleted file mode 100644 index 06b4157b7d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11034773995646342450 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/Nargo.toml deleted file mode 100644 index 14e15d3e3eb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_comptime_let" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src/main.nr deleted file mode 100644 index 31c20b8ffa0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src/main.nr +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - comptime let my_var = 2; - assert_eq(my_var, 2); - } \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src_hash.txt deleted file mode 100644 index cccf76b6c74..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1055270680797670879 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/Nargo.toml deleted file mode 100644 index a6b0d8f2bf4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src/main.nr deleted file mode 100644 index cba97a582ee..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - #[make_bar] - pub unconstrained fn foo() {} - - comptime fn make_bar(_: FunctionDefinition) -> Quoted { - quote { - pub fn bar() { - unsafe { - foo(); - } - } - } - } - - fn main() { - bar() - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src_hash.txt deleted file mode 100644 index 65a051ceac0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12816727027590883907 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/Nargo.toml deleted file mode 100644 index 48d2ab014be..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src/main.nr deleted file mode 100644 index c22fb69212e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - trait Serialize { - fn serialize() {} - } - - #[attr] - pub fn foobar() {} - - comptime fn attr(_f: FunctionDefinition) -> Quoted { - let serialized_len = 1; - // We are testing that when we unquote $serialized_len, it's unquoted - // as the token `1` and not as something else that later won't be parsed correctly - // in the context of a generic argument. - quote { - impl Serialize<$serialized_len> for Field { - fn serialize() { } - } - } - } - - fn main() {} - diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src_hash.txt deleted file mode 100644 index e69d51471ed..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8757180721842346589 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/Nargo.toml deleted file mode 100644 index df237d654e0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src/main.nr deleted file mode 100644 index e3c84d74b89..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - #[foo(32)] - comptime fn foo(_f: FunctionDefinition, i: u32) { - let y: u32 = 1; - let _ = y == i; - } - - #[bar([0; 2])] - comptime fn bar(_f: FunctionDefinition, i: [u32; 2]) { - let y: u32 = 1; - let _ = y == i[0]; - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src_hash.txt deleted file mode 100644 index 4e25d3aae66..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3312646154331934101 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/Nargo.toml deleted file mode 100644 index 38266c1930a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_mutable_self_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src/main.nr deleted file mode 100644 index 035b4160f80..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - fn main() { - let mut bar = Bar {}; - let _ = bar.bar(); - } - - struct Bar {} - - impl Bar { - fn bar(&mut self) { - let _ = self; - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src_hash.txt deleted file mode 100644 index 3e6069d32c5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18436597097079218703 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/Nargo.toml deleted file mode 100644 index ebb71957793..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_mutate_with_reference_in_lambda" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src/main.nr deleted file mode 100644 index 506c32da1e3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - let x = &mut 3; - let f = || { - *x += 2; - }; - f(); - assert(*x == 5); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src_hash.txt deleted file mode 100644 index 1cd6e355638..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -979769557617286842 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/Nargo.toml deleted file mode 100644 index 442427efcc0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src/main.nr deleted file mode 100644 index b0d778b9436..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - let mut x = &mut 3; - let f = || { - *x += 2; - }; - f(); - assert(*x == 5); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src_hash.txt deleted file mode 100644 index a6d23b4de6c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17769243179828953312 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/Nargo.toml deleted file mode 100644 index 53b7b8f71e4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src/main.nr deleted file mode 100644 index a593b45f7b9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - struct Foo {} - - fn size(_x: Foo) -> Field { - F - } - - // 2^32 - 1 - global A: Field = 4294967295; - - fn foo() -> Foo { - Foo {} - } - - fn main() { - let _ = size(foo::()); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src_hash.txt deleted file mode 100644 index 084259bf9b0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13103896881812487083 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/Nargo.toml deleted file mode 100644 index 8a2376188e7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_field_larger_than_u32" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src/main.nr deleted file mode 100644 index 1969e4527ce..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - global A: Field = 4294967297; - - fn foo() { } - - fn main() { - let _ = foo::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src_hash.txt deleted file mode 100644 index 79060201a8c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15411643955217541013 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/Nargo.toml deleted file mode 100644 index c248b22e72d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_in_function_signature" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src/main.nr deleted file mode 100644 index fc46f649ffb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - pub fn foo(arr: [Field; N]) -> [Field; N] { arr } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src_hash.txt deleted file mode 100644 index caf7fe7335a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15505021103306569465 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/Nargo.toml deleted file mode 100644 index 2efb8dcfeea..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src/main.nr deleted file mode 100644 index 60c0b2ea9cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src/main.nr +++ /dev/null @@ -1,28 +0,0 @@ - - trait Default2 { - fn default2() -> Self; - } - - struct MyType { - a: Field, - b: Field, - c: Field, - d: T, - } - - // Make sure that `T` is placed before `N` as we want to test that the order of the generics is correctly maintained. - // `N` is used first in the trait impl generics (`Deserialize for MyType`). - // We want to make sure that the compiler correctly accounts for that `N` has a numeric kind - // while `T` has a normal kind. - impl Deserialize for MyType where T: Default2 { - fn deserialize(fields: [Field; N]) -> Self { - MyType { a: fields[0], b: fields[1], c: fields[2], d: T::default2() } - } - } - - trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src_hash.txt deleted file mode 100644 index 4d997371ec0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4089018360465534522 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/Nargo.toml deleted file mode 100644 index e61a6697047..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_used_in_nested_type_pass" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src/main.nr deleted file mode 100644 index 19569cf9741..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - pub struct NestedNumeric { - a: Field, - b: InnerNumeric - } - pub struct InnerNumeric { - inner: [u64; N], - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src_hash.txt deleted file mode 100644 index 0e8d014a7b0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1131080327764307189 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/Nargo.toml deleted file mode 100644 index c943ba638ad..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_used_in_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src/main.nr deleted file mode 100644 index aa7cce247e1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - struct MyType { - a: Field, - b: Field, - c: Field, - d: T, - } - - impl Deserialize for MyType { - fn deserialize(fields: [Field; N], other: T) -> Self { - MyType { a: fields[0], b: fields[1], c: fields[2], d: other } - } - } - - trait Deserialize { - fn deserialize(fields: [Field; N], other: T) -> Self; - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src_hash.txt deleted file mode 100644 index 6f87611eaef..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14408009611869977018 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/Nargo.toml deleted file mode 100644 index e7ca88bc41d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_used_in_turbofish" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src/main.nr deleted file mode 100644 index 71b7cdbf4d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - pub fn double() -> u32 { - // Used as an expression - N * 2 - } - - pub fn double_numeric_generics_test() { - // Example usage of a numeric generic arguments. - assert(double::<9>() == 18); - assert(double::<7 + 8>() == 30); - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src_hash.txt deleted file mode 100644 index 6adc299e1c9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17522352581291641563 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/Nargo.toml deleted file mode 100644 index 6c8c4289fbf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_numeric_generic_used_in_where_clause" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src/main.nr deleted file mode 100644 index 610f662dcc4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; - } - - pub fn read() -> T where T: Deserialize { - let mut fields: [Field; N] = [0; N]; - for i in 0..N { - fields[i] = i as Field + 1; - } - T::deserialize(fields) - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src_hash.txt deleted file mode 100644 index 0fdad3c6b4f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12155710116880740833 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/Nargo.toml deleted file mode 100644 index 3298e46941f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_operators_in_global_used_in_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src/main.nr deleted file mode 100644 index e6f47f0772e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - global ONE: u32 = 1; - global COUNT: u32 = ONE + 2; - fn main() { - let _array: [Field; COUNT] = [1, 2, 3]; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src_hash.txt deleted file mode 100644 index f55bbdda151..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -536534280700773860 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/Nargo.toml deleted file mode 100644 index 3ac447a69f3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_regression_7088" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src/main.nr deleted file mode 100644 index 93333fb77e8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - struct U60Repr {} - - impl U60Repr { - fn new(_: [Field; N * NumFieldSegments]) -> Self { - U60Repr {} - } - } - - fn main() { - let input: [Field; 6] = [0; 6]; - let _: U60Repr<3, 6> = U60Repr::new(input); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src_hash.txt deleted file mode 100644 index d44d84a689d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_regression_7088/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1405882650609649632 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/Nargo.toml deleted file mode 100644 index dd64e660565..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_basic_closure" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src/main.nr deleted file mode 100644 index 14713ced16c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x : Field) -> pub Field { - let closure = |y| y + x; - closure(x) - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src_hash.txt deleted file mode 100644 index ff44f3c07f7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6217072962969255851 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/Nargo.toml deleted file mode 100644 index 39bc650af99..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_basic_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src/main.nr deleted file mode 100644 index 24d6a5f3f90..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x : Field) { - let y = x + x; - assert(y == x); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src_hash.txt deleted file mode 100644 index 07f4f3d037b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2147560864459365300 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/Nargo.toml deleted file mode 100644 index f725810876c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_call_expr" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src/main.nr deleted file mode 100644 index b949008307a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main(x : Field) { - let _z = foo(x); - } - - fn foo(x : Field) -> Field { - x - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src_hash.txt deleted file mode 100644 index 85e2931283a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5358705612272846906 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/Nargo.toml deleted file mode 100644 index 6fc453f759c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_complex_closures_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src/main.nr deleted file mode 100644 index b79a36cbbf6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src/main.nr +++ /dev/null @@ -1,24 +0,0 @@ - - fn main(x: Field) -> pub Field { - let closure_without_captures = |x: Field| -> Field { x + x }; - let a = closure_without_captures(1); - - let closure_capturing_a_param = |y: Field| -> Field { y + x }; - let b = closure_capturing_a_param(2); - - let closure_capturing_a_local_var = |y: Field| -> Field { y + b }; - let c = closure_capturing_a_local_var(3); - - let closure_with_transitive_captures = |y: Field| -> Field { - let d = 5; - let nested_closure = |z: Field| -> Field { - let doubly_nested_closure = |w: Field| -> Field { w + x + b }; - a + z + y + d + x + doubly_nested_closure(4) + x + y - }; - let res = nested_closure(5); - res - }; - - a + b + c + closure_with_transitive_captures(6) - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src_hash.txt deleted file mode 100644 index 6d51699f6e3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11801146934498463416 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/Nargo.toml deleted file mode 100644 index f6ac269a973..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_complex_closures_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src/main.nr deleted file mode 100644 index b79a36cbbf6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src/main.nr +++ /dev/null @@ -1,24 +0,0 @@ - - fn main(x: Field) -> pub Field { - let closure_without_captures = |x: Field| -> Field { x + x }; - let a = closure_without_captures(1); - - let closure_capturing_a_param = |y: Field| -> Field { y + x }; - let b = closure_capturing_a_param(2); - - let closure_capturing_a_local_var = |y: Field| -> Field { y + b }; - let c = closure_capturing_a_local_var(3); - - let closure_with_transitive_captures = |y: Field| -> Field { - let d = 5; - let nested_closure = |z: Field| -> Field { - let doubly_nested_closure = |w: Field| -> Field { w + x + b }; - a + z + y + d + x + doubly_nested_closure(4) + x + y - }; - let res = nested_closure(5); - res - }; - - a + b + c + closure_with_transitive_captures(6) - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src_hash.txt deleted file mode 100644 index 6d51699f6e3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11801146934498463416 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/Nargo.toml deleted file mode 100644 index 933f42b1ca0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_empty_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src/main.nr deleted file mode 100644 index d26bf0265bc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src_hash.txt deleted file mode 100644 index fdf2493ace5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9818629014439486947 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/Nargo.toml deleted file mode 100644 index 065fb4cac36..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_for_expr" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src/main.nr deleted file mode 100644 index f424da02afa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main(x : u64) { - for i in 1..20 { - let _z = x + i; - }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src_hash.txt deleted file mode 100644 index f8a7b6503ca..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15575337949672372373 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/Nargo.toml deleted file mode 100644 index 5fabb565dfa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_for_expr_incl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src/main.nr deleted file mode 100644 index 975bc12a72d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - fn main(x : u64) { - for i in 1..=20 { - let _z = x + i; - }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src_hash.txt deleted file mode 100644 index 6c4815d19df..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2210224046773854936 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/Nargo.toml deleted file mode 100644 index 30435c14a86..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_literal_expr" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src/main.nr deleted file mode 100644 index fdf43fd2ded..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x : Field) { - let y = 5; - assert(y == x); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src_hash.txt deleted file mode 100644 index a846a7f4001..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1760695516686861205 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/Nargo.toml deleted file mode 100644 index bd9765cb30b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_prefix_expr" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src/main.nr deleted file mode 100644 index 922537f61ff..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main(x : Field) { - let _y = -x; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src_hash.txt deleted file mode 100644 index ec244be9048..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7469149966854697883 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/Nargo.toml deleted file mode 100644 index c8069b6a81a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_shadowing" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src/main.nr deleted file mode 100644 index 5b18d0a4ceb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - fn main(x : Field) { - let x = foo(x); - let x = x; - let (x, x) = (x, x); - let _ = x; - } - - fn foo(x : Field) -> Field { - x - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src_hash.txt deleted file mode 100644 index 3049f83546f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4036380123677035212 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/Nargo.toml deleted file mode 100644 index 58c682e70fb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_simplified_closure" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src/main.nr deleted file mode 100644 index 5f866f841d7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - fn do_closure(x: Field) -> Field { - let y = x; - let ret_capture = || { - y - }; - ret_capture() - } - - fn main(x: Field) { - assert(do_closure(x) == 100); - } - - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src_hash.txt deleted file mode 100644 index 7cf78330dbd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9358297182416323923 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/Nargo.toml deleted file mode 100644 index 06d7202245e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolve_unused_var" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src/main.nr deleted file mode 100644 index 283ade566b4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main(x : Field) { - let y = x + x; - assert(x == x); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src_hash.txt deleted file mode 100644 index 15a9355ca98..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10300400526712647855 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/Nargo.toml deleted file mode 100644 index a9abbc12f79..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_resolves_generic_type_argument_via_self" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src/main.nr deleted file mode 100644 index 8435d1be40f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - pub struct Foo {} - - impl Foo { - fn one() { - Self::two(); - } - - fn two() {} - } - - fn main() { - Foo::::one(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src_hash.txt deleted file mode 100644 index 575e1465dcb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17240133649369520788 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/Nargo.toml deleted file mode 100644 index 0c9c6b1f904..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_same_name_in_types_and_values_namespace_works" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src/main.nr deleted file mode 100644 index 9429943e48e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - struct foo {} - - fn foo(x: foo) -> foo { - x - } - - fn main() { - let x: foo = foo {}; - let _ = foo(x); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src_hash.txt deleted file mode 100644 index cf3bdad5a13..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17640324439011329444 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/Nargo.toml deleted file mode 100644 index 1d1adb11ba9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_specify_function_types_with_turbofish" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src/main.nr deleted file mode 100644 index 8fd0cf07c4b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src/main.nr +++ /dev/null @@ -1,25 +0,0 @@ - - trait Default2 { - fn default2() -> Self; - } - - impl Default2 for Field { - fn default2() -> Self { 0 } - } - - impl Default2 for u64 { - fn default2() -> Self { 0 } - } - - // Need the above as we don't have access to the stdlib here. - // We also need to construct a concrete value of `U` without giving away its type - // as otherwise the unspecified type is ignored. - - fn generic_func() -> (T, U) where T: Default2, U: Default2 { - (T::default2(), U::default2()) - } - - fn main() { - let _ = generic_func::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src_hash.txt deleted file mode 100644 index 5debbd538a1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17552128582459680494 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/Nargo.toml deleted file mode 100644 index 23bee51622e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_specify_method_types_with_turbofish" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src/main.nr deleted file mode 100644 index 12b87b0b218..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src/main.nr +++ /dev/null @@ -1,28 +0,0 @@ - - trait Default2 { - fn default2() -> Self; - } - - impl Default2 for Field { - fn default2() -> Self { 0 } - } - - // Need the above as we don't have access to the stdlib here. - // We also need to construct a concrete value of `U` without giving away its type - // as otherwise the unspecified type is ignored. - - struct Foo { - inner: T - } - - impl Foo { - fn generic_method(_self: Self) -> U where U: Default2 { - U::default2() - } - } - - fn main() { - let foo: Foo = Foo { inner: 1 }; - let _ = foo.generic_method::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src_hash.txt deleted file mode 100644 index 6fca84156fa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7598914464961122726 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/Nargo.toml deleted file mode 100644 index 5141fc51221..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_static_method_with_generics_on_type_and_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src/main.nr deleted file mode 100644 index 5e6ec591c98..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Foo {} - - impl Foo { - fn static_method() {} - } - - fn main() { - Foo::::static_method::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src_hash.txt deleted file mode 100644 index 1e075a99d50..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1157250322016333900 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/Nargo.toml deleted file mode 100644 index 889fb07f646..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_struct_array_len" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src/main.nr deleted file mode 100644 index 9907511a60a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - struct Array { - inner: [T; N], - } - - impl Array { - pub fn len(self) -> u32 { - N as u32 - } - } - - fn main(xs: [Field; 2]) { - let ys = Array { - inner: xs, - }; - assert(ys.len() == 2); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src_hash.txt deleted file mode 100644 index 96d7108d383..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_struct_array_len/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9669795744363652316 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/Nargo.toml deleted file mode 100644 index 95a367bf384..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_subtract_to_int_min" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src/main.nr deleted file mode 100644 index 769a2af3cee..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - fn main() { - let _x: i8 = comptime { - let y: i8 = -127; - let z = y - 1; - z - }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src_hash.txt deleted file mode 100644 index a2f622ebf71..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3402299894987600373 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/Nargo.toml deleted file mode 100644 index 2f9d4025fc3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_test_impl_self_within_default_def" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src/main.nr deleted file mode 100644 index 9a1f83e1e20..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - trait Bar { - fn ok(self) -> Self; - - fn ref_ok(self) -> Self { - self.ok() - } - } - - impl Bar for (T, T) where T: Bar { - fn ok(self) -> Self { - self - } - } - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src_hash.txt deleted file mode 100644 index c54345fb95e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12807592953776961455 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/Nargo.toml deleted file mode 100644 index d80742b9d79..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_constraint_on_tuple_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src/main.nr deleted file mode 100644 index 9d764cf6d1d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - trait Foo { - fn foo(self, x: A) -> bool; - } - - pub fn bar(x: (T, U), y: V) -> bool where (T, U): Foo { - x.foo(y) - } - - fn main() {} \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src_hash.txt deleted file mode 100644 index 2920a87fae2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13364804107271538574 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/Nargo.toml deleted file mode 100644 index 79d84655d9c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src/main.nr deleted file mode 100644 index 4d63e7957c7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub(crate) trait Foo { - fn foo(self, x: A) -> bool; - } - - pub fn bar(x: (T, U), y: V) -> bool where (T, U): Foo { - x.foo(y) - } - - fn main() {} \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src_hash.txt deleted file mode 100644 index b6c0de68dcb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3160955467231725696 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/Nargo.toml deleted file mode 100644 index 940d548f896..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src/main.nr deleted file mode 100644 index 73e9d642efa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src/main.nr +++ /dev/null @@ -1,27 +0,0 @@ - - trait One { - fn one(self) -> i32; - } - - impl One for i32 { - fn one(self) -> i32 { - self - } - } - - trait Two { - fn two(self) -> i32; - } - - impl Two for T where T: One { - fn two(self) -> i32 { - self.one() + 1 - } - } - - pub fn use_it(t: T) -> i32 where T: Two { - Two::two(t) - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src_hash.txt deleted file mode 100644 index d9b951fa958..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1459174007803187384 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/Nargo.toml deleted file mode 100644 index b7c9142deb6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src/main.nr deleted file mode 100644 index e17c868263d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src/main.nr +++ /dev/null @@ -1,35 +0,0 @@ - - trait One { - fn one(self) -> i32; - } - - impl One for i32 { - fn one(self) -> i32 { - let _ = self; - 1 - } - } - - trait Two { - fn two(self) -> i32; - } - - impl Two for T where T: One { - fn two(self) -> i32 { - self.one() + 1 - } - } - - impl Two for u32 { - fn two(self) -> i32 { - let _ = self; - 0 - } - } - - pub fn use_it(t: u32) -> i32 { - Two::two(t) - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src_hash.txt deleted file mode 100644 index e7863215812..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8219813237091816431 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/Nargo.toml deleted file mode 100644 index 83d0f4e6399..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src/main.nr deleted file mode 100644 index cd8067f1b53..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Foo { - unconstrained fn identity(self) -> Self { - self - } - - unconstrained fn foo(self) -> Field; - } - - impl Foo for u64 { - unconstrained fn foo(self) -> Field { - self as Field - } - } - - unconstrained fn main() { - assert_eq(2.foo(), 2.identity() as Field); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src_hash.txt deleted file mode 100644 index 1cbf6e7ac04..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7818968649708985335 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/Nargo.toml deleted file mode 100644 index 49e9a89a659..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src/main.nr deleted file mode 100644 index 96c260031f4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - pub trait Trait { - let N: u32; - - fn foo() -> u32; - } - - impl Trait for i32 { - let N: u32 = 10; - - fn foo() -> u32 { - Self::N - } - } - - fn main() { - let _ = i32::foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src_hash.txt deleted file mode 100644 index 199c844d5c4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16784421911760213987 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/Nargo.toml deleted file mode 100644 index 2249089f52d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src/main.nr deleted file mode 100644 index 88a396eed07..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - pub trait Trait { - let N: u32; - - fn foo() -> u32 { - Self::N - } - } - - impl Trait for i32 { - let N: u32 = 10; - } - - fn main() { - let _ = i32::foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src_hash.txt deleted file mode 100644 index 700a2054a63..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13003701006269760980 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/Nargo.toml deleted file mode 100644 index 74d0fe4a92e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_allows_renaming_trait_during_import" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src/main.nr deleted file mode 100644 index 94ba3795163..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - mod trait_mod { - pub trait Foo { - fn foo(_: Self) {} - } - - impl Foo for Field {} - } - - use trait_mod::Foo as FooTrait; - - fn main(x: Field) { - x.foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src_hash.txt deleted file mode 100644 index 8b18a11632a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12030311253454528402 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/Nargo.toml deleted file mode 100644 index 1232815708e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src/main.nr deleted file mode 100644 index ef30fb8952f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - pub trait Trait { - let N: u32; - } - impl Trait for Field { - let N: u32 = 1; - } - impl Trait for i32 { - let N: u32 = 999; - } - pub fn load() - where - T: Trait, - { - let _ = ::N; - } - fn main() { - let _ = load::(); - let _ = load::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src_hash.txt deleted file mode 100644 index 783ebcf9e32..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9443715578143934196 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/Nargo.toml deleted file mode 100644 index 3b06b90f632..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src/main.nr deleted file mode 100644 index 539d43b8ae0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - pub trait Trait { - let N: u32; - } - impl Trait for Field { - let N: u32 = 1; - } - impl Trait for i32 { - let N: u32 = 999; - } - pub fn load() - where - T: Trait, - { - let _ = T::N; - } - fn main() { - let _ = load::(); - let _ = load::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src_hash.txt deleted file mode 100644 index 0b78fe1df97..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16608130489655736433 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/Nargo.toml deleted file mode 100644 index 1b63ec13b18..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_as_trait_path_in_expression" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src/main.nr deleted file mode 100644 index a3facd05d29..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src/main.nr +++ /dev/null @@ -1,28 +0,0 @@ - - fn main() { - cursed::(); - } - - fn cursed() - where T: Foo + Foo2 - { - ::bar(1); - ::bar(()); - - // Use each function with different generic arguments - ::bar(()); - } - - trait Foo { fn bar(x: U); } - trait Foo2 { fn bar(x: U); } - - pub struct S {} - - impl Foo for S { - fn bar(_x: Z) {} - } - - impl Foo2 for S { - fn bar(_x: Z) {} - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src_hash.txt deleted file mode 100644 index ba672b4f14c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17397791030327233388 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/Nargo.toml deleted file mode 100644 index bd86ebadf0c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_as_trait_path_self_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src/main.nr deleted file mode 100644 index 56726a8823e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - pub trait BigCurve { - fn one() -> Self; - } - - struct Bn254 {} - - impl BigCurve for Bn254 { - fn one() -> Self { Bn254 {} } - } - - fn main() { - let _ = >::one(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src_hash.txt deleted file mode 100644 index 5dfcdb992b6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14346112081613033525 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/Nargo.toml deleted file mode 100644 index bd8f81d78e1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_mul_of_other_constants" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src/main.nr deleted file mode 100644 index 17541aba9f8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src/main.nr +++ /dev/null @@ -1,29 +0,0 @@ - - pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); - } - - impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Field; Self::N]) {} - } - - impl Deserialize for [T; M] - where - T: Deserialize, - { - let N: u32 = ::N * M; - - fn deserialize(_: [Field; Self::N]) {} - } - - pub fn foo() { - let f = <[Field; X] as Deserialize>::deserialize; - let _ = f([0; X]); - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src_hash.txt deleted file mode 100644 index 02432ad7421..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7115975134939714584 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/Nargo.toml deleted file mode 100644 index c26762acabd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src/main.nr deleted file mode 100644 index e067e14e941..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src/main.nr +++ /dev/null @@ -1,29 +0,0 @@ - - trait Serialize { - let N: u32; - - fn serialize(self) -> [Field; N]; - } - - impl Serialize for [Field; M] { - let N: u32 = M; - - fn serialize(self) -> [Field; Self::N] { - self - } - } - - struct Foo {} - - impl Serialize for Foo { - let N: u32 = <[Field; 3] as Serialize>::N; - - fn serialize(self) -> [Field; Self::N] { - [0; Self::N] - } - } - - fn main() { - let _ = Foo {}.serialize(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src_hash.txt deleted file mode 100644 index a3796d10919..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15275481237971864109 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/Nargo.toml deleted file mode 100644 index 0c6674fc72e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src/main.nr deleted file mode 100644 index 7b2ba4b533c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - trait Serialize { - let N: u32; - } - - impl Serialize for [Field; M] { - let N: u32 = M; - } - - fn main() { - let _ = <[Field; 3] as Serialize>::N; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src_hash.txt deleted file mode 100644 index 90e1d4ebe2e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1740789576649015697 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/Nargo.toml deleted file mode 100644 index 27837cb5f6d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_sum_of_other_constants" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src/main.nr deleted file mode 100644 index 11aa3020485..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src/main.nr +++ /dev/null @@ -1,29 +0,0 @@ - - pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; Self::N]); - } - - impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Field; Self::N]) {} - } - - struct Gen {} - - impl Deserialize for Gen - where - T: Deserialize, - { - let N: u32 = ::N + ::N; - - fn deserialize(_: [Field; Self::N]) {} - } - - fn main() { - let f = as Deserialize>::deserialize; - f([0; 2]); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src_hash.txt deleted file mode 100644 index c608ec9acb9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13066449735956409492 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/Nargo.toml deleted file mode 100644 index 98dcfb5a41a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src/main.nr deleted file mode 100644 index 03bc6b2657b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src/main.nr +++ /dev/null @@ -1,29 +0,0 @@ - - pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); - } - - impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Field; Self::N]) {} - } - - impl Deserialize for [T; M] - where - T: Deserialize, - { - let N: u32 = ::N + M; - - fn deserialize(_: [Field; Self::N]) {} - } - - pub fn foo() { - let f = <[Field; X] as Deserialize>::deserialize; - let _ = f([0; X + 1]); - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src_hash.txt deleted file mode 100644 index 3a92ffd25d4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15087560913255529299 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/Nargo.toml deleted file mode 100644 index 771161bbfe4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src/main.nr deleted file mode 100644 index 3a8610ba0eb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src/main.nr +++ /dev/null @@ -1,29 +0,0 @@ - - pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); - } - - impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Field; Self::N]) {} - } - - impl Deserialize for [T; M] - where - T: Deserialize, - { - let N: u32 = ::N + M - 1; - - fn deserialize(_: [Field; Self::N]) {} - } - - pub fn foo() { - let f = <[Field; X] as Deserialize>::deserialize; - let _ = f([0; X]); - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src_hash.txt deleted file mode 100644 index 3bb3e03cdbf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2895288838149253593 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/Nargo.toml deleted file mode 100644 index 8194972ab2d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src/main.nr deleted file mode 100644 index f1d9f70fd5a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - use private_mod::Foo; - - fn main() { - let _ = Bar::foo(); - } - - pub struct Bar { - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src_hash.txt deleted file mode 100644 index c95c9ea0f6b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13585185402766655093 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/Nargo.toml deleted file mode 100644 index 5a2a4353b30..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src/main.nr deleted file mode 100644 index e42d0e6cf1d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src/main.nr +++ /dev/null @@ -1,32 +0,0 @@ - - use private_mod::Foo; - - fn main() { - let _ = Bar::foo(); - } - - pub struct Bar { - } - - mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - - pub trait Foo2 { - fn foo() -> i32; - } - - impl Foo2 for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src_hash.txt deleted file mode 100644 index 968839f5ea9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5314177057093736683 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/Nargo.toml deleted file mode 100644 index c09cae40895..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src/main.nr deleted file mode 100644 index c2b20c20793..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src/main.nr +++ /dev/null @@ -1,25 +0,0 @@ - - mod moo { - use super::public_mod::Foo; - - pub fn method() { - let _ = super::Bar::foo(); - } - } - - fn main() {} - - pub struct Bar {} - - pub mod public_mod { - pub trait Foo { - fn foo() -> i32; - } - - impl Foo for super::Bar { - fn foo() -> i32 { - 42 - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src_hash.txt deleted file mode 100644 index 6f0ee2ed7f7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9336246850839217717 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/Nargo.toml deleted file mode 100644 index 21bba908f20..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src/main.nr deleted file mode 100644 index 220bc2a9611..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src/main.nr +++ /dev/null @@ -1,24 +0,0 @@ - - use private_mod::Foo; - - fn main() { - let bar = Bar { x: 42 }; - let _ = bar.foo(); - } - - pub struct Bar { - x: i32, - } - - mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } - - impl Foo for super::Bar { - fn foo(self) -> i32 { - self.x - } - } - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src_hash.txt deleted file mode 100644 index fecb3c663b0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15368856329611733389 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/Nargo.toml deleted file mode 100644 index b4bd8fe5a9a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src/main.nr deleted file mode 100644 index a4915cc3b88..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - struct Foo { - inner: Field, - } - - trait Converter { - fn convert(self) -> N; - } - - impl Converter for Foo { - fn convert(self) -> Field { - self.inner - } - } - - impl Converter for Foo { - fn convert(self) -> u32 { - self.inner as u32 - } - } - - fn main() { - let foo = Foo { inner: 42 }; - let _: u32 = foo.convert(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src_hash.txt deleted file mode 100644 index 465d66b5813..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5642279843358863679 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/Nargo.toml deleted file mode 100644 index 559ffbf1b01..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src/main.nr deleted file mode 100644 index 4d63db951dc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src/main.nr +++ /dev/null @@ -1,28 +0,0 @@ - - pub trait Greeter { - fn greet(self); - } - - pub trait Foo - where - T: Greeter, - { - fn greet(object: U) - where - U: Greeter, - { - object.greet(); - } - } - - pub struct SomeGreeter; - impl Greeter for SomeGreeter { - fn greet(self) {} - } - - pub struct Bar; - - impl Foo for Bar {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src_hash.txt deleted file mode 100644 index add35dea8f3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14683376263639973219 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/Nargo.toml deleted file mode 100644 index b82368f8164..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src/main.nr deleted file mode 100644 index a96f48eb2d7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - pub trait Greeter { - fn greet(self); - } - - pub trait Foo where T: Greeter { - fn greet(object: T) { - object.greet(); - } - } - - pub struct Bar; - - impl Foo for Bar where T: Greeter { - } - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src_hash.txt deleted file mode 100644 index 06016758124..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15052993081026309789 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/Nargo.toml deleted file mode 100644 index 1acd9eb1903..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src/main.nr deleted file mode 100644 index a0167342f13..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - trait Trait { - let N: u32; - } - - pub struct Foo {} - - impl Trait for Foo { - let N: u32 = 1; - } - - fn main() { - foo::(); - } - - fn foo() - where - T: Trait, - {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src_hash.txt deleted file mode 100644 index 1f87cb28a80..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4468705392837049056 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/Nargo.toml deleted file mode 100644 index 1a5226f3b8a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src/main.nr deleted file mode 100644 index 07e61ba0483..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src/main.nr +++ /dev/null @@ -1,24 +0,0 @@ - - trait Trait { - let N: u32; - } - - pub struct Foo {} - - impl Trait for Foo { - let N: u32 = 1; - } - - pub struct Bar {} - - impl Bar { - fn bar(self) where U: Trait { - let _ = self; - } - } - - fn main() { - let bar = Bar:: {}; - bar.bar::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src_hash.txt deleted file mode 100644 index 97fd4752ffa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -4358216201986954875 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/Nargo.toml deleted file mode 100644 index 2b2ed6c3df8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_regression_6314_double_inheritance" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src/main.nr deleted file mode 100644 index abc3685ccd3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src/main.nr +++ /dev/null @@ -1,32 +0,0 @@ - - trait Foo { - fn foo(self) -> Self; - } - - trait Bar { - fn bar(self) -> Self; - } - - trait Baz: Foo + Bar {} - - impl Baz for T where T: Foo + Bar {} - - fn baz(x: T) -> T where T: Baz { - x.foo().bar() - } - - impl Foo for Field { - fn foo(self) -> Self { - self + 1 - } - } - - impl Bar for Field { - fn bar(self) -> Self { - self + 2 - } - } - - fn main() { - assert(0.foo().bar() == baz(0)); - } \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src_hash.txt deleted file mode 100644 index 4723d4ed262..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5931852035054626472 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/Nargo.toml deleted file mode 100644 index 42387b4a9c1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_regression_6314_single_inheritance" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src/main.nr deleted file mode 100644 index 0fe4885660f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - trait Foo { - fn foo(self) -> Self; - } - - trait Baz: Foo {} - - impl Baz for T where T: Foo {} - - fn main() { } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src_hash.txt deleted file mode 100644 index e52e061c08b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7429775967970821264 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/Nargo.toml deleted file mode 100644 index 2e0488ea34c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_regression_6530" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src/main.nr deleted file mode 100644 index 67fc837d82f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src/main.nr +++ /dev/null @@ -1,38 +0,0 @@ - - pub trait From2 { - fn from2(input: T) -> Self; - } - - pub trait Into2 { - fn into2(self) -> T; - } - - impl Into2 for U - where - T: From2, - { - fn into2(self) -> T { - T::from2(self) - } - } - - struct Foo { - inner: Field, - } - - impl Into2 for Foo { - fn into2(self) -> Field { - self.inner - } - } - - fn main() { - let foo = Foo { inner: 0 }; - - // This works: - let _: Field = Into2::::into2(foo); - - // This was failing with 'No matching impl': - let _: Field = foo.into2(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src_hash.txt deleted file mode 100644 index 95b5fdc2c8f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3754403911844394325 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/Nargo.toml deleted file mode 100644 index 530092561d9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_regression_9245_small_code" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src/main.nr deleted file mode 100644 index 9e1cbc375cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - pub trait From2 {} - - impl From2 for T {} - - pub trait Into2 {} - - impl From2 for Field {} - - impl, U> Into2 for U {} - - fn foo>() {} - - fn main() { - foo::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src_hash.txt deleted file mode 100644 index 29f455584ba..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14724163626332314258 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/Nargo.toml deleted file mode 100644 index c7ea82d14f4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src/main.nr deleted file mode 100644 index dbe133751f8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - trait Foo {} - trait Bar: Foo {} - - pub fn foo() - where - T: Bar, - {} - - pub fn bar() - where - T: Foo, - {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src_hash.txt deleted file mode 100644 index 261ca26f2e4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1303707194280575932 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/Nargo.toml deleted file mode 100644 index 198fd721b94..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src/main.nr deleted file mode 100644 index ad2607720e9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - mod trait_mod { - pub trait Foo { - fn foo(_: Self) {} - } - - impl Foo for Field {} - } - - use trait_mod::Foo as FooTrait; - - pub struct Foo {} - - fn main(x: Field) { - x.foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src_hash.txt deleted file mode 100644 index 715e0cedb11..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5292036983454363518 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/Nargo.toml deleted file mode 100644 index 0ad19fddbaf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_returns_self_in_trait_method_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src/main.nr deleted file mode 100644 index 326574e68d7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - pub trait MagicNumber { - fn from_magic_value() -> Self; - fn from_value() -> Self; - } - - pub struct Foo {} - - impl MagicNumber for Foo { - fn from_magic_value() -> Foo { - Self::from_value() - } - fn from_value() -> Self { - Self {} - } - } - - pub struct Bar {} - - impl MagicNumber for Bar { - fn from_magic_value() -> Bar { - Self::from_value() - } - fn from_value() -> Self { - Self {} - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src_hash.txt deleted file mode 100644 index 6bf949f4228..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17232156059324941241 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/Nargo.toml deleted file mode 100644 index 94e078b1f36..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_returns_self_in_trait_method_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src/main.nr deleted file mode 100644 index d95fee88270..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - pub trait MagicNumber { - fn from_magic_value() -> Self { - Self::from_value() - } - fn from_value() -> Self; - } - - pub struct Foo {} - - impl MagicNumber for Foo { - fn from_value() -> Self { - Self {} - } - } - - pub struct Bar {} - - impl MagicNumber for Bar { - fn from_value() -> Self { - Self {} - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src_hash.txt deleted file mode 100644 index ec3892fd5fe..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6196417284918689669 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/Nargo.toml deleted file mode 100644 index a6dbde6eace..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_returns_self_in_trait_method_3" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src/main.nr deleted file mode 100644 index 6d737718e74..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src/main.nr +++ /dev/null @@ -1,22 +0,0 @@ - - pub trait MagicNumber { - fn from_magic_value() -> Self { - Self::from_value() - } - fn from_value() -> Self; - } - - impl MagicNumber for i32 { - fn from_value() -> Self { - 0 - } - } - - impl MagicNumber for i64 { - fn from_value() -> Self { - 0 - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src_hash.txt deleted file mode 100644 index 9e032acae0d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -960084401282402797 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/Nargo.toml deleted file mode 100644 index 23c61a090d4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src/main.nr deleted file mode 100644 index 961b1b13f19..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src/main.nr +++ /dev/null @@ -1,34 +0,0 @@ - - // There used to be a bug where this unrelated definition would cause compilation to fail - // with a "No impl found" error. - pub trait Trait {} - - trait Serialize { - let Size: u32; - - fn serialize(self); - } - - impl Serialize for (A, B) - where - A: Serialize, - B: Serialize, - { - let Size: u32 = ::Size + ::Size; - - fn serialize(self: Self) { - self.0.serialize(); - } - } - - impl Serialize for Field { - let Size: u32 = 1; - - fn serialize(self) { } - } - - fn main() { - let x = (((1, 2), 5), 9); - x.serialize(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src_hash.txt deleted file mode 100644 index bff186806d2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2680920423078649375 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/Nargo.toml deleted file mode 100644 index 3b3aa334041..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src/main.nr deleted file mode 100644 index 199e2597064..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - pub trait Other { - fn other(self) { - let _ = self; - } - } - - pub trait Trait { - fn foo(x: T) { - x.other(); - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src_hash.txt deleted file mode 100644 index 63eae9b7724..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12397208803698849218 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/Nargo.toml deleted file mode 100644 index f0f7917b2f0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src/main.nr deleted file mode 100644 index c5167c2d401..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - trait Foo { - fn foo(self) -> Self; - } - - trait Bar { - fn bar(self) -> T; - } - - trait Baz = Foo + Bar; - - fn baz(x: T) -> U where T: Baz { - x.foo().bar() - } - - impl Foo for Field { - fn foo(self) -> Self { - self + 1 - } - } - - impl Bar for Field { - fn bar(self) -> bool { - true - } - } - - fn main() { - assert(0.foo().bar() == baz(0)); - } \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src_hash.txt deleted file mode 100644 index efe84d38414..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3091700691272546947 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/Nargo.toml deleted file mode 100644 index 14148933611..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_single_member" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src/main.nr deleted file mode 100644 index 110ae71207c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - trait Foo { - fn foo(self) -> Self; - } - - trait Baz = Foo; - - impl Foo for Field { - fn foo(self) -> Self { self } - } - - fn baz(x: T) -> T where T: Baz { - x.foo() - } - - fn main() { - let x: Field = 0; - let _ = baz(x); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src_hash.txt deleted file mode 100644 index b4e3a00e700..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9826966333179110168 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/Nargo.toml deleted file mode 100644 index d733738e5d9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_alias_two_members" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src/main.nr deleted file mode 100644 index 2c1a1cf9c17..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - pub trait Foo { - fn foo(self) -> Self; - } - - pub trait Bar { - fn bar(self) -> Self; - } - - pub trait Baz = Foo + Bar; - - fn baz(x: T) -> T where T: Baz { - x.foo().bar() - } - - impl Foo for Field { - fn foo(self) -> Self { - self + 1 - } - } - - impl Bar for Field { - fn bar(self) -> Self { - self + 2 - } - } - - fn main() { - assert(0.foo().bar() == baz(0)); - } \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src_hash.txt deleted file mode 100644 index 7a1bd8e21cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17407346379305079644 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/Nargo.toml deleted file mode 100644 index ab8c98ca309..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_bound_constraining_two_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src/main.nr deleted file mode 100644 index bf1048ed206..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - pub trait Foo {} - - pub trait Baz - where - T: Foo, - {} - - pub struct HasFoo1 {} - impl Foo<()> for HasFoo1 {} - - pub struct HasBaz1 {} - impl Baz for HasBaz1 {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src_hash.txt deleted file mode 100644 index ee541a8b6d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10102510944933110504 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/Nargo.toml deleted file mode 100644 index 2b1d59e3339..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_bound_on_implementing_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src/main.nr deleted file mode 100644 index 4b06c722961..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src/main.nr +++ /dev/null @@ -1,30 +0,0 @@ - - struct GenericStruct { - inner: T, - } - - trait Foo { - fn foo() {} - } - - impl Foo for Field {} - - impl Foo for GenericStruct {} - - trait Bar { - fn bar(); - } - - impl Bar for GenericStruct - where - GenericStruct: Foo, - { - fn bar() { - ::foo() - } - } - - fn main() { - GenericStruct::::bar(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src_hash.txt deleted file mode 100644 index 2383f4f32f9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2231276066202450082 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/Nargo.toml deleted file mode 100644 index 4f86c0a1934..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_bound_with_associated_constant" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src/main.nr deleted file mode 100644 index 4de7ff43329..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - pub trait Other { - let N: u32; - } - - pub trait Trait - where - T: Other, - {} - - impl Other for Field { - let N: u32 = 1; - } - - impl Trait for i32 {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src_hash.txt deleted file mode 100644 index c6cb66299c4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1955914972083164529 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/Nargo.toml deleted file mode 100644 index c6cd2dee00a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src/main.nr deleted file mode 100644 index b220cfd9c0a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src/main.nr +++ /dev/null @@ -1,45 +0,0 @@ - - trait Foo { - fn foo(self) -> Field; - } - - trait Bar: Foo { - fn bar(self) -> Field { - self.foo() - } - } - - struct MyStruct { - inner: Field, - } - - trait MarkerTrait {} - impl MarkerTrait for Field {} - - // `MyStruct` implements `Foo` only when its generic type `T` implements `MarkerTrait`. - impl Foo for MyStruct - where - T: MarkerTrait, - { - fn foo(self) -> Field { - let _ = self; - 42 - } - } - - // We expect this to succeed as `MyStruct` satisfies `Bar`'s trait bounds - // of implementing `Foo` when `T` implements `MarkerTrait`. - impl Bar for MyStruct - where - T: MarkerTrait, - { - fn bar(self) -> Field { - 31415 - } - } - - fn main() { - let foo: MyStruct = MyStruct { inner: 42 }; - let _ = foo.bar(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src_hash.txt deleted file mode 100644 index edeb4786f31..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18321585242124268451 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/Nargo.toml deleted file mode 100644 index 8724bb370d2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_impl_with_child_constraint" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src/main.nr deleted file mode 100644 index 4c421e0155e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - trait Parent {} - - trait Child: Parent { - fn child() {} - } - - pub struct Struct {} - - impl Parent for Struct {} - impl Child for Struct {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src_hash.txt deleted file mode 100644 index 933732ada78..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8780780344867922157 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/Nargo.toml deleted file mode 100644 index c39ff3a42d7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src/main.nr deleted file mode 100644 index c3af9704026..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Bar { - let N: Field; - } - - impl Bar for Field { - let N: Field = 42; - } - - trait Foo { - fn foo(b: B) where B: Bar; - } - - impl Foo for Field{ - fn foo(_: B) where B: Bar {} - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src_hash.txt deleted file mode 100644 index 9cb186db11f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -3535248747414696897 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/Nargo.toml deleted file mode 100644 index 30b7eaf9683..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src/main.nr deleted file mode 100644 index 09c8ed5c082..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Bar { - type typ; - } - - impl Bar for Field { - type typ = Field; - } - - trait Foo { - fn foo(b: B) where B: Bar; - } - - impl Foo for Field{ - fn foo(_: B) where B: Bar {} - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src_hash.txt deleted file mode 100644 index 66a035510ee..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9758927565621756882 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/Nargo.toml deleted file mode 100644 index 28665fd35ba..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src/main.nr deleted file mode 100644 index 2ed7d958755..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - pub trait Foo { - fn foo(self) -> Field; - } - - pub trait Bar { - fn bar(self) -> Field; - } - - pub trait Baz: Foo + Bar { - fn baz(self) -> Field; - } - - pub fn foo(baz: T) -> (Field, Field, Field) where T: Baz { - (baz.foo(), baz.bar(), baz.baz()) - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src_hash.txt deleted file mode 100644 index 70433d0ca50..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14093277765066326930 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/Nargo.toml deleted file mode 100644 index 6df4e5d2fef..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_with_generics" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src/main.nr deleted file mode 100644 index 8b0d3d3e97d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - trait Foo { - fn foo(self) -> T; - } - - trait Bar: Foo { - fn bar(self); - } - - pub fn foo(x: T) -> i32 where T: Bar { - x.foo() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src_hash.txt deleted file mode 100644 index cdba224cc77..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1193309008985108883 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/Nargo.toml deleted file mode 100644 index 2d67f081a84..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_with_generics_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src/main.nr deleted file mode 100644 index cfb26dcd0eb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - pub trait Foo { - fn foo(self) -> T; - } - - pub trait Bar: Foo { - fn bar(self) -> (T, U); - } - - pub fn foo(x: T) -> i32 where T: Bar { - x.foo() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src_hash.txt deleted file mode 100644 index a9db58cb40e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10945871135860238641 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/Nargo.toml deleted file mode 100644 index a3d763d7bff..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_with_generics_3" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src/main.nr deleted file mode 100644 index 84e62c3b146..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - trait Foo {} - - trait Bar: Foo {} - - impl Foo for () {} - - impl Bar for () {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src_hash.txt deleted file mode 100644 index 20c16b7df8b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1176939215167090286 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/Nargo.toml deleted file mode 100644 index 1f17224bd1a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_inheritance_with_generics_4" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src/main.nr deleted file mode 100644 index 8f56888ecff..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - trait Foo { type A; } - - trait Bar: Foo {} - - impl Foo for () { type A = i32; } - - impl Bar for () {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src_hash.txt deleted file mode 100644 index 7f8e0184184..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5407012695603974848 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/Nargo.toml deleted file mode 100644 index a3fe9f536b0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src/main.nr deleted file mode 100644 index 50648383526..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - trait BigNum {} - - trait BigCurve - where - B: BigNum, - { - fn new() -> Self; - } - - pub fn foo>() { - let _: Curve = BigCurve::new(); - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src_hash.txt deleted file mode 100644 index da31016778d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13386000313017476697 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/Nargo.toml deleted file mode 100644 index 6ceced663f4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_method_numeric_generic_on_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src/main.nr deleted file mode 100644 index fa7af72cbdd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Bar { - fn baz(); - } - - impl Bar for Field { - fn baz() { - let _ = N; - } - } - - fn foo() { - K::baz::<2>(); - } - - fn main() { - foo::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src_hash.txt deleted file mode 100644 index 3223ae25309..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1870959900360227894 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/Nargo.toml deleted file mode 100644 index 361c9264560..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src/main.nr deleted file mode 100644 index ef4d1a22a4e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - pub trait BarTrait {} - - pub trait Foo { - type Bar; - } - - pub trait Baz - where - T: Foo, - ::Bar: BarTrait, - {} - - pub struct HasBarTrait1 {} - impl BarTrait for HasBarTrait1 {} - - pub struct HasFoo1 {} - impl Foo for HasFoo1 { - type Bar = HasBarTrait1; - } - - pub struct HasBaz1 {} - impl Baz for HasBaz1 {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src_hash.txt deleted file mode 100644 index 0706ce9f41c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17365504020734663832 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/Nargo.toml deleted file mode 100644 index 78d5a577a3b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src/main.nr deleted file mode 100644 index c815d67d582..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src/main.nr +++ /dev/null @@ -1,26 +0,0 @@ - - pub trait BarTrait {} - - pub trait Foo { - type Bar; - } - - pub trait Baz - where - ::Bar: BarTrait, - T: Foo, - {} - - pub struct HasBarTrait1 {} - impl BarTrait for HasBarTrait1 {} - - pub struct HasFoo1 {} - impl Foo for HasFoo1 { - type Bar = HasBarTrait1; - } - - pub struct HasBaz1 {} - impl Baz for HasBaz1 {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src_hash.txt deleted file mode 100644 index 90789653f05..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10160444482254094352 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/Nargo.toml deleted file mode 100644 index 8c4e50aa65a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src/main.nr deleted file mode 100644 index c998ee1265c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - pub trait Trait { - fn foo(self, _msg: str) { - let _ = self; - } - - fn bar(self, _msg: str) { - let _ = self; - } - } - - pub struct Struct {} - - impl Trait for Struct {} - - pub fn main() { - Struct {}.bar("Hello"); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src_hash.txt deleted file mode 100644 index c2d4753d16f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14409646476396880482 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/Nargo.toml deleted file mode 100644 index c2dacb99f96..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src/main.nr deleted file mode 100644 index d270d5b20af..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - pub trait Foo { - fn foo(self) -> i32 { - let _ = self; - 1 - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src_hash.txt deleted file mode 100644 index 86e97c03ab4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -17945841134978179757 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/Nargo.toml deleted file mode 100644 index 4851cd1a6df..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src/main.nr deleted file mode 100644 index b54bdb444c0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - pub trait Foo { - fn foo(self) -> i32 { - self.bar() - } - - fn bar(self) -> i32 { - let _ = self; - 1 - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src_hash.txt deleted file mode 100644 index 13ea2790a9f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13765964756781353818 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/Nargo.toml deleted file mode 100644 index 397e04b92ee..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_numeric_turbofish" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src/main.nr deleted file mode 100644 index 8c568ba0e5b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - struct Reader { - } - - impl Reader { - fn read(_self: Self) {} - } - - fn main() { - let reader: Reader<1234> = Reader {}; - let _ = reader.read::<1234>(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src_hash.txt deleted file mode 100644 index 9652cf8b8c7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6051752409177046259 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/Nargo.toml deleted file mode 100644 index e23770a626a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_struct_pattern" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src/main.nr deleted file mode 100644 index 035db415ca4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Foo { - x: T - } - - fn main() { - let value: Field = 0; - let Foo:: { x } = Foo { x: value }; - let _ = x; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src_hash.txt deleted file mode 100644 index 7e5742fa563..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10194209344713765170 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/Nargo.toml deleted file mode 100644 index f3452443b65..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src/main.nr deleted file mode 100644 index 373cf18b355..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Foo { - x: T - } - - impl Foo { - fn new(x: T) -> Self { - Foo { x } - } - } - - fn main() { - let _ = Foo::::new(1); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src_hash.txt deleted file mode 100644 index c639d27db30..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8279560312660490070 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/Nargo.toml deleted file mode 100644 index 5b76817664a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src/main.nr deleted file mode 100644 index ec62c0b0b1e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - pub struct Foo { - x: T, - y: U, - } - - impl Foo { - fn new(x: T, y: U) -> Self { - Foo { x, y } - } - } - - type Bar = Foo; - - fn main() { - let _ = Bar::::new(true, 1); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src_hash.txt deleted file mode 100644 index fdaadc916e4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15624000011765409736 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/Nargo.toml deleted file mode 100644 index 5b661b0880c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src/main.nr deleted file mode 100644 index cf1429c2a02..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - pub struct Foo { - } - - impl Foo { - fn new() -> Self { - Foo {} - } - } - - type Bar = Foo; - - fn foo() -> Foo { - Bar::::new() - } - - fn main() { - let _ = foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src_hash.txt deleted file mode 100644 index 3751a68a0c3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5301662638287753799 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/Nargo.toml deleted file mode 100644 index c26b7da7b3b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_type_aliases_in_entry_point" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src/main.nr deleted file mode 100644 index 68d2c9244a4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src/main.nr +++ /dev/null @@ -1,4 +0,0 @@ - - type Foo = u8; - fn main(_x: Foo) {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src_hash.txt deleted file mode 100644 index 43d1cb83d2d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15065799403025934025 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/Nargo.toml deleted file mode 100644 index 1a9cfbd0e2f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_type_aliases_in_main" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src/main.nr deleted file mode 100644 index f0c4c466180..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src/main.nr +++ /dev/null @@ -1,4 +0,0 @@ - - type Outer = [u8; N]; - fn main(_arg: Outer<1>) {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src_hash.txt deleted file mode 100644 index 4182c551174..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1067643524936977091 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/Nargo.toml deleted file mode 100644 index 9d3978cd16a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_u32_globals_as_sizes_in_types" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src/main.nr deleted file mode 100644 index 8fdf757a412..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - global ARRAY_LEN: u32 = 3; - global STR_LEN: u32 = 2; - global FMT_STR_LEN: u32 = 2; - - fn main() { - let _a: [u32; ARRAY_LEN] = [1, 2, 3]; - let _b: str = "hi"; - let _c: fmtstr = f"hi"; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src_hash.txt deleted file mode 100644 index 52a7ff0fadb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -15855420129540085727 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/Nargo.toml deleted file mode 100644 index 0ff48d08a7a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src/main.nr deleted file mode 100644 index 4bda1c2008b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - #[allow(dead_code)] - enum Foo {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src_hash.txt deleted file mode 100644 index 0cd9cc4faf4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2912787966510288424 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/Nargo.toml deleted file mode 100644 index cc9f113c4aa..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src/main.nr deleted file mode 100644 index 21479290676..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - #[allow(dead_code)] - fn foo() {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src_hash.txt deleted file mode 100644 index 61bd7239002..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8138537160766711355 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/Nargo.toml deleted file mode 100644 index 1580a97e3b7..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src/main.nr deleted file mode 100644 index e2c788b0e77..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - #[allow(dead_code)] - struct Foo {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src_hash.txt deleted file mode 100644 index 6722c447cd6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14645872963190054969 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/Nargo.toml deleted file mode 100644 index 8544ffdf348..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src/main.nr deleted file mode 100644 index ebd17ee77e0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - #[allow(dead_code)] - trait Foo {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src_hash.txt deleted file mode 100644 index 70b7fda86d5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14851478487121828974 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/Nargo.toml deleted file mode 100644 index cd33b004c3a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src/main.nr deleted file mode 100644 index eaf659eccf6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - #[allow(dead_code)] - type Foo = Field; - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src_hash.txt deleted file mode 100644 index 851a17c5da1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10281445062708207909 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/Nargo.toml deleted file mode 100644 index 0a81253cddb..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src/main.nr deleted file mode 100644 index 740760a2869..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Bar {} - - impl Bar { - fn foo() {} - } - - pub fn main() { - Bar::foo() - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src_hash.txt deleted file mode 100644 index 3f8d33f0657..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12157035749622789576 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/Nargo.toml deleted file mode 100644 index 1e135bdd6d2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src/main.nr deleted file mode 100644 index 0f454ec2309..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Bar {} - - fn foo(array: [Bar; 1]) { - let _: Bar = array[0]; - } - - fn main() { - let _ = foo; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src_hash.txt deleted file mode 100644 index 0adba06d0da..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12368942904043175809 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/Nargo.toml deleted file mode 100644 index 75cd8c94e4f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src/main.nr deleted file mode 100644 index e517a41cf3b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - struct Bar {} - - fn foo(array: [Bar; 1]) -> Bar { - array[0] - } - - fn main() { - let _ = foo; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src_hash.txt deleted file mode 100644 index b2eca9e7f4c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1898526012180092460 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/Nargo.toml deleted file mode 100644 index 382086f3ffc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src/main.nr deleted file mode 100644 index ce4e5b21cb4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Bar {} - - struct Generic {} - - fn main() { - let _ = Generic:: {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src_hash.txt deleted file mode 100644 index 8a1c19be290..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9963543055637964444 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/Nargo.toml deleted file mode 100644 index 0a898c24093..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src/main.nr deleted file mode 100644 index 1aba6ea288b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src/main.nr +++ /dev/null @@ -1,9 +0,0 @@ - - struct Bar {} - - fn foo() {} - - fn main() { - let _ = foo::(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src_hash.txt deleted file mode 100644 index bf019772919..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8792428129164250099 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/Nargo.toml deleted file mode 100644 index 5117a438bcd..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src/main.nr deleted file mode 100644 index f23ea5ec2c3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Bar {} - - pub trait Foo { - fn foo(); - } - - impl Foo for Bar { - fn foo() {} - } - - pub fn main() { - Bar::foo() - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src_hash.txt deleted file mode 100644 index d354367d879..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2362175844420958899 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/Nargo.toml deleted file mode 100644 index f4b77cc3ef8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src/main.nr deleted file mode 100644 index 60c47805a76..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - #[export] - fn foo() {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src_hash.txt deleted file mode 100644 index 521cae8738d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14691371395698420673 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/Nargo.toml deleted file mode 100644 index 88dc2a816b8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src/main.nr deleted file mode 100644 index 078358c7044..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - contract foo { - #[abi(notes)] - global bar: u64 = 1; - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src_hash.txt deleted file mode 100644 index fcbd2b49def..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -759382057291441374 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/Nargo.toml deleted file mode 100644 index a66cad4096f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src/main.nr deleted file mode 100644 index e0e4f972e30..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - #[abi(dummy)] - struct Foo { bar: u8 } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src_hash.txt deleted file mode 100644 index 25c75302040..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7147188330611123574 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/Nargo.toml deleted file mode 100644 index fcdc47d7a8e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_private_import" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src/main.nr deleted file mode 100644 index 14a93b0e0b4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - mod foo { - pub fn bar() {} - pub fn baz() {} - - pub trait Foo { - } - } - - use foo::bar; - use foo::baz; - use foo::Foo; - - impl Foo for Field { - } - - fn main() { - baz(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src_hash.txt deleted file mode 100644 index 91663794dea..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2697113977490239770 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/Nargo.toml deleted file mode 100644 index c85026cdaec..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src/main.nr deleted file mode 100644 index 450bdfa5dc2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - mod foo { - pub fn bar() {} - pub fn baz() {} - - pub trait Foo { - } - } - - pub(crate) use foo::bar; - use foo::baz; - use foo::Foo; - - impl Foo for Field { - } - - fn main() { - baz(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src_hash.txt deleted file mode 100644 index 0d1580f5626..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5615079952474544469 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/Nargo.toml deleted file mode 100644 index 136cb16a4e2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src/main.nr deleted file mode 100644 index cc817adb733..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - struct Foo {} - struct Bar {} - - fn main() { - let _ = Bar {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src_hash.txt deleted file mode 100644 index c4f76b18eaf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11673120056961955903 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/Nargo.toml deleted file mode 100644 index c003551bc76..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src/main.nr deleted file mode 100644 index d1e64299117..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - trait Foo {} - trait Bar {} - - pub struct Baz { - } - - impl Bar for Baz {} - - fn main() { - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src_hash.txt deleted file mode 100644 index a5aeb18a551..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -16204811100864361933 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/Nargo.toml deleted file mode 100644 index 6b6be9fce04..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_errors_on_unused_type_alias" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src/main.nr deleted file mode 100644 index 0bb9d2ae9c8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - type Foo = Field; - type Bar = Field; - pub fn bar(_: Bar) {} - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src_hash.txt deleted file mode 100644 index c8cf64744cc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -7151457810553093094 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/Nargo.toml deleted file mode 100644 index a99d39984a4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src/main.nr deleted file mode 100644 index 31130ff8d3e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src/main.nr +++ /dev/null @@ -1,12 +0,0 @@ - - struct Bar { - field: Field, - } - - #[abi(functions)] - struct Foo { - bar: Bar, - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src_hash.txt deleted file mode 100644 index 59c5954348e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8320755631327922417 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/Nargo.toml deleted file mode 100644 index 41a830e0c6c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src/main.nr deleted file mode 100644 index 36f544e465d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - struct Bar { - inner: [Field; 3], - } - - struct Foo { - a: Field, - bar: Bar, - } - - fn main(foos: [Foo; 1]) { - assert_eq(foos[0].a, 10); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src_hash.txt deleted file mode 100644 index a3b509d0dec..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10026949865773516251 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/Nargo.toml deleted file mode 100644 index 43b1d0ffa95..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src/main.nr deleted file mode 100644 index aa8e1ab5bf2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Bar {} - - trait Foo { - fn foo(self, a: u64); - } - - impl Foo for Bar { - fn foo(self, _a: u64) {} - } - - fn main() { - let _ = Bar {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src_hash.txt deleted file mode 100644 index 56fc113b557..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1703110999080192204 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/Nargo.toml deleted file mode 100644 index cf1a33c447d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src/main.nr deleted file mode 100644 index b2a8d7dc528..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - #[abi(functions)] - struct Foo { - a: Field, - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src_hash.txt deleted file mode 100644 index 350d797f61f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -469171614182963488 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/Nargo.toml deleted file mode 100644 index c918bc5a5bf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src/main.nr deleted file mode 100644 index a698165bc1a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - mod foo { - pub trait Foo {} - } - - use foo::Foo; - - pub trait Bar - where - T: Foo, - {} - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src_hash.txt deleted file mode 100644 index a46ed968770..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13030466551941618816 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/Nargo.toml deleted file mode 100644 index 09063478929..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_silences_unused_variable_warning" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src/main.nr deleted file mode 100644 index 3982ea926fc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src/main.nr +++ /dev/null @@ -1,6 +0,0 @@ - - fn main() { - #[allow(unused_variables)] - let x = 1; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src_hash.txt deleted file mode 100644 index 0d9d0b20e73..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5237482271924740590 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/Nargo.toml deleted file mode 100644 index a6dd1b39c20..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_unused_items_warns_on_unused_global" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src/main.nr deleted file mode 100644 index a13377a3223..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src/main.nr +++ /dev/null @@ -1,8 +0,0 @@ - - global foo: u32 = 1; - global bar: Field = 1; - - fn main() { - let _ = bar; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src_hash.txt deleted file mode 100644 index 05e5edbe688..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11767087564883051697 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/Nargo.toml deleted file mode 100644 index 1597e843a96..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_use_non_u32_generic_in_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src/main.nr deleted file mode 100644 index 1deb7e632c9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src/main.nr +++ /dev/null @@ -1,7 +0,0 @@ - - struct S {} - - fn main() { - let _: S<3> = S {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src_hash.txt deleted file mode 100644 index 4df9c00428a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12764439239948936888 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/Nargo.toml deleted file mode 100644 index c7b974fb536..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_use_numeric_generic_in_trait_method" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src/main.nr deleted file mode 100644 index 9fa7fcdddc6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - trait Foo { - fn foo(self, x: [u8; N]) -> Self; - } - - struct Bar; - - impl Foo for Bar { - fn foo(self, _x: [u8; N]) -> Self { - self - } - } - - fn main() { - let bytes: [u8; 3] = [1,2,3]; - let _ = Bar{}.foo(bytes); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src_hash.txt deleted file mode 100644 index 76ea3ad4ab8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10648912712930531411 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/Nargo.toml deleted file mode 100644 index 22cc312e07e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_use_type_alias_in_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src/main.nr deleted file mode 100644 index c34e57d5db2..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - pub struct Foo { - } - - impl Foo { - fn new() -> Self { - Foo {} - } - } - - type Bar = Foo; - - fn foo() -> Foo { - Bar::new() - } - - fn main() { - let _ = foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src_hash.txt deleted file mode 100644 index 89b379f0ba9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12061126042862549212 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/Nargo.toml deleted file mode 100644 index e84953777d1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src/main.nr deleted file mode 100644 index 71a81e588b1..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - pub struct Foo { - x: T, - } - - impl Foo { - fn new(x: T) -> Self { - Foo { x } - } - } - - type Bar = Foo; - - fn foo() -> Bar { - Bar::new(1) - } - - fn main() { - let _ = foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src_hash.txt deleted file mode 100644 index 1fbe3a8649f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -1665576491847331271 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/Nargo.toml deleted file mode 100644 index 37ab537ee95..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_uses_self_in_import" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src/main.nr deleted file mode 100644 index 3eb8a9f0032..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - mod moo { - pub mod bar { - pub fn foo() -> i32 { - 1 - } - } - } - - use moo::bar::{self}; - - pub fn baz() -> i32 { - bar::foo() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src_hash.txt deleted file mode 100644 index d3696040dcf..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14344424490045611288 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/Nargo.toml deleted file mode 100644 index f82c85cbd76..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_uses_self_type_for_struct_function_call" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src/main.nr deleted file mode 100644 index 73f0ea0b1a5..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - struct S { } - - impl S { - fn one() -> Field { - 1 - } - - fn two() -> Field { - Self::one() + Self::one() - } - } - - fn main() { - let _ = S {}; // silence S never constructed warning - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src_hash.txt deleted file mode 100644 index 76387d67023..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -9829393985051430608 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/Nargo.toml deleted file mode 100644 index 97c852f477f..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_uses_self_type_inside_trait" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src/main.nr deleted file mode 100644 index 3f5d24ef7b0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src/main.nr +++ /dev/null @@ -1,19 +0,0 @@ - - trait Foo { - fn foo() -> Self { - Self::bar() - } - - fn bar() -> Self; - } - - impl Foo for Field { - fn bar() -> Self { - 1 - } - } - - fn main() { - let _: Field = Foo::foo(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src_hash.txt deleted file mode 100644 index f70282ae2d8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6193320399025785438 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/Nargo.toml deleted file mode 100644 index 96b54fd12b3..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src/main.nr deleted file mode 100644 index 3dabf4bde6d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src/main.nr +++ /dev/null @@ -1,14 +0,0 @@ - - struct Foo; - - impl Foo { - fn bar() -> Field { - 0 - } - } - - fn main() { - let _ = Foo {}; - assert_eq(Foo::bar(), 0); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src_hash.txt deleted file mode 100644 index 8f57eee2b79..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -14178684128362276705 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/Nargo.toml deleted file mode 100644 index ce98cae0872..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src/main.nr deleted file mode 100644 index 53af6fe980c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - struct Foo { - - } - - impl Foo { - fn foo() { - Foo::bar() - } - - fn bar() {} - } - - fn main() { - let _ = Foo {}; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src_hash.txt deleted file mode 100644 index bb62671312c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18391922154050909360 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/Nargo.toml deleted file mode 100644 index b1c52ddfb45..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src/main.nr deleted file mode 100644 index 41e63c02463..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src/main.nr +++ /dev/null @@ -1,16 +0,0 @@ - - pub mod moo { - struct Bar {} - - impl Bar { - pub fn bar() -> Bar { - Bar {} - } - } - - pub fn no_unused_warnings() { - let _ = Bar {}; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src_hash.txt deleted file mode 100644 index e56a3ff5cc4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2258884369965382091 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/Nargo.toml deleted file mode 100644 index 0ccec8cae00..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src/main.nr deleted file mode 100644 index 1b212a5c31b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - pub mod moo { - struct Bar {} - - pub trait Foo { - fn foo() -> Self; - } - - impl Foo for Bar { - fn foo() -> Self { - Bar {} - } - } - - pub fn no_unused_warnings() { - let _ = Bar {}; - } - } - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src_hash.txt deleted file mode 100644 index e6f70b177ea..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -6109714997047502248 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/Nargo.toml deleted file mode 100644 index 473af7bd548..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src/main.nr deleted file mode 100644 index e298395c6f4..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src/main.nr +++ /dev/null @@ -1,11 +0,0 @@ - - mod foo { - pub fn bar() {} - } - - use crate::foo::bar; - - fn main() { - bar() - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src_hash.txt deleted file mode 100644 index a16d8833867..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2030431297047185245 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/Nargo.toml deleted file mode 100644 index 98a11bc121b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src/main.nr deleted file mode 100644 index ed1e0c48c32..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src/main.nr +++ /dev/null @@ -1,18 +0,0 @@ - - struct Foo {} - - trait Bar { - fn bar(self) -> Foo; - } - - impl Bar for Foo { - fn bar(self) -> Foo { - self - } - } - - fn main() { - let foo = Foo {}; - let _ = foo.bar(); - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src_hash.txt deleted file mode 100644 index 5cf0eeeaddc..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2721444645923063802 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/Nargo.toml deleted file mode 100644 index 372ffb59938..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src/main.nr deleted file mode 100644 index d26c279d2ed..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - struct Foo { - x: Field - } - - mod nested { - fn foo(foo: super::Foo) -> Field { - foo.x - } - } - - fn main() { - let _ = Foo { x: 1 }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src_hash.txt deleted file mode 100644 index ce278657b80..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -12240934282204189180 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/Nargo.toml deleted file mode 100644 index bd3ede2516a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src/main.nr deleted file mode 100644 index 91dd9297588..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src/main.nr +++ /dev/null @@ -1,15 +0,0 @@ - - mod moo { - pub(crate) struct Foo { - pub(crate) x: Field - } - } - - fn foo(foo: moo::Foo) -> Field { - foo.x - } - - fn main() { - let _ = moo::Foo { x: 1 }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src_hash.txt deleted file mode 100644 index c19c2410967..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8526858173779399473 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/Nargo.toml deleted file mode 100644 index d9d48d71d75..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src/main.nr deleted file mode 100644 index 2028925786e..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - mod moo { - pub struct Foo {} - - impl Foo { - pub(crate) fn bar(self) { - let _ = self; - } - } - } - - pub fn method(foo: moo::Foo) { - foo.bar() - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src_hash.txt deleted file mode 100644 index ab8ff105b4d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -8834066210185906960 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/Nargo.toml deleted file mode 100644 index b8d13d0bb1c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_private_impl_method_on_another_module_1" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src/main.nr deleted file mode 100644 index cf3f60915a0..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src/main.nr +++ /dev/null @@ -1,17 +0,0 @@ - - pub mod bar { - pub struct Foo {} - } - - impl bar::Foo { - fn foo(self) { - let _ = self; - } - - fn bar(self) { - self.foo(); - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src_hash.txt deleted file mode 100644 index a718d7a1ba9..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -18298111048694488524 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/Nargo.toml deleted file mode 100644 index 2287d72570d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_private_impl_method_on_another_module_2" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src/main.nr deleted file mode 100644 index 269c57b895a..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src/main.nr +++ /dev/null @@ -1,21 +0,0 @@ - - pub mod bar { - pub struct Foo {} - } - - impl bar::Foo { - fn foo(self) { - let _ = self; - } - } - - impl bar::Foo { - fn bar(self) { - let _ = self; - let foo = bar::Foo:: {}; - foo.foo(); - } - } - - fn main() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src_hash.txt deleted file mode 100644 index bb99826db06..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -13369966237074401506 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/Nargo.toml deleted file mode 100644 index 0e0ca54ef83..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_visibility_visibility_bug_inside_comptime" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src/main.nr deleted file mode 100644 index c57230b55a6..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src/main.nr +++ /dev/null @@ -1,20 +0,0 @@ - - mod foo { - pub struct Foo { - inner: Field, - } - - impl Foo { - pub fn new(inner: Field) -> Self { - Self { inner } - } - } - } - - use foo::Foo; - - fn main() { - let _ = Foo::new(5); - let _ = comptime { Foo::new(5) }; - } - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src_hash.txt deleted file mode 100644 index 11718629b21..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -10466323526433381035 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/Nargo.toml deleted file mode 100644 index 6e2ff6b7c55..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_warns_on_nested_unsafe" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src/main.nr deleted file mode 100644 index 709395b401c..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src/main.nr +++ /dev/null @@ -1,13 +0,0 @@ - - fn main() { - // Safety: test - unsafe { - // Safety: test - unsafe { - foo() - } - } - } - - unconstrained fn foo() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src_hash.txt deleted file mode 100644 index 21f0a4872f8..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -11949324192221169747 \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/Nargo.toml b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/Nargo.toml deleted file mode 100644 index b30cbcc6f7d..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_warns_on_unneeded_unsafe" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src/main.nr b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src/main.nr deleted file mode 100644 index 55328953a5b..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src/main.nr +++ /dev/null @@ -1,10 +0,0 @@ - - fn main() { - // Safety: test - unsafe { - foo() - } - } - - fn foo() {} - \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src_hash.txt b/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src_hash.txt deleted file mode 100644 index 2e3aefb6a02..00000000000 --- a/test_programs/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -2955588370048507927 \ No newline at end of file diff --git a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/Nargo.toml b/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/Nargo.toml deleted file mode 100644 index 1a0ecec0a02..00000000000 --- a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/Nargo.toml +++ /dev/null @@ -1,7 +0,0 @@ - - [package] - name = "noirc_frontend_tests_cast_negative_one_to_u8_size_checks" - type = "bin" - authors = [""] - - [dependencies] \ No newline at end of file diff --git a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src/main.nr b/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src/main.nr deleted file mode 100644 index 102a147be68..00000000000 --- a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src/main.nr +++ /dev/null @@ -1,5 +0,0 @@ - - fn main() { - assert((-1) as u8 != 0); - } - \ No newline at end of file diff --git a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src_hash.txt b/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src_hash.txt deleted file mode 100644 index d492bbd92b4..00000000000 --- a/test_programs/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/src_hash.txt +++ /dev/null @@ -1 +0,0 @@ -5062401233069058534 \ No newline at end of file diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/execute__tests__stderr.snap deleted file mode 100644 index ddfa0a3b04b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_bounded_recursive_type_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Tree>` is recursive - ┌─ src/main.nr:3:47 - │ -3 │ let _tree: Tree>> = Tree::Branch( - │ ------------ All types in Noir must have a known size at compile-time - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/execute__tests__stderr.snap deleted file mode 100644 index f23e8407f7c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_mutually_recursive_types_error/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Odd` is recursive - ┌─ src/main.nr:7:13 - │ -7 │ Zero, - │ ---- All types in Noir must have a known size at compile-time - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/execute__tests__stderr.snap deleted file mode 100644 index 117fd07c09b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_monomorphization_tests_recursive_type_with_alias_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Opt<()>` is recursive - ┌─ src/main.nr:3:44 - │ -3 │ let _tree: Opt> = Opt::Some(OptAlias::None); - │ --------- All types in Noir must have a known size at compile-time - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/execute__tests__stderr.snap deleted file mode 100644 index 03d75d8af6c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_composing_numeric_type_aliases/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected a numeric expression, but got `Double>` - ┌─ src/main.nr:3:5 - │ -3 │ type Quadruple: u32 = Double>; - │ --------------------------------------------------- - │ - -error: Type annotation needed - ┌─ src/main.nr:5:28 - │ -5 │ let b: [u32; 12] = foo(); - │ --- Could not determine the value of the generic argument `N` declared on the function `foo` - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/execute__tests__stderr.snap deleted file mode 100644 index d4bb91fd409..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot use a type alias inside a type alias - ┌─ src/main.nr:3:39 - │ -3 │ type Quadruple: u32 = Double::+Double::; - │ ------------------------ - │ - -error: Type annotation needed - ┌─ src/main.nr:5:28 - │ -5 │ let b: [u32; 12] = foo(); - │ --- Could not determine the value of the generic argument `N` declared on the function `foo` - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/execute__tests__stderr.snap deleted file mode 100644 index efb2d13aa8e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_expression_with_alias_2/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot use a type alias inside a type alias - ┌─ src/main.nr:3:39 - │ -3 │ type Quadruple: u32 = N*(Double::+3); - │ ------------------ - │ - -error: Type annotation needed - ┌─ src/main.nr:6:28 - │ -6 │ let b: [u32; 12] = foo(); - │ --- Could not determine the value of the generic argument `N` declared on the function `foo` - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/execute__tests__stderr.snap deleted file mode 100644 index 1498c624af0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_disallows_numeric_type_aliases_to_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:2:21 - │ -2 │ type Foo: u32 = u32; - │ --- the numeric generic is not of type `u32` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/execute__tests__stderr.snap deleted file mode 100644 index 68b89f983e1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_is_not_allowed/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Binding `X` here to the `_` inside would create a cyclic type - ┌─ src/main.nr:5:20 - │ -5 │ let _: X = 1; - │ - Cyclic types have unlimited size and are prohibited in Noir - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/execute__tests__stderr.snap deleted file mode 100644 index 24ceb9d8401..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_aliases_self_referring_type_alias_with_generics_is_not_allowed/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Binding `Id>` here to the `_` inside would create a cyclic type - ┌─ src/main.nr:5:20 - │ -5 │ let _: Id> = 1; - │ -- Cyclic types have unlimited size and are prohibited in Noir - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/execute__tests__stderr.snap deleted file mode 100644 index 215c7b893a8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_indirect_zeros/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not determine array length `(0 % 0)`, encountered error: `Modulo on Field elements: 0 % 0` - ┌─ src/main.nr:9:13 - │ -9 │ N - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/execute__tests__stderr.snap deleted file mode 100644 index bfd963e73e0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_checked_cast_zeros/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not determine array length `(0 / (0 % 0))`, encountered error: `Evaluating `%` on `0`, `0` failed` - ┌─ src/main.nr:9:13 - │ -9 │ N - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/execute__tests__stderr.snap deleted file mode 100644 index 8ef247c4e49..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type [Field; 2], found type [Field; 3] - ┌─ src/main.nr:5:27 - │ -5 │ round::<3, 2>([1, 2, 3]); - │ --------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/execute__tests__stderr.snap deleted file mode 100644 index dd69aa529eb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_arithmetic_generics_rounding_fail_on_struct/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type W<3>, found type W<2> - ┌─ src/main.nr:13:27 - │ -13 │ let _: W<3> = foo(w_3, w_2); - │ ------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/execute__tests__stderr.snap deleted file mode 100644 index 5f9ab839225..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_no_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No matching impl found for `Bar: Foo` - ┌─ src/main.nr:13:35 - │ -13 │ let _: i64 = 1 as >::Assoc; - │ --- No impl for `Bar: Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/execute__tests__stderr.snap deleted file mode 100644 index 2407e0c0ce6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_as_trait_path_syntax_resolves_outside_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type i64, found type i32 - ┌─ src/main.nr:15:22 - │ -15 │ let _: i64 = 1 as >::Assoc; - │ ------------------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/execute__tests__stderr.snap deleted file mode 100644 index 2c1908766a0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_add_with_overflow_at_comptime/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Attempt to add with overflow - ┌─ src/main.nr:4:17 - │ -4 │ 255 as u8 + 1 as u8 - │ ------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/execute__tests__stderr.snap deleted file mode 100644 index 04df35a1118..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_attempt_to_divide_by_zero_at_comptime/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Attempt to divide by zero - ┌─ src/main.nr:4:17 - │ -4 │ 255 as u8 / 0 - │ ------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ban_mutable_globals/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ban_mutable_globals/execute__tests__stderr.snap deleted file mode 100644 index 4172389b5b2..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ban_mutable_globals/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Only `comptime` globals may be mutable - ┌─ src/main.nr:2:20 - │ -2 │ mut global FOO: Field = 0; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/execute__tests__stderr.snap deleted file mode 100644 index 2e3b1c47fd3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_generic_as_loop_bound/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: N has a type of bool. The only supported numeric generic types are `u1`, `u8`, `u16`, and `u32`. - ┌─ src/main.nr:2:24 - │ -2 │ pub fn read() { - │ ---- Unsupported numeric generic type - │ - -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:3:30 - │ -3 │ let mut fields = [0; N]; - │ - expected `u32`, found `bool` - │ - -error: Expected type Field, found type bool - ┌─ src/main.nr:4:21 - │ -4 │ for i in 0..N { - │ - - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_numeric_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_numeric_generic/execute__tests__stderr.snap deleted file mode 100644 index 285ec05ac66..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bool_numeric_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: N has a type of bool. The only supported numeric generic types are `u1`, `u8`, `u16`, and `u32`. - ┌─ src/main.nr:2:24 - │ -2 │ pub fn read() -> Field { - │ ---- Unsupported numeric generic type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/execute__tests__stderr.snap deleted file mode 100644 index 994596c13e6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_i8/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The value `128` cannot fit into `i8` which has range `-128..=127` - ┌─ src/main.nr:3:25 - │ -3 │ let _: i8 = 128; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/execute__tests__stderr.snap deleted file mode 100644 index c331bd5c0dc..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_overflowing_u8/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The value `256` cannot fit into `u8` which has range `0..=255` - ┌─ src/main.nr:3:25 - │ -3 │ let _: u8 = 256; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/execute__tests__stderr.snap deleted file mode 100644 index dcde33775d0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_i8/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The value `-129` cannot fit into `i8` which has range `-128..=127` - ┌─ src/main.nr:3:25 - │ -3 │ let _: i8 = -129; - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/execute__tests__stderr.snap deleted file mode 100644 index 309cbb354ae..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_bound_checks_underflowing_u8/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The value `-1` cannot fit into `u8` which has range `0..=255` - ┌─ src/main.nr:3:25 - │ -3 │ let _: u8 = -1; - │ -- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/execute__tests__stderr.snap deleted file mode 100644 index 669b0f45e7c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_in_constrained_fn/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: continue is only allowed in unconstrained functions - ┌─ src/main.nr:5:21 - │ -5 │ continue; - │ --------- Constrained code must always have a known number of loop iterations - │ - -error: break is only allowed in unconstrained functions - ┌─ src/main.nr:8:21 - │ -8 │ break; - │ ------ Constrained code must always have a known number of loop iterations - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/execute__tests__stderr.snap deleted file mode 100644 index 2acce4677ca..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_break_and_continue_outside_loop/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: continue is only allowed within loops - ┌─ src/main.nr:3:13 - │ -3 │ continue; - │ --------- - │ - -error: break is only allowed within loops - ┌─ src/main.nr:6:13 - │ -6 │ break; - │ ------ - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_module/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_module/execute__tests__stderr.snap deleted file mode 100644 index 5852baed5ac..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_module/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: expected value got module - ┌─ src/main.nr:5:9 - │ -5 │ foo = 1; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/execute__tests__stderr.snap deleted file mode 100644 index dc577555508..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_to_nested_struct/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: expected value got type - ┌─ src/main.nr:7:9 - │ -7 │ foo::bar = 1; - │ -------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/execute__tests__stderr.snap deleted file mode 100644 index ecd65e198ae..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_assign_unconstrained_and_regular_fn_to_variable/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type fn() -> (), found type unconstrained fn() -> () - ┌─ src/main.nr:3:44 - │ -3 │ let _func = if true { foo } else { bar }; - │ --- - │ - = Expected the types of both if branches to be equal - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/execute__tests__stderr.snap deleted file mode 100644 index 4a5a4747a80..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_first_class_function_outside_of_unsafe/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Call to unconstrained function is unsafe and must be in an unconstrained function or unsafe block - ┌─ src/main.nr:4:9 - │ -4 │ func(); - │ ------ - │ - -error: Call to unconstrained function is unsafe and must be in an unconstrained function or unsafe block - ┌─ src/main.nr:9:9 - │ -9 │ x(); - │ --- - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/execute__tests__stderr.snap deleted file mode 100644 index 26764ada734..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_call_unconstrained_function_outside_of_unsafe/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Call to unconstrained function is unsafe and must be in an unconstrained function or unsafe block - ┌─ src/main.nr:3:9 - │ -3 │ foo(); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_array_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_array_type/execute__tests__stderr.snap deleted file mode 100644 index 4c4f7531b65..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_array_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:3:17 - │ -3 │ let _ = []; - │ -- Could not determine the type of the array - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/execute__tests__stderr.snap deleted file mode 100644 index bc5a387512f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_slice_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:3:17 - │ -3 │ let _ = &[]; - │ --- Could not determine the type of the slice - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/execute__tests__stderr.snap deleted file mode 100644 index a909a88a2ca..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_enum_constructor/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:8:22 - │ -8 │ let _ = Foo::Bar; - │ --- Could not determine the type of the generic argument `T` declared on the enum `Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/execute__tests__stderr.snap deleted file mode 100644 index 619185fc734..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:6:9 - │ -6 │ foo(); - │ --- Could not determine the type of the generic argument `T` declared on the function `foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/execute__tests__stderr.snap deleted file mode 100644 index 5e6918e2f8a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_for_generic_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:9:14 - │ -9 │ Foo::one(); - │ --- Could not determine the type of the generic argument `T` declared on the struct `Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/execute__tests__stderr.snap deleted file mode 100644 index caa6da8bf56..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_when_it_is_a_numeric_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:17:17 - │ -17 │ let _ = foo(); - │ --- Could not determine the value of the generic argument `N` declared on the function `foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/execute__tests__stderr.snap deleted file mode 100644 index 619185fc734..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_function_call_with_regular_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:6:9 - │ -6 │ foo(); - │ --- Could not determine the type of the generic argument `T` declared on the function `foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/execute__tests__stderr.snap deleted file mode 100644 index 2fc9aaf1796..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_determine_type_of_generic_argument_in_struct_constructor/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type annotation needed - ┌─ src/main.nr:6:17 - │ -6 │ let _ = Foo {}; - │ --- Could not determine the type of the generic argument `T` declared on the struct `Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/execute__tests__stderr.snap deleted file mode 100644 index cb262bf17bc..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_constrained_function/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Converting an unconstrained fn to a non-unconstrained fn is unsafe - ┌─ src/main.nr:4:24 - │ -4 │ expect_regular(func); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/execute__tests__stderr.snap deleted file mode 100644 index cb262bf17bc..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_pass_unconstrained_function_to_regular_function/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Converting an unconstrained fn to a non-unconstrained fn is unsafe - ┌─ src/main.nr:4:24 - │ -4 │ expect_regular(func); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/execute__tests__stderr.snap deleted file mode 100644 index 854edffc9e3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cannot_use_prefix_minus_on_u32/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot apply unary operator `-` to type `u32` - ┌─ src/main.nr:4:17 - │ -4 │ let _ = -x; - │ -- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/execute__tests__stderr.snap deleted file mode 100644 index a48162ac732..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i32_to_field_must_error_1/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Only unsigned integer types may be casted to Field - ┌─ src/main.nr:3:20 - │ -3 │ assert(x as Field != 0); - │ ---------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/execute__tests__stderr.snap deleted file mode 100644 index be38fcb916d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_cast_signed_i8_to_field_must_error_1/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Only unsigned integer types may be casted to Field - ┌─ src/main.nr:3:20 - │ -3 │ assert((-1 as i8) as Field != 0); - │ ------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/execute__tests__stderr.snap deleted file mode 100644 index e21703632be..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_duplicate_method_without_self/execute__tests__stderr.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: duplicate definitions of foo found - ┌─ src/main.nr:5:12 - │ -5 │ fn foo() {} - │ --- first definition found here -6 │ fn foo() {} - │ --- second definition found here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/execute__tests__stderr.snap deleted file mode 100644 index fe67683dcee..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_impl_struct_not_trait/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Default2 is not a trait, therefore it can't be implemented - ┌─ src/main.nr:12:10 - │ -12 │ impl Default2 for Foo { - │ -------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/execute__tests__stderr.snap deleted file mode 100644 index cf83dc202b2..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_declaration/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of trait definition with name Default2 found - ┌─ src/main.nr:2:11 - │ - 2 │ trait Default2 { - │ -------- First trait definition found here - · -17 │ trait Default2 { - │ -------- Second trait definition found here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/execute__tests__stderr.snap deleted file mode 100644 index 9e9f57ea184..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Impl for type `Foo` overlaps with existing impl - ┌─ src/main.nr:8:10 - │ - 8 │ impl Default2 for Foo { - │ -------- Previous impl defined here - 9 │ } -10 │ impl Default2 for Foo { - │ --- Overlapping impl - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/execute__tests__stderr.snap deleted file mode 100644 index 55a2e2af05c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_duplicate_implementation_with_alias/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Impl for type `MyType` overlaps with existing impl - ┌─ src/main.nr:10:10 - │ -10 │ impl Default2 for MyStruct { - │ -------- Previous impl defined here - · -13 │ impl Default2 for MyType { - │ ------ Overlapping impl - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/execute__tests__stderr.snap deleted file mode 100644 index bee7258bad3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_impl_for_non_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: expected type got function - ┌─ src/main.nr:6:23 - │ -6 │ impl Default2 for main { - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/execute__tests__stderr.snap deleted file mode 100644 index d8fd3b7ab12..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_implementation_duplicate_method/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of trait associated item with name default found - ┌─ src/main.nr:13:12 - │ -13 │ fn default(x: Field, y: Field) -> Field { - │ ------- First trait associated item found here - · -17 │ fn default(x: Field, y: Field) -> Field { - │ ------- Second trait associated item found here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/execute__tests__stderr.snap deleted file mode 100644 index 17482a39e96..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_missing_implementation/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Method `method2` from trait `Default2` is not implemented - ┌─ src/main.nr:14:23 - │ -14 │ impl Default2 for Foo { - │ --- Please implement method2 here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/execute__tests__stderr.snap deleted file mode 100644 index b30450854a3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_not_in_scope/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Trait Default2 not found - ┌─ src/main.nr:7:10 - │ -7 │ impl Default2 for Foo { - │ -------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/execute__tests__stderr.snap deleted file mode 100644 index 006c1bb42f6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_name/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Method with name `does_not_exist` is not part of trait `Default2`, therefore it can't be implemented - ┌─ src/main.nr:11:12 - │ -11 │ fn does_not_exist(x: Field, y: Field) -> Self { - │ -------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/execute__tests__stderr.snap deleted file mode 100644 index a826cec057d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Foo, found type Field - ┌─ src/main.nr:10:25 - │ -10 │ fn default() -> Field { - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/execute__tests__stderr.snap deleted file mode 100644 index 4a55492c376..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type2/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Foo, found type Field - ┌─ src/main.nr:12:44 - │ -12 │ fn default(x: Field, _y: Field) -> Field { - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/execute__tests__stderr.snap deleted file mode 100644 index ffc4fddc7ec..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_method_return_type3/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Foo, found type () - ┌─ src/main.nr:12:41 - │ -12 │ fn default(_x: Field, _y: Field) { - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/execute__tests__stderr.snap deleted file mode 100644 index 9d52e30231d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Parameter #1 of method `default` must be of type Field, not u32 - ┌─ src/main.nr:11:23 - │ -11 │ fn default(x: u32) -> Self { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/execute__tests__stderr.snap deleted file mode 100644 index e1891c7a62b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter2/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Parameter #2 of method `default` must be of type Field, not Foo - ┌─ src/main.nr:12:33 - │ -12 │ fn default(x: Field, y: Foo) -> Self { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/execute__tests__stderr.snap deleted file mode 100644 index 03d0e4f15ae..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameter_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not resolve 'NotAType' in path - ┌─ src/main.nr:3:33 - │ -3 │ fn default(x: Field, y: NotAType) -> Field; - │ -------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/execute__tests__stderr.snap deleted file mode 100644 index 74a7c49ef8c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_check_trait_wrong_parameters_count/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: `Default2::default` expects 2 parameters, but this method has 1 - ┌─ src/main.nr:12:12 - │ -12 │ fn default(x: Field) -> Self { - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/execute__tests__stderr.snap deleted file mode 100644 index 6b119f260eb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_abi_attribute_outside_of_contract/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: #[abi(tag)] attributes can only be used in contracts - ┌─ src/main.nr:3:9 - │ -3 │ #[abi(foo)] - │ ----------- misplaced #[abi(tag)] attribute - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/execute__tests__stderr.snap deleted file mode 100644 index 5a66585d2c0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_attaching_mut_ref_to_immutable_object/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot mutate immutable variable `foo` - ┌─ src/main.nr:14:20 - │ -14 │ let f = || foo.mutate(); - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/execute__tests__stderr.snap deleted file mode 100644 index 5120d2fe643..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable variable x captured in lambda must be a mutable reference - ┌─ src/main.nr:4:32 - │ -4 │ let f = || mutate(&mut x); - │ - Use '&mut' instead of 'mut' to capture a mutable variable. - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/execute__tests__stderr.snap deleted file mode 100644 index 79e3646eb8c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_function_in_nested_lambda/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable variable x captured in lambda must be a mutable reference - ┌─ src/main.nr:5:40 - │ -5 │ let inner = || mutate(&mut x); - │ - Use '&mut' instead of 'mut' to capture a mutable variable. - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/execute__tests__stderr.snap deleted file mode 100644 index 8a3583393ab..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_var_as_param_to_impl_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable variable foo captured in lambda must be a mutable reference - ┌─ src/main.nr:14:20 - │ -14 │ let f = || foo.mutate(); - │ --- Use '&mut' instead of 'mut' to capture a mutable variable. - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/execute__tests__stderr.snap deleted file mode 100644 index 66b18c62db6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_lambda/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable variable x captured in lambda must be a mutable reference - ┌─ src/main.nr:5:13 - │ -5 │ x += 2; - │ - Use '&mut' instead of 'mut' to capture a mutable variable. - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/execute__tests__stderr.snap deleted file mode 100644 index 1dbb8407dce..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_capturing_mut_variable_without_reference_in_nested_lambda/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable variable x captured in lambda must be a mutable reference - ┌─ src/main.nr:6:17 - │ -6 │ x += 2; - │ - Use '&mut' instead of 'mut' to capture a mutable variable. - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_globals/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_globals/execute__tests__stderr.snap deleted file mode 100644 index 1d0922cbee5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_globals/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Variable not in scope - ┌─ src/main.nr:3:25 - │ -3 │ global B: u32 = A; - │ - Could not find variable - │ - -error: This global recursively depends on itself - ┌─ src/main.nr:2:25 - │ -2 │ global A: u32 = B; - │ - - │ - -error: Dependency cycle found - ┌─ src/main.nr:2:16 - │ -2 │ global A: u32 = B; - │ - 'A' recursively depends on itself: A -> B -> A - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/execute__tests__stderr.snap deleted file mode 100644 index 263fa641228..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_cyclic_type_aliases/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Dependency cycle found - ┌─ src/main.nr:3:9 - │ -3 │ type B = A; - │ ---------- 'B' recursively depends on itself: B -> A -> B - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/execute__tests__stderr.snap deleted file mode 100644 index fd55b0e02e2..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_fold_attribute_on_unconstrained/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: misplaced #[fold] attribute on unconstrained function foo. Only allowed on constrained functions - ┌─ src/main.nr:2:9 - │ -2 │ #[fold] - │ ------- misplaced #[fold] attribute - │ - = The `#[fold]` attribute specifies whether a constrained function should be treated as a separate circuit rather than inlined into the program entry point - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/execute__tests__stderr.snap deleted file mode 100644 index 3551a29b796..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_inline_attribute_on_unconstrained/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: misplaced #[no_predicates] attribute on unconstrained function foo. Only allowed on constrained functions - ┌─ src/main.nr:2:9 - │ -2 │ #[no_predicates] - │ ---------------- misplaced #[no_predicates] attribute - │ - = The `#[no_predicates]` attribute specifies to the compiler whether it should diverge from auto-inlining constrained functions - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/execute__tests__stderr.snap deleted file mode 100644 index 9562ddbf8d7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_deny_oracle_attribute_on_non_unconstrained/execute__tests__stderr.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Usage of the `#[oracle]` function attribute is only valid on unconstrained functions - ┌─ src/main.nr:2:9 - │ -2 │ #[oracle(foo)] - │ -------------- -3 │ pub fn foo(x: Field, y: Field) { - │ --- Oracle functions must have the `unconstrained` keyword applied - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/execute__tests__stderr.snap deleted file mode 100644 index 32e6a5b7279..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_impl_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The `#[export]` attribute is disallowed on `impl` methods - ┌─ src/main.nr:6:16 - │ -6 │ fn foo() { } - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/execute__tests__stderr.snap deleted file mode 100644 index 49406b54ce5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_export_attribute_on_trait_impl_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The `#[export]` attribute is disallowed on `impl` methods - ┌─ src/main.nr:10:16 - │ -10 │ fn foo() { } - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/execute__tests__stderr.snap deleted file mode 100644 index 9bcd1c5a73d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_impl_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The `#[test]` attribute is disallowed on `impl` methods - ┌─ src/main.nr:7:16 - │ -7 │ fn foo() { } - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/execute__tests__stderr.snap deleted file mode 100644 index 406d82fb611..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_test_attribute_on_trait_impl_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The `#[test]` attribute is disallowed on `impl` methods - ┌─ src/main.nr:10:16 - │ -10 │ fn foo() { } - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/execute__tests__stderr.snap deleted file mode 100644 index dd3020bde9a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_disallows_underscore_on_right_hand_side/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: in expressions, `_` can only be used on the left-hand side of an assignment - ┌─ src/main.nr:4:22 - │ -4 │ let _x = _; - │ - `_` not allowed here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/execute__tests__stderr.snap deleted file mode 100644 index 0594266f218..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_globals_to_u32_from_type_use/execute__tests__stderr.snap +++ /dev/null @@ -1,47 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Globals must have a specified type - ┌─ src/main.nr:2:16 - │ -2 │ global ARRAY_LEN = 3; - │ --------- - Inferred type is `Field` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:3:16 - │ -3 │ global STR_LEN: _ = 2; - │ ------- - Inferred type is `Field` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:4:16 - │ -4 │ global FMT_STR_LEN = 2; - │ ----------- - Inferred type is `Field` - │ - -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:7:21 - │ -7 │ let _a: [u32; ARRAY_LEN] = [1, 2, 3]; - │ ---------------- expected `u32`, found `Field` - │ - -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:8:25 - │ -8 │ let _b: str = "hi"; - │ ------- expected `u32`, found `Field` - │ - -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:9:28 - │ -9 │ let _c: fmtstr = f"hi"; - │ ----------- expected `u32`, found `Field` - │ - -Aborting due to 6 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/execute__tests__stderr.snap deleted file mode 100644 index 4eff94f50de..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_do_not_infer_partial_global_types/execute__tests__stderr.snap +++ /dev/null @@ -1,49 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Globals must have a specified type - ┌─ src/main.nr:4:20 - │ -4 │ pub global STR: str<_> = "hi"; - │ --- ---- Inferred type is `str<2>` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:6:20 - │ -6 │ pub global NESTED_STR: [str<_>] = &["hi"]; - │ ---------- ------- Inferred type is `[str<2>]` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:8:20 - │ -8 │ pub global FMT_STR: fmtstr<_, _> = f"hi {FORMATTED_VALUE}"; - │ ------- ----------------------- Inferred type is `fmtstr<20, (str<5>,)>` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:2:20 - │ -2 │ pub global ARRAY: [Field; _] = [0; 3]; - │ ----- ------ Inferred type is `[Field; 3]` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:3:20 - │ -3 │ pub global NESTED_ARRAY: [[Field; _]; 3] = [[]; 3]; - │ ------------ ------- Inferred type is `[[Field; 0]; 3]` - │ - -error: Globals must have a specified type - ┌─ src/main.nr:9:20 - │ - 9 │ pub global TUPLE_WITH_MULTIPLE: ([str<_>], [[Field; _]; 3]) = - │ ------------------- -10 │ (&["hi"], [[]; 3]); - │ ------------------ Inferred type is `([str<2>], [[Field; 0]; 3])` - │ - -Aborting due to 6 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_duplicate_struct_field/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_duplicate_struct_field/execute__tests__stderr.snap deleted file mode 100644 index 06e4e715407..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_duplicate_struct_field/execute__tests__stderr.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of struct field with name x found - ┌─ src/main.nr:3:9 - │ -3 │ x: i32, - │ - First struct field found here -4 │ x: i32, - │ - Second struct field found here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/execute__tests__stderr.snap deleted file mode 100644 index a910dc9622c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_ensure_nested_type_aliases_type_check/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type A, found type u16 - ┌─ src/main.nr:5:25 - │ -5 │ let _a: A = 0u16; - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/execute__tests__stderr.snap deleted file mode 100644 index 619c025a7ab..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_constructor_arg_arity_mismatch_in_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected 1 argument, but found 2 - ┌─ src/main.nr:4:17 - │ -4 │ Foo::One(_, _) => (), - │ -------- - │ - -error: Expected 2 arguments, but found 1 - ┌─ src/main.nr:5:17 - │ -5 │ Foo::Two(_) => (), - │ -------- - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/execute__tests__stderr.snap deleted file mode 100644 index cca13e3d322..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_duplicate_field_in_match_struct_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: duplicate field x - ┌─ src/main.nr:5:25 - │ -5 │ Foo { x: _, x: _, y: _ } => {} - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/execute__tests__stderr.snap deleted file mode 100644 index 849cc4708c0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_error_with_duplicate_enum_variant/execute__tests__stderr.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of enum variant with name Bar found - ┌─ src/main.nr:3:9 - │ -3 │ Bar(i32), - │ --- First enum variant found here -4 │ Bar(u8), - │ --- Second enum variant found here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/execute__tests__stderr.snap deleted file mode 100644 index 35359742b7b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_errors_on_repeated_match_variables_in_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Variable `_x` was already defined in the same match pattern - ┌─ src/main.nr:4:14 - │ -4 │ (_x, _x) => (), - │ -- -- `_x` redefined here - │ │ - │ `_x` was previously defined here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/execute__tests__stderr.snap deleted file mode 100644 index 84299b96ea6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_integer_type_mismatch_in_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Field, found type Foo - ┌─ src/main.nr:4:17 - │ -4 │ Foo::One(_) => (), - │ -------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/execute__tests__stderr.snap deleted file mode 100644 index 67c6c9354c0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_no_shadow_global/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected a struct, enum, or literal pattern, but found a function - ┌─ src/main.nr:4:17 - │ -4 │ crate::foo => (), - │ ---------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/execute__tests__stderr.snap deleted file mode 100644 index f67d1d61d94..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_match_reachability_errors_ignored_when_there_is_a_type_error/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Opt, found type Field - ┌─ src/main.nr:7:17 - │ -7 │ 3 => (), - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/execute__tests__stderr.snap deleted file mode 100644 index 53c55d63965..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_cases_with_empty_match/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing cases: `A`, `B`, `C`, and 23 more not shown - ┌─ src/main.nr:3:19 - │ -3 │ match Abc::A {} - │ ------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/execute__tests__stderr.snap deleted file mode 100644 index 46db52814b5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_field_in_match_struct_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: missing field y in struct Foo - ┌─ src/main.nr:5:13 - │ -5 │ Foo { x: _ } => {} - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/execute__tests__stderr.snap deleted file mode 100644 index e15fb4c9c70..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing cases: `None`, `Some(-128..=3)`, `Some(5)`, and 1 more not shown - ┌─ src/main.nr:4:19 - │ -4 │ match Opt::Some(x) { - │ ------------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/execute__tests__stderr.snap deleted file mode 100644 index bd83d3e3fa5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_int_ranges_with_negatives/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing cases: `-2147483648..=-6`, `-4..=-1`, `1..=2`, and 1 more not shown - ┌─ src/main.nr:4:19 - │ -4 │ match x { - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/execute__tests__stderr.snap deleted file mode 100644 index 2df04b25852..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_integer_cases_with_empty_match/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing cases: `i8` is non-empty - ┌─ src/main.nr:4:19 - │ -4 │ match x {} - │ - Try adding a match-all pattern: `_` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_many_cases/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_many_cases/execute__tests__stderr.snap deleted file mode 100644 index 5ffe8b13696..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_many_cases/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing cases: `C`, `D`, `E`, and 21 more not shown - ┌─ src/main.nr:3:19 - │ -3 │ match Abc::A { - │ ------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_single_case/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_single_case/execute__tests__stderr.snap deleted file mode 100644 index 619ea8e0384..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_missing_single_case/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Missing case: `Some(_)` - ┌─ src/main.nr:3:19 - │ -3 │ match Opt::Some(3) { - │ ------------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/execute__tests__stderr.snap deleted file mode 100644 index 88de9202fb4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_no_such_field_in_match_struct_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: no such field z defined in struct Foo - ┌─ src/main.nr:5:31 - │ -5 │ Foo { x: _, y: _, z: _ } => {} - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/execute__tests__stderr.snap deleted file mode 100644 index 5517f5aa346..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_enums_unreachable_match_case/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Opt` is recursive - ┌─ src/main.nr:3:19 - │ -3 │ match Opt::Some(Opt::Some(3)) { - │ --------- All types in Noir must have a known size at compile-time - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/execute__tests__stderr.snap deleted file mode 100644 index 5347d7f3230..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_if_attribute_not_in_scope/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Attribute function `not_in_scope` is not in scope - ┌─ src/main.nr:2:9 - │ -2 │ #[not_in_scope] - │ --------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/execute__tests__stderr.snap deleted file mode 100644 index b0a9689a103..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_error_on_cast_over_type_variable/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Field, found type str<1> - ┌─ src/main.nr:8:44 - │ -8 │ let _: Field = foo(|x| x as Field, x); - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/execute__tests__stderr.snap deleted file mode 100644 index 4d40fe3a29e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_for_body_type_is_not_unit/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type (), found type Field - ┌─ src/main.nr:4:13 - │ -4 │ 1 - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/execute__tests__stderr.snap deleted file mode 100644 index dd26d52da7b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_loop_body_type_is_not_unit/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type (), found type Field - ┌─ src/main.nr:6:13 - │ -6 │ 1 - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/execute__tests__stderr.snap deleted file mode 100644 index 4d40fe3a29e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_if_while_body_type_is_not_unit/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type (), found type Field - ┌─ src/main.nr:4:13 - │ -4 │ 1 - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/execute__tests__stderr.snap deleted file mode 100644 index 82764fb0b9a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_cyclic_globals/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Variable not in scope - ┌─ src/main.nr:3:34 - │ -3 │ pub comptime global B: u32 = A; - │ - Could not find variable - │ - -error: This global recursively depends on itself - ┌─ src/main.nr:2:34 - │ -2 │ pub comptime global A: u32 = B; - │ - - │ - -error: Dependency cycle found - ┌─ src/main.nr:2:25 - │ -2 │ pub comptime global A: u32 = B; - │ - 'A' recursively depends on itself: A -> B -> A - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/execute__tests__stderr.snap deleted file mode 100644 index 9bc51475461..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_empty_loop_no_break/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: `loop` must have at least one `break` in it - ┌─ src/main.nr:10:9 - │ -10 │ loop {} - │ ---- Infinite loops are disallowed - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/execute__tests__stderr.snap deleted file mode 100644 index 236ae0eb201..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_if_without_else_type_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Field, found type () - ┌─ src/main.nr:4:13 - │ -4 │ 1 - │ - - │ - = Are you missing a semicolon at the end of the first block of this 'if'? - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/execute__tests__stderr.snap deleted file mode 100644 index f469e79f8a6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: `loop` must have at least one `break` in it - ┌─ src/main.nr:11:9 - │ -11 │ loop { - │ ---- Infinite loops are disallowed - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/execute__tests__stderr.snap deleted file mode 100644 index f469e79f8a6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_on_loop_without_break_with_nested_loop/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: `loop` must have at least one `break` in it - ┌─ src/main.nr:11:9 - │ -11 │ loop { - │ ---- Infinite loops are disallowed - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/execute__tests__stderr.snap deleted file mode 100644 index 3b0dd4ec0ec..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_errors_with_better_message_when_trying_to_invoke_struct_field_that_is_a_function/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot invoke function field 'wrapped' on type 'Foo' as a method - ┌─ src/main.nr:8:17 - │ -8 │ self.wrapped(1) - │ --------------- to call the function stored in 'wrapped', surround the field access with parentheses: '(', ')' - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/execute__tests__stderr.snap deleted file mode 100644 index fbf15575a66..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_immutable_references_without_ownership_feature/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: This requires the unstable feature 'ownership' which is not enabled - ┌─ src/main.nr:7:27 - │ -7 │ fn borrow(_array: &[Field; 3]) {} - │ ----------- Pass -Zownership to nargo to enable this feature at your own risk. - │ - -error: This requires the unstable feature 'ownership' which is not enabled - ┌─ src/main.nr:4:20 - │ -4 │ borrow(&array); - │ ------ Pass -Zownership to nargo to enable this feature at your own risk. - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_missing_associated_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_missing_associated_type/execute__tests__stderr.snap deleted file mode 100644 index 929cd74036c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_missing_associated_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: `Foo` is missing the associated type `Assoc` - ┌─ src/main.nr:6:10 - │ -6 │ impl Foo for () {} - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/execute__tests__stderr.snap deleted file mode 100644 index 5a634e8c75c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_not_found_for_inner_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No matching impl found for `T: ToField` - ┌─ src/main.nr:31:27 - │ -31 │ process_array(serialize_thing(self)) - │ --------------- No impl for `T: ToField` - │ - = Required by `MyType: Serialize<_>` - -error: Type annotation needed - ┌─ src/main.nr:31:13 - │ -31 │ process_array(serialize_thing(self)) - │ ------------- Could not determine the value of the generic argument `N` declared on the function `process_array` - │ - -error: Type annotation needed - ┌─ src/main.nr:31:27 - │ -31 │ process_array(serialize_thing(self)) - │ --------------- Could not determine the value of the generic argument `N` declared on the function `serialize_thing` - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/execute__tests__stderr.snap deleted file mode 100644 index 40e63148362..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_generics/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:8:12 - │ - 8 │ fn foo_bad() where T: Default2; - │ ------- definition of `foo_bad` from trait - · -14 │ fn foo_bad() where B: Default2 {} - │ -------- impl has extra requirement `B: Default2` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/execute__tests__stderr.snap deleted file mode 100644 index 2df00e68b4f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_object_generics/execute__tests__stderr.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:17:12 - │ -17 │ fn bar_bad() where Option2: MyTrait, OtherOption>: OtherTrait; - │ ------- definition of `bar_bad` from trait - · -37 │ Option2: MyTrait { } - │ ------- impl has extra requirement `Option2: MyTrait` - │ - -error: impl has stricter requirements than trait - ┌─ src/main.nr:21:12 - │ -21 │ fn array_bad() where [T; 8]: MyTrait; - │ --------- definition of `array_bad` from trait - · -41 │ fn array_bad() where [B; 8]: MyTrait { } - │ ------- impl has extra requirement `[B; 8]: MyTrait` - │ - -error: impl has stricter requirements than trait - ┌─ src/main.nr:25:12 - │ -25 │ fn tuple_bad() where (Option2, Option2): MyTrait; - │ --------- definition of `tuple_bad` from trait - · -45 │ fn tuple_bad() where (Option2, Option2): MyTrait { } - │ ------- impl has extra requirement `(Option2, Option2): MyTrait` - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/execute__tests__stderr.snap deleted file mode 100644 index e89808c5e7c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:11:12 - │ -11 │ fn bar() where Option2: Default2; - │ --- definition of `bar` from trait - · -17 │ fn bar() where Option2: OtherDefault {} - │ ------------ impl has extra requirement `Option2: OtherDefault` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/execute__tests__stderr.snap deleted file mode 100644 index b36f5806bd4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_different_trait_generics/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:3:12 - │ -3 │ fn foo() where T: T2; - │ --- definition of `foo` from trait - · -8 │ fn foo() where A: T2 {} - │ -- impl has extra requirement `A: T2` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/execute__tests__stderr.snap deleted file mode 100644 index 56e468f78a8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_impl_stricter_than_trait_no_trait_method_constraints/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:5:12 - │ - 5 │ fn serialize(self) -> [Field; N]; - │ --------- definition of `serialize` from trait - · -26 │ fn serialize(self) -> [Field; 2] where T: ToField { - │ ------- impl has extra requirement `T: ToField` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/execute__tests__stderr.snap deleted file mode 100644 index c3cf59d1501..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_errors_if_using_alias_in_import/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: bar is a type alias, not a module - ┌─ src/main.nr:6:14 - │ -6 │ use foo::bar::baz; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_no_super/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_no_super/execute__tests__stderr.snap deleted file mode 100644 index 6e4781d11f3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_no_super/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: There is no super module - ┌─ src/main.nr:2:9 - │ -2 │ use super::some_func; - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/execute__tests__stderr.snap deleted file mode 100644 index 2fc3d4ea66d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_imports_warns_on_re_export_of_item_with_less_visibility/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: cannot re-export baz because it has less visibility than this use statement - ┌─ src/main.nr:7:22 - │ -7 │ pub use bar::baz; - │ --- consider marking baz as pub - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/execute__tests__stderr.snap deleted file mode 100644 index 516cca2a3de..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_struct_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Foo expects 0 generics but 1 was given - ┌─ src/main.nr:3:14 - │ -3 │ impl Foo {} - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/execute__tests__stderr.snap deleted file mode 100644 index 5195f93ca57..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_generic_count_on_type_alias/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Foo expects 0 generics but 1 was given - ┌─ src/main.nr:3:20 - │ -3 │ pub type Bar = Foo; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/execute__tests__stderr.snap deleted file mode 100644 index 143d6693b95..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_function_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected 2 generics from this function, but 3 were provided - ┌─ src/main.nr:23:21 - │ -23 │ let _ = generic_func::(); - │ --------------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/execute__tests__stderr.snap deleted file mode 100644 index 81eb213aea7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_incorrect_turbofish_count_method_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected 1 generic from this function, but 2 were provided - ┌─ src/main.nr:26:21 - │ -26 │ let _ = foo.generic_method::(); - │ ---------------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/execute__tests__stderr.snap deleted file mode 100644 index c2c8ba577e4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Indexing arrays and slices must be done with `u32`, not `u64` - ┌─ src/main.nr:5:23 - │ -5 │ let _ = array[index]; - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/execute__tests__stderr.snap deleted file mode 100644 index 53c430196c2..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_in_lvalue/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Indexing arrays and slices must be done with `u32`, not `u64` - ┌─ src/main.nr:5:15 - │ -5 │ array[index] = 0; - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/execute__tests__stderr.snap deleted file mode 100644 index 01682783393..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_on_lvalue_produces_an_error/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Indexing arrays and slices must be done with `u32`, not `Field` - ┌─ src/main.nr:5:15 - │ -5 │ array[index] = 0; - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/execute__tests__stderr.snap deleted file mode 100644 index 157aa70bd34..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_indexing_array_with_non_u32_produces_an_error/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Indexing arrays and slices must be done with `u32`, not `Field` - ┌─ src/main.nr:5:23 - │ -5 │ let _ = array[index]; - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/execute__tests__stderr.snap deleted file mode 100644 index 65bcc4dbb3f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_code_rejects_dynamic_variable/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Non-comptime variable `x` referenced in comptime code - ┌─ src/main.nr:3:32 - │ -3 │ comptime let my_var = (x - x) + 2; - │ - Non-comptime variables can't be used in comptime code - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/execute__tests__stderr.snap deleted file mode 100644 index 6df0ab64512..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_comptime_type_in_runtime_code/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Comptime-only type `FunctionDefinition` cannot be used in runtime code - ┌─ src/main.nr:2:20 - │ -2 │ pub fn foo(_f: FunctionDefinition) {} - │ ------------------ Comptime-only type used here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/execute__tests__stderr.snap deleted file mode 100644 index 79731fed8cf..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_errors_if_macros_inject_functions_with_name_collisions/execute__tests__stderr.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of function with name foo found - ┌─ src/main.nr:4:16 - │ - 4 │ fn foo() {} - │ --- - │ │ - │ Second function found here - │ First function found here - · -11 │ #[make_colliding_functions] - │ --------------------------- While running this function attribute - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/execute__tests__stderr.snap deleted file mode 100644 index 15d43226629..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_metaprogramming_macro_result_type_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type Field, found type str<4> - ┌─ src/main.nr:4:25 - │ -4 │ let x = unquote!(quote { "test" }); - │ -------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/execute__tests__stderr.snap deleted file mode 100644 index 5c15edd5ae1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_missing_unsafe_block_when_needing_type_annotations/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Call to unconstrained function is unsafe and must be in an unconstrained function or unsafe block - ┌─ src/main.nr:27:13 - │ -27 │ self.__is_zero_impl() - │ ------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_multiple_resolution_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_multiple_resolution_errors/execute__tests__stderr.snap deleted file mode 100644 index 0afd74f7a96..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_multiple_resolution_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: unused variable z - ┌─ src/main.nr:4:16 - │ -4 │ let z = y + a; - │ - unused variable - │ - -error: Could not resolve 'foo' in path - ┌─ src/main.nr:3:20 - │ -3 │ let y = foo::bar(x); - │ --- - │ - -error: cannot find `a` in this scope - ┌─ src/main.nr:4:24 - │ -4 │ let z = y + a; - │ - not found in this scope - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/execute__tests__stderr.snap deleted file mode 100644 index cef435a89c5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_mutable_reference_to_array_element_as_func_arg/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Mutable references to array elements are currently unsupported - ┌─ src/main.nr:7:18 - │ -7 │ foo(&mut state[0]); - │ -------- Try storing the element in a fresh variable first - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_non_u32_as_array_length/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_non_u32_as_array_length/execute__tests__stderr.snap deleted file mode 100644 index a4e1f357972..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_non_u32_as_array_length/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:5:21 - │ -5 │ let _a: [u32; ARRAY_LEN] = [1, 2, 3]; - │ ---------------- expected `u32`, found `u8` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/execute__tests__stderr.snap deleted file mode 100644 index 1a348266971..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_as_array_length/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:4:12 - │ -4 │ b: [Field; N], - │ ---------- the numeric generic is not of type `u32` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/execute__tests__stderr.snap deleted file mode 100644 index baebefab674..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_in_nested_array_length_fail/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:4:16 - │ -4 │ b: Bar, - │ - the numeric generic is not of type `u32` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/execute__tests__stderr.snap deleted file mode 100644 index 36793ef53e5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_1/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:6:51 - │ -6 │ pub fn read() -> T where T: Deserialize { - │ - the numeric generic is not of type `u32` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/execute__tests__stderr.snap deleted file mode 100644 index 58d48ce058e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_normal_generic_used_when_numeric_expected_in_where_clause_2/execute__tests__stderr.snap +++ /dev/null @@ -1,33 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:6:51 - │ -6 │ pub fn read() -> T where T: Deserialize { - │ - the numeric generic is not of type `u32` - │ - -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:7:25 - │ -7 │ let mut fields: [Field; N] = [0; N]; - │ ---------- the numeric generic is not of type `u32` - │ - -error: Type provided when a numeric generic was expected - ┌─ src/main.nr:7:42 - │ -7 │ let mut fields: [Field; N] = [0; N]; - │ - the numeric generic is not of type `u32` - │ - -error: cannot find `N` in this scope - ┌─ src/main.nr:8:21 - │ -8 │ for i in 0..N { - │ - not found in this scope - │ - -Aborting due to 4 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/execute__tests__stderr.snap deleted file mode 100644 index 466d4a44460..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_param_type/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type, found numeric generic - ┌─ src/main.nr:2:31 - │ -2 │ pub fn foo(x: I) -> I { - │ - not a type - │ - -error: Expected type, found numeric generic - ┌─ src/main.nr:2:37 - │ -2 │ pub fn foo(x: I) -> I { - │ - not a type - │ - -error: Expected type, found numeric generic - ┌─ src/main.nr:5:17 - │ -5 │ let _q: I = 5; - │ - not a type - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/execute__tests__stderr.snap deleted file mode 100644 index ba49a9d171d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_return_type/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: unused function foo - ┌─ src/main.nr:7:8 - │ -7 │ fn foo(x: T) -> I where T: Zeroed { - │ --- unused function - │ - -error: Expected type, found numeric generic - ┌─ src/main.nr:7:38 - │ -7 │ fn foo(x: T) -> I where T: Zeroed { - │ - not a type - │ - -error: Type annotation needed - ┌─ src/main.nr:8:9 - │ -8 │ x.zeroed() - │ -------- Could not determine the type of the generic argument `T` declared on the function `zeroed` - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/execute__tests__stderr.snap deleted file mode 100644 index 10795f6cc75..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_struct_field_type_fails/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type, found numeric generic - ┌─ src/main.nr:4:12 - │ -4 │ b: N, - │ - not a type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/execute__tests__stderr.snap deleted file mode 100644 index 267a1f5e869..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_param_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type, found numeric generic - ┌─ src/main.nr:2:32 - │ -2 │ pub fn foo(_x: I) { } - │ - not a type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/execute__tests__stderr.snap deleted file mode 100644 index 54db727ba47..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_as_unused_trait_fn_param_type/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: unused trait Foo - ┌─ src/main.nr:2:11 - │ -2 │ trait Foo { - │ --- unused trait - │ - -error: Expected type, found numeric generic - ┌─ src/main.nr:3:32 - │ -3 │ fn foo(_x: I) { } - │ - not a type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/execute__tests__stderr.snap deleted file mode 100644 index 916f659be28..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_binary_operation_type_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot assign an expression of type Field to a value of type bool - ┌─ src/main.nr:4:17 - │ -4 │ check = N; - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/execute__tests__stderr.snap deleted file mode 100644 index a8d9eee5df3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_u16_array_size/execute__tests__stderr.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:7:21 - │ -7 │ let fields: [Field; N] = [0; N]; - │ ---------- expected `u32`, found `u16` - │ - -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:7:38 - │ -7 │ let fields: [Field; N] = [0; N]; - │ - expected `u32`, found `u16` - │ - -error: Type annotation needed - ┌─ src/main.nr:8:9 - │ -8 │ len(fields) - │ --- Could not determine the value of the generic argument `N` declared on the function `len` - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/execute__tests__stderr.snap deleted file mode 100644 index e21d0c3deb9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generic_used_in_nested_type_fails/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type, found numeric generic - ┌─ src/main.nr:7:16 - │ -7 │ inner: N - │ - not a type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/execute__tests__stderr.snap deleted file mode 100644 index e548aa68ae7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_type_kind_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The numeric generic is not of type `u32` - ┌─ src/main.nr:9:15 - │ -9 │ foo::() - │ - expected `u32`, found `u16` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/execute__tests__stderr.snap deleted file mode 100644 index 74c95d8707f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_numeric_generics_value_kind_mismatch_u32_u64/execute__tests__stderr.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Duplicate definitions of import with name BoundedVec found - ┌─ std/aes128.nr:1:1 - │ -1 │ #[foreign(aes128_encrypt)] - │ - Second import found here - │ - ┌─ src/main.nr:2:12 - │ -2 │ struct BoundedVec { - │ ---------- First import found here - │ - -error: Integers must have the same bit width LHS is 64, RHS is 32 - ┌─ src/main.nr:17:20 - │ -17 │ assert(self.len < MaxLen, "push out of bounds"); - │ ----------------- - │ - -error: Indexing arrays and slices must be done with `u32`, not `u64` - ┌─ src/main.nr:18:26 - │ -18 │ self.storage[self.len] = elem; - │ -------- - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/execute__tests__stderr.snap deleted file mode 100644 index 5d9da7ab029..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_object_type_must_be_known_in_method_call/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Object type is unknown in method call - ┌─ src/main.nr:5:17 - │ -5 │ let _ = bar.len(); - │ --- Type must be known by this point to know which method to call - │ - = Try adding a type annotation for the object type before this method call - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/execute__tests__stderr.snap deleted file mode 100644 index 222ddab2313..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_only_one_private_error_when_name_in_types_and_values_namespace_collides/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: foo is private and not visible from the current module - ┌─ src/main.nr:9:22 - │ -9 │ let _ = moo::foo {}; - │ --- foo is private - │ - -error: cannot find `x` in this scope - ┌─ src/main.nr:10:9 - │ -10 │ x - │ - not found in this scope - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/execute__tests__stderr.snap deleted file mode 100644 index 5b5e24f513e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_overflowing_int_in_for_loop/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The value `-2` cannot fit into `u32` which has range `0..=4294967295` - ┌─ src/main.nr:3:18 - │ -3 │ for _ in -2..-1 {} - │ -- - │ - -error: The value `-1` cannot fit into `u32` which has range `0..=4294967295` - ┌─ src/main.nr:3:22 - │ -3 │ for _ in -2..-1 {} - │ -- - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_quote_code_fragments/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_quote_code_fragments/execute__tests__stderr.snap deleted file mode 100644 index b463c67618b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_quote_code_fragments/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Assertion failed - ┌─ src/main.nr:4:52 - │ -4 │ concat!(quote { assert( }, quote { false); }); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/execute__tests__stderr.snap deleted file mode 100644 index 04824a9346b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot mutate immutable variable `array` - ┌─ src/main.nr:4:21 - │ -4 │ mutate(&mut array); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/execute__tests__stderr.snap deleted file mode 100644 index 00a59474b42..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_cannot_mutate_immutable_variable_on_member_access/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot mutate immutable variable `foo` - ┌─ src/main.nr:8:21 - │ -8 │ mutate(&mut foo.x); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/execute__tests__stderr.snap deleted file mode 100644 index 95eff8617de..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_constrained_reference_to_unconstrained/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot pass a mutable reference from a constrained runtime to an unconstrained runtime - ┌─ src/main.nr:7:31 - │ -7 │ mut_ref_input(x_ref, y); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/execute__tests__stderr.snap deleted file mode 100644 index 20b21a21dd4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_references_does_not_crash_when_passing_mutable_undefined_variable/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: cannot find `undefined` in this scope - ┌─ src/main.nr:3:21 - │ -3 │ mutate(&mut undefined); - │ --------- not found in this scope - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_fmt_strings/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_fmt_strings/execute__tests__stderr.snap deleted file mode 100644 index 688a5039eb5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_fmt_strings/execute__tests__stderr.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: Unused expression result of type fmtstr<14, ()> - ┌─ src/main.nr:4:13 - │ -4 │ println(string); - │ --------------- - │ - -warning: Unused expression result of type fmtstr<31, (Field, Field)> - ┌─ src/main.nr:7:13 - │ -7 │ println(f"random_string{new_val}{new_val}"); - │ ------------------------------------------- - │ - -error: Duplicate definitions of import with name println found - ┌─ std/aes128.nr:1:1 - │ -1 │ #[foreign(aes128_encrypt)] - │ - Second import found here - │ - ┌─ src/main.nr:9:12 - │ -9 │ fn println(x : T) -> T { - │ ------- First import found here - │ - -error: cannot find `i` in this scope - ┌─ src/main.nr:3:40 - │ -3 │ let string = f"this is i: {i}"; - │ - not found in this scope - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_unresolved_var/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_unresolved_var/execute__tests__stderr.snap deleted file mode 100644 index f5571f6b5e7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_resolve_unresolved_var/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: cannot find `z` in this scope - ┌─ src/main.nr:4:25 - │ -4 │ assert(y == z); - │ - not found in this scope - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/execute__tests__stderr.snap deleted file mode 100644 index cc3a51b4dee..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_function/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: N has a type of Foo. The only supported numeric generic types are `u1`, `u8`, `u16`, and `u32`. - ┌─ src/main.nr:6:23 - │ -6 │ pub fn bar() { - │ --- Unsupported numeric generic type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/execute__tests__stderr.snap deleted file mode 100644 index 6da7f11db2f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_struct_numeric_generic_in_struct/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: N has a type of Foo. The only supported numeric generic types are `u1`, `u8`, `u16`, and `u32`. - ┌─ src/main.nr:5:23 - │ -5 │ pub struct Bar {} - │ --- Unsupported numeric generic type - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/execute__tests__stderr.snap deleted file mode 100644 index 91afb3414cc..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_generics_count_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Foo expects 0 generics but 1 was given - ┌─ src/main.nr:4:10 - │ -4 │ impl Foo<()> for Field {} - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/execute__tests__stderr.snap deleted file mode 100644 index c0109947c8d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_trait_impl_where_clause_stricter_pass/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: impl has stricter requirements than trait - ┌─ src/main.nr:5:12 - │ - 5 │ fn bad_foo() where H: OtherTrait; - │ ------- definition of `bad_foo` from trait - · -17 │ fn bad_foo() where A: OtherTrait { } - │ ---------- impl has extra requirement `A: OtherTrait` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/execute__tests__stderr.snap deleted file mode 100644 index 7969cdf78a0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_ambiguous_associated_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Ambiguous associated type - ┌─ src/main.nr:7:16 - │ -7 │ let _: MyTrait::X = 1; - │ ---------- If there were a type named `Example` that implemented `MyTrait`, you could use the fully-qualified path: `::X` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/execute__tests__stderr.snap deleted file mode 100644 index b1c12bca459..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_does_not_crash_on_as_trait_path_with_empty_path/execute__tests__stderr.snap +++ /dev/null @@ -1,47 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: struct `Foo` is never constructed - ┌─ src/main.nr:2:16 - │ -2 │ struct Foo { - │ --- struct is never constructed - │ - -error: is not a trait, therefore it can't be implemented - ┌─ src/main.nr:3:18 - │ -3 │ x: , - │ - - │ - -error: Expected a 'as' but found '>' - ┌─ src/main.nr:3:18 - │ -3 │ x: , - │ - - │ - -error: Expected a path but found '>' - ┌─ src/main.nr:3:18 - │ -3 │ x: , - │ - - │ - -error: Expected a '::' but found ',' - ┌─ src/main.nr:3:19 - │ -3 │ x: , - │ - - │ - -error: Expected an identifier but found ',' - ┌─ src/main.nr:3:19 - │ -3 │ x: , - │ - - │ - -Aborting due to 5 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/execute__tests__stderr.snap deleted file mode 100644 index dc1258e9e50..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_constant/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Impl for type `i32` overlaps with existing impl - ┌─ src/main.nr:6:14 - │ - 6 │ impl Foo for i32 { - │ --- Previous impl defined here - · -10 │ impl Foo for i32 { - │ --- Overlapping impl - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/execute__tests__stderr.snap deleted file mode 100644 index dc1258e9e50..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_error_on_duplicate_impl_with_associated_type/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Impl for type `i32` overlaps with existing impl - ┌─ src/main.nr:6:14 - │ - 6 │ impl Foo for i32 { - │ --- Previous impl defined here - · -10 │ impl Foo for i32 { - │ --- Overlapping impl - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/execute__tests__stderr.snap deleted file mode 100644 index b2b39debb46..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_constrained_trait_definition_has_unconstrained_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: foo is not expected to be unconstrained - ┌─ src/main.nr:7:26 - │ -7 │ unconstrained fn foo() -> Field { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/execute__tests__stderr.snap deleted file mode 100644 index 6b4f9a89c50..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_impl_trait_constraint_is_not_satisfied/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The trait bound `SomeGreeter: Greeter` is not satisfied - ┌─ src/main.nr:8:16 - │ - 8 │ T: Greeter, - │ ------- required by this bound in `Foo` - · -22 │ impl Foo for Bar {} - │ --- The trait `Greeter` is not implemented for `SomeGreeter` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/execute__tests__stderr.snap deleted file mode 100644 index 35651421677..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_function_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Multiple applicable items in scope - ┌─ src/main.nr:6:22 - │ -6 │ let _ = Bar::foo(); - │ --- All these trait which provide `foo` are implemented and in scope: `private_mod::Foo2`, `private_mod::Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/execute__tests__stderr.snap deleted file mode 100644 index 76e993fc4d3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_multiple_trait_methods_are_in_scope_for_method_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Multiple applicable items in scope - ┌─ src/main.nr:7:17 - │ -7 │ let _ = bar.foo(); - │ --------- All these trait which provide `foo` are implemented and in scope: `private_mod::Foo2`, `private_mod::Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/execute__tests__stderr.snap deleted file mode 100644 index 2b69cfedbd1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_function_call_and_there_are_multiple_candidates/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not resolve 'foo' in path - ┌─ src/main.nr:3:22 - │ -3 │ let _ = Bar::foo(); - │ --- The following traits which provide `foo` are implemented but not in scope: `private_mod::Foo2`, `private_mod::Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/execute__tests__stderr.snap deleted file mode 100644 index d85120468dd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_trait_is_not_in_scope_for_method_call_and_there_are_multiple_candidates/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not resolve 'foo' in path - ┌─ src/main.nr:4:17 - │ -4 │ let _ = bar.foo(); - │ --------- The following traits which provide `foo` are implemented but not in scope: `private_mod::Foo2`, `private_mod::Foo` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/execute__tests__stderr.snap deleted file mode 100644 index 6f9991d48c0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_if_unconstrained_trait_definition_has_constrained_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: foo is expected to be unconstrained - ┌─ src/main.nr:7:12 - │ -7 │ fn foo() -> Field { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/execute__tests__stderr.snap deleted file mode 100644 index c6402e8fd3b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_incorrect_generics_in_type_trait_call/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: struct U60Repr expects 0 generics but 1 was given - ┌─ src/main.nr:18:24 - │ -18 │ let _ = U60Repr::::from2([1, 2, 3]); - │ --------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/execute__tests__stderr.snap deleted file mode 100644 index b0633a66658..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_errors_on_unknown_type_in_trait_where_clause/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not resolve 'Unknown' in path - ┌─ src/main.nr:2:35 - │ -2 │ pub trait Foo where T: Unknown {} - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__stderr.snap deleted file mode 100644 index 4006f3d8c69..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__stderr.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No matching impl found for `(Field, Field): Serialize` - ┌─ src/main.nr:19:13 - │ -19 │ self.0.serialize(); - │ ---------------- No impl for `(Field, Field): Serialize` - │ - = Required by `((Field, Field), Field): Serialize` - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/execute__tests__stderr.snap deleted file mode 100644 index 58d1bd0c072..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_module_reexport/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `one::three::Trait` which provides `method` is implemented but not in scope, please import it - ┌─ src/main.nr:19:9 - │ -19 │ true.method() - │ ------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/execute__tests__stderr.snap deleted file mode 100644 index d002c053991..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_suggests_importing_trait_via_reexport/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `one::Trait` which provides `method` is implemented but not in scope, please import it - ┌─ src/main.nr:17:9 - │ -17 │ true.method() - │ ------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/execute__tests__stderr.snap deleted file mode 100644 index 5807850a3a3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_polymorphic_where_clause/execute__tests__stderr.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No method named 'baz' found for type 'U' - ┌─ src/main.nr:17:13 - │ -17 │ x.foo().bar().baz() - │ ------------------- - │ - -error: No matching impl found for `T: Baz` - ┌─ src/main.nr:39:43 - │ -39 │ assert(0.foo().bar().baz() == qux(0)); - │ --- No impl for `T: Baz` - │ - = Required by `Field: Qux<_>` - -error: Type annotation needed - ┌─ src/main.nr:39:43 - │ -39 │ assert(0.foo().bar().baz() == qux(0)); - │ --- Could not determine the type of the generic argument `U` declared on the function `qux` - │ - -Aborting due to 3 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/execute__tests__stderr.snap deleted file mode 100644 index 1490dedd9c4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No method named 'baz' found for type 'T' - ┌─ src/main.nr:18:13 - │ -18 │ x.baz() - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/execute__tests__stderr.snap deleted file mode 100644 index e00c6621d35..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_alias_with_where_clause_has_equivalent_errors_2/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No method named 'baz' found for type 'T' - ┌─ src/main.nr:13:13 - │ -13 │ x.baz() - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/execute__tests__stderr.snap deleted file mode 100644 index e542531f2d0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_dependency_cycle/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Dependency cycle found - ┌─ src/main.nr:2:15 - │ -2 │ trait Foo: Bar {} - │ --- 'Foo' recursively depends on itself: Foo -> Bar -> Foo - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/execute__tests__stderr.snap deleted file mode 100644 index 08e247fcf46..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_trait_inheritance_missing_parent_implementation/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The trait bound `Struct: Foo` is not satisfied - ┌─ src/main.nr:4:24 - │ -4 │ pub trait Bar: Foo {} - │ --- required by this bound in `Bar` - · -8 │ impl Bar for Struct {} - │ ------ The trait `Foo` is not implemented for `Struct` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/execute__tests__stderr.snap deleted file mode 100644 index efa54b7293a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_type_checks_trait_default_method_and_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: expected type i32, found type bool - ┌─ src/main.nr:3:29 - │ -3 │ fn foo(self) -> i32 { - │ --- expected i32 because of return type -4 │ let _ = self; -5 │ true - │ ---- bool returned here - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap deleted file mode 100644 index 0d35db66c8d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `private_mod::Foo` which provides `foo` is implemented but not in scope, please import it - ┌─ src/main.nr:3:22 - │ -3 │ let _ = Bar::foo(); - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap deleted file mode 100644 index 899f022ce1f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_generic_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `private_mod::Foo` which provides `foo` is implemented but not in scope, please import it - ┌─ src/main.nr:4:17 - │ -4 │ let _ = x.foo(); - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap deleted file mode 100644 index 90327f029d4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `private_mod::Foo` which provides `foo` is implemented but not in scope, please import it - ┌─ src/main.nr:4:17 - │ -4 │ let _ = bar.foo(); - │ --------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap deleted file mode 100644 index 7efdd98c1ba..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_function_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `private_mod::Foo` which provides `foo` is implemented but not in scope, please import it - ┌─ src/main.nr:3:24 - │ -3 │ let _ = Field::foo(); - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap deleted file mode 100644 index 899f022ce1f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_traits_warns_if_trait_is_not_in_scope_for_primitive_method_call_and_there_is_only_one_trait_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: trait `private_mod::Foo` which provides `foo` is implemented but not in scope, please import it - ┌─ src/main.nr:4:17 - │ -4 │ let _ = x.foo(); - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/execute__tests__stderr.snap deleted file mode 100644 index 8499ed4c5cd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_errors_if_turbofish_after_module/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: turbofish (`::<_>`) not allowed on module `moo` - ┌─ src/main.nr:7:12 - │ -7 │ moo::::foo(); - │ ------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/execute__tests__stderr.snap deleted file mode 100644 index 63ca70ff257..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_trait_function_with_turbofish_on_trait_gives_error/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type bool, found type Field - ┌─ src/main.nr:13:39 - │ -13 │ let _: i32 = Foo::::foo(1); - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/execute__tests__stderr.snap deleted file mode 100644 index a652a0b75ab..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type i32, found type Field - ┌─ src/main.nr:8:33 - │ -8 │ let _ = Foo:: { x: x }; - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/execute__tests__stderr.snap deleted file mode 100644 index f007313adba..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_constructor_generics_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: struct Foo expects 1 generic but 2 were given - ┌─ src/main.nr:7:20 - │ -7 │ let _ = Foo:: { x: 1 }; - │ ------------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/execute__tests__stderr.snap deleted file mode 100644 index abff32aa0d2..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_errors_if_type_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Cannot assign an expression of type Foo to a value of type Foo - ┌─ src/main.nr:8:13 - │ -8 │ let Foo:: { x } = Foo { x: value }; - │ ---------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/execute__tests__stderr.snap deleted file mode 100644 index d5e3659c9fd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern_generic_count_mismatch/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: struct Foo expects 1 generic but 2 were given - ┌─ src/main.nr:8:16 - │ -8 │ let Foo:: { x } = Foo { x: value }; - │ ------------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/execute__tests__stderr.snap deleted file mode 100644 index d976ed0f8fb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type i32, found type bool - ┌─ src/main.nr:13:33 - │ -13 │ let _ = Foo::::new(true); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/execute__tests__stderr.snap deleted file mode 100644 index 2fdaed15918..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_turbofish_named_numeric/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: No matching impl found for `i32: Bar` - ┌─ src/main.nr:21:9 - │ -21 │ foo::(); - │ ---------- No impl for `i32: Bar` - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/execute__tests__stderr.snap deleted file mode 100644 index 4b66b4c006d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_first_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type bool, found type Field - ┌─ src/main.nr:16:38 - │ -16 │ let _ = Bar::::new(1, 1); - │ - - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/execute__tests__stderr.snap deleted file mode 100644 index 338910f8499..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_errors_second_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type i32, found type bool - ┌─ src/main.nr:16:44 - │ -16 │ let _ = Bar::::new(true, true); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/execute__tests__stderr.snap deleted file mode 100644 index b6138fbb6ca..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_errors/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Expected type i32, found type bool - ┌─ src/main.nr:15:37 - │ -15 │ let _ = Bar::::new(true); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/execute__tests__stderr.snap deleted file mode 100644 index a96d1a5b5ee..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_numeric_generic_in_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The type parameter `N` is not constrained by the impl trait, self type, or predicates - ┌─ src/main.nr:4:18 - │ -4 │ impl Foo {} - │ - Hint: remove the `N` type parameter - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/execute__tests__stderr.snap deleted file mode 100644 index 0b5993159a8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unconstrained_type_parameter_in_impl/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The type parameter `U` is not constrained by the impl trait, self type, or predicates - ┌─ src/main.nr:4:17 - │ -4 │ impl Foo {} - │ - Hint: remove the `U` type parameter - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unresolved_path/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unresolved_path/execute__tests__stderr.snap deleted file mode 100644 index bbdea1e438a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unresolved_path/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Could not resolve 'some' in path - ┌─ src/main.nr:3:22 - │ -3 │ let _z = some::path::to::a::func(x); - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/execute__tests__stderr.snap deleted file mode 100644 index 8ddcccf2630..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_does_not_consider_struct_as_constructed_if_mentioned_in_function_argument/execute__tests__stderr.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -warning: struct `Bar` is never constructed - ┌─ src/main.nr:2:12 - │ -2 │ struct Bar {} - │ --- struct is never constructed - │ - -error: Function expects 1 parameter but 0 were given - ┌─ src/main.nr:7:9 - │ -7 │ foo(); - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/execute__tests__stderr.snap deleted file mode 100644 index cf61d8ba4b4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_unused_items_errors_on_unused_function/execute__tests__stderr.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: cannot compile crate into a program as it does not contain a `main` function - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/execute__tests__stderr.snap deleted file mode 100644 index 615e73fcf1d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_uses_self_type_in_trait_where_clause/execute__tests__stderr.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The trait bound `_: Trait` is not satisfied - ┌─ src/main.nr:6:31 - │ - 6 │ pub trait Foo where Self: Trait { - │ ----- required by this bound in `Foo` - · -14 │ impl Foo for Bar { - │ --- The trait `Trait` is not implemented for `_` - │ - -error: No method named 'trait_func' found for type 'Bar' - ┌─ src/main.nr:8:13 - │ -8 │ self.trait_func() - │ ----------------- - │ - -Aborting due to 2 previous errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__stderr.snap deleted file mode 100644 index 52a6eff24b3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: x is private and not visible from the current module - ┌─ src/main.nr:9:13 - │ -9 │ foo.x - │ - x is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__stderr.snap deleted file mode 100644 index 37a0c204257..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: x is private and not visible from the current module - ┌─ src/main.nr:9:28 - │ -9 │ let _ = moo::Foo { x: 1 }; - │ - x is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__stderr.snap deleted file mode 100644 index 875ed57ba0a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: x is private and not visible from the current module - ┌─ src/main.nr:9:24 - │ -9 │ let moo::Foo { x } = foo; - │ - x is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__stderr.snap deleted file mode 100644 index 15f8226ebbf..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: inner is private and not visible from the current module - ┌─ src/main.nr:19:25 - │ -19 │ let _ = foo.inner; - │ ----- inner is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__stderr.snap deleted file mode 100644 index a81bbd01b26..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__stderr.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: foo_inner is private and not visible from the current module - ┌─ src/main.nr:10:5 - │ -10 │ #[generate_inner_accessor] - │ -------------------------- While running this function attribute - · -18 │ x.bar_inner.foo_inner - │ --------- foo_inner is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/execute__tests__stderr.snap deleted file mode 100644 index c3bdb6d156a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_calling_private_struct_method/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: bar is private and not visible from the current module - ┌─ src/main.nr:13:13 - │ -13 │ foo.bar() - │ --- bar is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/execute__tests__stderr.snap deleted file mode 100644 index 8b116cea04b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_arg/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `bar` - ┌─ src/main.nr:4:16 - │ -4 │ pub fn bar(_bar: Bar) {} - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/execute__tests__stderr.snap deleted file mode 100644 index ddcc9829dfd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_leaks_private_type_in_return/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `bar` - ┌─ src/main.nr:5:16 - │ -5 │ pub fn bar() -> Bar { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/execute__tests__stderr.snap deleted file mode 100644 index 94b9d90f395..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_function_on_pub_struct_returns_private/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `bar` - ┌─ src/main.nr:7:20 - │ -7 │ pub fn bar() -> Bar { - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/execute__tests__stderr.snap deleted file mode 100644 index 64af9cd6698..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_struct_field_leaks_private_type_in_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `FooBar::value` - ┌─ src/main.nr:5:33 - │ -5 │ pub struct FooBar { pub value: Foo } - │ ----- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/execute__tests__stderr.snap deleted file mode 100644 index 6a5c9297ab6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_trait_returns_private_struct/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `foo` - ┌─ src/main.nr:6:16 - │ -6 │ fn foo() -> Bar; - │ --- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/execute__tests__stderr.snap deleted file mode 100644 index 7aedbe61887..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_pub_type_alias_leaks_private_type_in_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Bar` is more private than item `FooBar` - ┌─ src/main.nr:5:9 - │ -5 │ pub type FooBar = Foo; - │ -------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__stderr.snap deleted file mode 100644 index f891d3c5214..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: bar is private and not visible from the current module - ┌─ src/main.nr:8:14 - │ -8 │ foo::bar::baz() - │ --- bar is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/execute__tests__stderr.snap deleted file mode 100644 index 05b0f811d17..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Foo` is more private than item `Bar` - ┌─ src/main.nr:3:5 - │ -3 │ pub type Bar = Foo; - │ ------------------ - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/execute__tests__stderr.snap deleted file mode 100644 index 04347fc1cf1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_if_type_alias_aliases_more_private_type_in_generic/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Type `Foo` is more private than item `Bar` - ┌─ src/main.nr:4:5 - │ -4 │ pub type Bar = Generic; - │ --------------------------- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/execute__tests__stderr.snap deleted file mode 100644 index 64c99d3f824..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_on_use_of_private_exported_item/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: baz is private and not visible from the current module - ┌─ src/main.nr:15:14 - │ -15 │ foo::baz(); - │ --- baz is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__stderr.snap deleted file mode 100644 index 9fd01fbe536..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: Foo is private and not visible from the current module - ┌─ src/main.nr:5:18 - │ -5 │ use moo::Foo; - │ --- Foo is private - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/execute__tests__stderr.snap deleted file mode 100644 index 82427df0560..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_failure/noirc_frontend_tests_wrong_type_in_for_range/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -error: The type bool cannot be used in a for loop - ┌─ src/main.nr:3:18 - │ -3 │ for _ in true..false { - │ ---- - │ - -Aborting due to 1 previous error diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/execute__tests__expanded.snap deleted file mode 100644 index 1caefda95bf..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_monomorphization_tests_simple_closure_with_no_captured_variables/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(y: Field) -> pub Field { - let x: Field = 1_Field; - let closure: fn[(Field,)]() -> Field = || -> Field x; - closure() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/execute__tests__expanded.snap deleted file mode 100644 index 2c45be4a314..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_alias_in_let_pattern/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: T, -} - -type Bar = Foo; - -fn main() { - let Foo::<[Field; 1]> { x }: Foo<[Field; 1]> = Foo::<[Field; 1]> { x: [0_Field] }; - let _: [Field; 1] = x; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/execute__tests__expanded.snap deleted file mode 100644 index 3e7a450ee26..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_argument_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Foo = Field; - -fn accepts_a_foo(x: Foo) { - assert(x == 42_Field); -} - -fn main() { - accepts_a_foo(42_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/execute__tests__expanded.snap deleted file mode 100644 index de71c137e3e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_allows_usage_of_type_alias_as_return_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Foo = Field; - -fn returns_a_foo() -> Foo { - 42_Field -} - -fn main() { - let _: Field = returns_a_foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/execute__tests__expanded.snap deleted file mode 100644 index 2489389dd25..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_alias_in_path/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type FooAlias1 = Foo; - -type FooAlias2 = FooAlias1; - -fn main() { - let _: Foo = Foo::new(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/execute__tests__expanded.snap deleted file mode 100644 index 7389959416f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_double_generic_alias_in_path/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type FooAlias1 = Foo; - -type FooAlias2 = FooAlias1; - -fn main() { - let _: Foo = Foo::::new(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/execute__tests__expanded.snap deleted file mode 100644 index e8198774ba1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_identity_numeric_type_alias_works/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub type Identity = N; - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/execute__tests__expanded.snap deleted file mode 100644 index 9430ccc232a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_as_generic/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Double = N * 2; - -pub struct Foo { - a: T, - b: [Field; N], -} - -fn main(x: Field) { - let a: Foo = foo::<4>(x); - assert(a.a == x); -} - -fn foo(x: Field) -> Foo> { - Foo:: { a: x, b: [1_Field; N * 2] } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/execute__tests__expanded.snap deleted file mode 100644 index 3b197c73153..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_aliases_type_alias_to_numeric_generic/execute__tests__expanded.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Double = N * 2; - -fn main() { - let b: [u32; 6] = foo(); - assert(b[0_u32] == 0_u32); -} - -fn foo() -> [u32; N * 2] { - let mut a: [u32; N * 2] = [0_u32; N * 2]; - for i in 0_u32..N * 2_u32 { - a[i] = i; - } - a -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/execute__tests__expanded.snap deleted file mode 100644 index b64bce5b817..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allow_capturing_mut_variable_only_used_immutably/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let mut x: Field = 3_Field; - let f: fn[(Field,)]() -> Field = || -> Field x; - let _x2: Field = f(); - assert(x == 3_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/execute__tests__expanded.snap deleted file mode 100644 index 359115e53f5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_multiple_underscore_parameters/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub fn foo(_: i32, _: i64) {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/execute__tests__expanded.snap deleted file mode 100644 index c8f82de98fb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_1/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: [u64; N * 2], -} - -fn main(_x: Foo<18>) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/execute__tests__expanded.snap deleted file mode 100644 index c8f82de98fb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_2/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: [u64; N * 2], -} - -fn main(_x: Foo<18>) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/execute__tests__expanded.snap deleted file mode 100644 index 337aba75952..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_allows_struct_with_generic_infix_type_as_main_input_3/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: [u64; N * 2], -} - -global N: u32 = 9; - -fn main(_x: Foo<18>) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/execute__tests__expanded.snap deleted file mode 100644 index f5b3501041c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_arithmetic_generics_canonicalization_deduplication_regression/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct ArrData { - a: [Field; N], - b: [Field; (N + N) - 1], -} - -fn main() { - let _f: ArrData<5> = ArrData::<5> { a: [0_Field; 5], b: [0_Field; 9] }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/execute__tests__expanded.snap deleted file mode 100644 index 1bcb2ca3863..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_checked_casts_do_not_prevent_canonicalization/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Serialize { - fn serialize(self) -> [Field; N]; -} - -pub struct Counted { - pub inner: T, -} - -impl Serialize for Counted -where - T: Serialize, -{ - fn serialize(self) -> [Field; N] { - append(self.inner.serialize()) - } -} - -pub fn append(array1: [T; N]) -> [T; N + 1] { - [array1[0_u32]; N + 1] -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/execute__tests__expanded.snap deleted file mode 100644 index e05caa7f1d8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_arithmetic_generic_larger_than_u32/execute__tests__expanded.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn size(self) -> Field { - let _: Self = self; - F - } -} - -global A: Field = 4294967295; - -fn foo() -> Foo { - Foo:: {} -} - -fn main() { - let _: Field = foo::<4294967295>().size(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/execute__tests__expanded.snap deleted file mode 100644 index 3c6309af42c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_global_numeric_generic_larger_than_u32/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global A: Field = 4294967297; - -fn foo() {} - -fn main() { - let _: () = foo::<4294967297>(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/execute__tests__expanded.snap deleted file mode 100644 index 5757793777e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_arithmetic_generics_rounding_pass/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - round::<3, 2>([1_Field, 2_Field]); -} - -fn round(_x: [Field; M * (N / M)]) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/execute__tests__expanded.snap deleted file mode 100644 index d5bd498e693..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_bit_not_on_untyped_integer/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let _: u32 = 3_u32 & !1_u32; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/execute__tests__expanded.snap deleted file mode 100644 index ce97e7e0111..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_call_function_alias_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Alias = fn[Env](Field) -> Field; - -fn main() { - call_fn(|x: Field| -> Field { x + 1_Field }); -} - -fn call_fn(f: Alias) { - assert(f(0_Field) == 1_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/execute__tests__expanded.snap deleted file mode 100644 index 6a37c223fef..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_explicitly_typed_var/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let _func: unconstrained fn() = foo; -} - -fn foo() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/execute__tests__expanded.snap deleted file mode 100644 index adb2740f21f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_assign_regular_function_to_unconstrained_function_in_struct_member/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let _: Foo = Foo { func: foo }; -} - -fn foo() {} - -struct Foo { - func: unconstrained fn(), -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/execute__tests__expanded.snap deleted file mode 100644 index 753ad15ff59..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_can_pass_regular_function_to_unconstrained_function/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let func: fn() = foo; - expect_unconstrained(func); -} - -fn foo() {} - -fn expect_unconstrained(_func: unconstrained fn()) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/execute__tests__expanded.snap deleted file mode 100644 index 1ac7c3d9d1a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_cast_256_to_u8_size_checks/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - assert((256_Field as u8) == 0_u8); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/execute__tests__expanded.snap deleted file mode 100644 index 9a092cd849a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_fn_parameter/execute__tests__expanded.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Self) -> bool { - self.a == other.a - } -} - -fn test_eq(x: impl Eq2) -> bool -where - impl Eq2: Eq2, -{ - x.eq2(x) -} - -fn main(a: Foo) -> pub bool { - test_eq(a) -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/execute__tests__expanded.snap deleted file mode 100644 index 41c6a05c625..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_as_type_as_two_fn_parameters/execute__tests__expanded.snap +++ /dev/null @@ -1,39 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -trait Test { - fn test(self) -> bool; -} - -impl Test for u64 { - fn test(self) -> bool { - self == self - } -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Self) -> bool { - self.a == other.a - } -} - -fn test_eq(x: impl Eq2, y: impl Test) -> bool -where - impl Eq2: Eq2, - impl Test: Test, -{ - x.eq2(x) == y.test() -} - -fn main(a: Foo, b: u64) -> pub bool { - test_eq(a, b) -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/execute__tests__expanded.snap deleted file mode 100644 index 12ed51e266d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_check_trait_implemented_for_all_t/execute__tests__expanded.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Default2 { - fn default2() -> Self; -} - -impl Default2 for u64 { - fn default2() -> Self { - 0_u64 - } -} - -trait Eq2 { - fn eq2(self, other: Self) -> bool; -} - -trait IsDefault { - fn is_default(self) -> bool; -} - -impl IsDefault for T -where - T: Default2, - T: Eq2, -{ - fn is_default(self) -> bool { - self.eq2(Self::default2()) - } -} - -struct Foo { - a: u64, -} - -impl Eq2 for Foo { - fn eq2(self, other: Self) -> bool { - self.a == other.a - } -} - -impl Default2 for Foo { - fn default2() -> Self { - Self { a: ::default2() } - } -} - -fn main(a: Foo) -> pub bool { - a.is_default() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/execute__tests__expanded.snap deleted file mode 100644 index 92bd3567676..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_checks_visibility_of_trait_related_to_trait_impl_on_method_call/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Bar {} - - impl crate::Foo for Bar { - fn foo(self) {} - } -} - -trait Foo { - fn foo(self); -} - -fn main() { - let bar: moo::Bar = moo::Bar {}; - bar.foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/execute__tests__expanded.snap deleted file mode 100644 index 9431963fdc6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_constant_used_with_numeric_generic/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct ValueNote { - value: Field, -} - -impl Serialize<1> for ValueNote { - fn serialize(self) -> [Field; 1] { - [self.value] - } -} - -trait Serialize { - fn serialize(self) -> [Field; N]; -} - -fn main() { - let _: ValueNote = ValueNote { value: 1_Field }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/execute__tests__expanded.snap deleted file mode 100644 index e31e7e6dbf5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_do_not_eagerly_error_on_cast_on_type_variable/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub fn foo(x: T, f: fn(T) -> U) -> U { - f(x) -} - -fn main() { - let x: u8 = 1_u8; - let _: Field = foo(x, |x: u8| -> Field { x as Field }); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/execute__tests__expanded.snap deleted file mode 100644 index cdc643a5752..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_error_on_return_values_after_block_expression/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn case1() -> [Field] { - if true {}; - &[1_Field] -} - -fn case2() -> [u8] { - let mut var: u8 = 1_u8; - { var = var + 1_u8; }; - &[var] -} - -fn main() { - let _: [Field] = case1(); - let _: [u8] = case2(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/execute__tests__expanded.snap deleted file mode 100644 index 7c8deb6f9dd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_does_not_stack_overflow_on_many_comments_in_a_row/execute__tests__expanded.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/execute__tests__expanded.snap deleted file mode 100644 index adbf59d0396..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_enum/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -enum Foo { - Bar, -} - -fn main() { - let _x: Foo = Foo::Bar; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/execute__tests__expanded.snap deleted file mode 100644 index 2593d08b189..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_errors_on_unspecified_unstable_match/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - { - let internal___variable: Field = 3_Field; - { - let _: Field = internal___variable; - () - } - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/execute__tests__expanded.snap deleted file mode 100644 index df15d68dde6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_enums_match_shadow_global/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - { - let internal___variable: Field = 2_Field; - { - let foo: Field = internal___variable; - assert(foo == 2_Field) - } - } -} - -fn foo() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/execute__tests__expanded.snap deleted file mode 100644 index c37ee5410cf..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_for_loop_over_array/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn hello(_array: [u1; N]) { - for _ in 0_u32..N {} -} - -fn main() { - let array: [u1; 2] = [0_u1, 1_u1]; - hello(array); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/execute__tests__expanded.snap deleted file mode 100644 index 5ba0e2f78b8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_can_use_pub_use_item/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod foo { - pub use bar::baz; - - mod bar { - pub fn baz() {} - } -} - -fn main() { - foo::baz(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super/execute__tests__expanded.snap deleted file mode 100644 index 49e8a91cfb4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn some_func() {} - -mod foo { - use crate::some_func; - - pub fn bar() { - some_func(); - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/execute__tests__expanded.snap deleted file mode 100644 index 616d975edf9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_use_super_in_path/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn some_func() {} - -mod foo { - pub fn func() { - crate::some_func(); - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_warns_on_use_of_private_exported_item/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_warns_on_use_of_private_exported_item/execute__tests__expanded.snap deleted file mode 100644 index e30ea5dc4b1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_imports_warns_on_use_of_private_exported_item/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod foo { - use bar::baz; - - mod bar { - pub fn baz() {} - } - - pub fn qux() { - baz(); - } -} - -fn main() { - foo::bar::baz(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_a_warning/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_a_warning/execute__tests__expanded.snap deleted file mode 100644 index d4256f02a7a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_a_warning/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let index: u32 = 0; - let array: [Field; 3] = [1, 2, 3]; - let _: Field = array[index]; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/execute__tests__expanded.snap deleted file mode 100644 index 45ce07c6a75..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_default_numeric_type_does_not_produce_an_error/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let index: u32 = 0_u32; - let array: [Field; 3] = [1_Field, 2_Field, 3_Field]; - let _: Field = array[index]; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_a_warning/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_a_warning/execute__tests__expanded.snap deleted file mode 100644 index d4256f02a7a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_a_warning/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let index: u32 = 0; - let array: [Field; 3] = [1, 2, 3]; - let _: Field = array[index]; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/execute__tests__expanded.snap deleted file mode 100644 index 45ce07c6a75..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_indexing_array_with_u32_does_not_produce_an_error/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let index: u32 = 0_u32; - let array: [Field; 3] = [1_Field, 2_Field, 3_Field]; - let _: Field = array[index]; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/execute__tests__expanded.snap deleted file mode 100644 index 301a6b85747..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - value: Field, -} - -fn call(f: fn(Foo) -> Field) -> Field { - f(Foo { value: 1_Field }) -} - -fn main() { - let _: Field = call(|foo: Foo| -> Field foo.value); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/execute__tests__expanded.snap deleted file mode 100644 index 1b61bd805ed..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_as_alias/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - value: Field, -} - -type MyFn = fn(Foo) -> Field; - -fn call(f: MyFn) -> Field { - f(Foo { value: 1_Field }) -} - -fn main() { - let _: Field = call(|foo: Foo| -> Field foo.value); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/execute__tests__expanded.snap deleted file mode 100644 index 16cadaf0a7a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_call_function_type_in_generic_call/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - value: Field, -} - -fn call(t: T, f: fn(T) -> Field) -> Field { - f(t) -} - -fn main() { - let _: Field = call(Foo { value: 1_Field }, |foo: Foo| -> Field foo.value); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/execute__tests__expanded.snap deleted file mode 100644 index b0d855aee16..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -pub fn func() -> fn(Foo) -> Field { - |foo: Foo| -> Field foo.value -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/execute__tests__expanded.snap deleted file mode 100644 index ca63ebf170b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_multiple_statements/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -pub fn func() -> fn(Foo) -> Field { - let _: Field = 1_Field; - |foo: Foo| -> Field foo.value -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/execute__tests__expanded.snap deleted file mode 100644 index e99f6685bae..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_function_return_type_when_inside_if/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -pub fn func() -> fn(Foo) -> Field { - if true { - |foo: Foo| -> Field foo.value - } else { - |foo: Foo| -> Field foo.value - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/execute__tests__expanded.snap deleted file mode 100644 index 94c13d43943..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_method_call_function_type/execute__tests__expanded.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - value: Field, -} - -impl Foo { - fn foo(self) -> Field { - self.value - } -} - -struct Box { - value: T, -} - -impl Box { - fn map(self, f: fn(T) -> U) -> Box { - Box:: { value: f(self.value) } - } -} - -fn main() { - let box: Box = Box:: { value: Foo { value: 1_Field } }; - let _: Box = box.map(|foo: Foo| -> Field foo.foo()); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/execute__tests__expanded.snap deleted file mode 100644 index 4284b900f3a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_alias_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -type FooFn = fn(Foo) -> Field; - -fn main() { - let _: FooFn = |foo: Foo| -> Field foo.value; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/execute__tests__expanded.snap deleted file mode 100644 index 94adde2757d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_double_alias_type/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -type FooFn = fn(Foo) -> Field; - -type FooFn2 = FooFn; - -fn main() { - let _: FooFn2 = |foo: Foo| -> Field foo.value; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/execute__tests__expanded.snap deleted file mode 100644 index 7606e0c0570..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -fn main() { - let _: (fn(Foo) -> Field, Field) = (|foo: Foo| -> Field foo.value, 1_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/execute__tests__expanded.snap deleted file mode 100644 index d25a6d68d25..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_tuple_type_aliased/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -type Alias = (fn(Foo) -> Field, Field); - -fn main() { - let _: Alias = (|foo: Foo| -> Field foo.value, 1_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/execute__tests__expanded.snap deleted file mode 100644 index eeb3853e9e1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_infers_lambda_argument_from_variable_type/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - value: Field, -} - -fn main() { - let _: fn(Foo) -> Field = |foo: Foo| -> Field foo.value; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_int_min_global/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_int_min_global/execute__tests__expanded.snap deleted file mode 100644 index eb3729a9824..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_int_min_global/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global MIN: i8 = -128; - -fn main() { - let _x: i8 = MIN; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/execute__tests__expanded.snap deleted file mode 100644 index 08f5029006d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_allows_references_to_structs_generated_by_macros/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -comptime fn make_new_struct(_s: TypeDefinition) -> Quoted { - quote { - struct Bar { - - } - } -} - -struct Bar {} - -struct Foo {} - -fn main() { - let _: Foo = Foo {}; - let _: Bar = Bar {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/execute__tests__expanded.snap deleted file mode 100644 index 630870d967c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_comptime_let/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - (); - assert(2_Field == 2_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/execute__tests__expanded.snap deleted file mode 100644 index 9f6f1b5eeb6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_does_not_fail_to_parse_macro_on_parser_warning/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub unconstrained fn foo() {} - -comptime fn make_bar(_: FunctionDefinition) -> Quoted { - quote { - pub fn bar() { - unsafe { - foo(); - } - } - } -} - -pub fn bar() { - // Safety: comment added by `nargo expand` - unsafe { - foo(); - } -} - -fn main() { - bar() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/execute__tests__expanded.snap deleted file mode 100644 index a49fc7162b7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_unquoted_integer_as_integer_token/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Serialize { - fn serialize() {} -} - -impl Serialize<1> for Field { - fn serialize() {} -} - -pub fn foobar() {} - -comptime fn attr(_f: FunctionDefinition) -> Quoted { - let serialized_len: Field = 1_Field; - quote { - impl Serialize < $serialized_len > for Field { - fn serialize() { - - } - } - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/execute__tests__expanded.snap deleted file mode 100644 index f409505a9ae..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_metaprogramming_uses_correct_type_for_attribute_arguments/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -comptime fn foo(_f: FunctionDefinition, i: u32) { - let y: u32 = 1_u32; - let _: bool = y == i; -} - -comptime fn bar(_f: FunctionDefinition, i: [u32; 2]) { - let y: u32 = 1_u32; - let _: bool = y == i[0_u32]; -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/execute__tests__expanded.snap deleted file mode 100644 index 0c951c1697b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutable_self_call/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let mut bar: Bar = Bar {}; - let _: () = bar.bar(); -} - -struct Bar {} - -impl Bar { - fn bar(&mut self) { - let _: &mut Self = self; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/execute__tests__expanded.snap deleted file mode 100644 index b7bdb8a4c5b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_in_lambda/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let x: &mut Field = &mut 3_Field; - let f: fn[(&mut Field,)]() = || { *x = *x + 2_Field; }; - f(); - assert(*x == 5_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/execute__tests__expanded.snap deleted file mode 100644 index 0a63711a601..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_mutate_with_reference_marked_mutable_in_lambda/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let mut x: &mut Field = &mut 3_Field; - let f: fn[(&mut Field,)]() = || { *x = *x + 2_Field; }; - f(); - assert(*x == 5_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/execute__tests__expanded.snap deleted file mode 100644 index 34f990a834d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_arithmetic_larger_than_u32/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -fn size(_x: Foo) -> Field { - F -} - -global A: Field = 4294967295; - -fn foo() -> Foo { - Foo:: {} -} - -fn main() { - let _: Field = size(foo::<4294967295>()); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/execute__tests__expanded.snap deleted file mode 100644 index 3c6309af42c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_field_larger_than_u32/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global A: Field = 4294967297; - -fn foo() {} - -fn main() { - let _: () = foo::<4294967297>(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/execute__tests__expanded.snap deleted file mode 100644 index ddc10b80241..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_function_signature/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub fn foo(arr: [Field; N]) -> [Field; N] { - arr -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/execute__tests__expanded.snap deleted file mode 100644 index ee286d609f8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_in_trait_impl_with_extra_impl_generics/execute__tests__expanded.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Default2 { - fn default2() -> Self; -} - -struct MyType { - a: Field, - b: Field, - c: Field, - d: T, -} - -impl Deserialize for MyType -where - T: Default2, -{ - fn deserialize(fields: [Field; N]) -> Self { - Self { a: fields[0_u32], b: fields[1_u32], c: fields[2_u32], d: T::default2() } - } -} - -trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/execute__tests__expanded.snap deleted file mode 100644 index fe9818f158b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_nested_type_pass/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct NestedNumeric { - a: Field, - b: InnerNumeric, -} - -pub struct InnerNumeric { - inner: [u64; N], -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/execute__tests__expanded.snap deleted file mode 100644 index 8dac74f188c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_trait/execute__tests__expanded.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct MyType { - a: Field, - b: Field, - c: Field, - d: T, -} - -impl Deserialize for MyType { - fn deserialize(fields: [Field; N], other: T) -> Self { - Self { a: fields[0_u32], b: fields[1_u32], c: fields[2_u32], d: other } - } -} - -trait Deserialize { - fn deserialize(fields: [Field; N], other: T) -> Self; -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/execute__tests__expanded.snap deleted file mode 100644 index 94d0ea37797..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_turbofish/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub fn double() -> u32 { - N * 2_u32 -} - -pub fn double_numeric_generics_test() { - assert(double::<9>() == 18_u32); - assert(double::<15>() == 30_u32); -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/execute__tests__expanded.snap deleted file mode 100644 index 45c4d89ad1f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_numeric_generic_used_in_where_clause/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Deserialize { - fn deserialize(fields: [Field; N]) -> Self; -} - -pub fn read() -> T -where - T: Deserialize, -{ - let mut fields: [Field; N] = [0_Field; N]; - for i in 0_u32..N { - fields[i] = (i as Field) + 1_Field; - } - T::deserialize(fields) -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/execute__tests__expanded.snap deleted file mode 100644 index 3f6d6e59f5d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_operators_in_global_used_in_type/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global ONE: u32 = 1; - -global COUNT: u32 = 3; - -fn main() { - let _array: [Field; 3] = [1_Field, 2_Field, 3_Field]; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_regression_7088/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_regression_7088/execute__tests__expanded.snap deleted file mode 100644 index f4609a642d1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_regression_7088/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct U60Repr {} - -impl U60Repr { - fn new(_: [Field; N * NumFieldSegments]) -> Self { - Self {} - } -} - -fn main() { - let input: [Field; 6] = [0_Field; 6]; - let _: U60Repr<3, 6> = U60Repr::<6 / 2, 6>::new(input); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/execute__tests__expanded.snap deleted file mode 100644 index 74e5a4e722f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_closure/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) -> pub Field { - let closure: fn[(Field,)](Field) -> Field = |y: Field| -> Field { y + x }; - closure(x) -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/execute__tests__expanded.snap deleted file mode 100644 index b16c5eede2d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_basic_function/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let y: Field = x + x; - assert(y == x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/execute__tests__expanded.snap deleted file mode 100644 index 64a87d276b4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_call_expr/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let _z: Field = foo(x); -} - -fn foo(x: Field) -> Field { - x -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/execute__tests__expanded.snap deleted file mode 100644 index 0a7d7aac07d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_1/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) -> pub Field { - let closure_without_captures: fn(Field) -> Field = |x: Field| -> Field { x + x }; - let a: Field = closure_without_captures(1_Field); - let closure_capturing_a_param: fn[(Field,)](Field) -> Field = |y: Field| -> Field { y + x }; - let b: Field = closure_capturing_a_param(2_Field); - let closure_capturing_a_local_var: fn[(Field,)](Field) -> Field = |y: Field| -> Field { y + b }; - let c: Field = closure_capturing_a_local_var(3_Field); - let closure_with_transitive_captures: fn[(Field, Field, Field)](Field) -> Field = |y: Field| -> Field { - let d: Field = 5_Field; - let nested_closure: fn[(Field, Field, Field, Field, Field)](Field) -> Field = |z: Field| -> Field { - let doubly_nested_closure: fn[(Field, Field)](Field) -> Field = - |w: Field| -> Field { (w + x) + b }; - ((((((a + z) + y) + d) + x) + doubly_nested_closure(4_Field)) + x) + y - }; - let res: Field = nested_closure(5_Field); - res - }; - ((a + b) + c) + closure_with_transitive_captures(6_Field) -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/execute__tests__expanded.snap deleted file mode 100644 index 0a7d7aac07d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_complex_closures_2/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) -> pub Field { - let closure_without_captures: fn(Field) -> Field = |x: Field| -> Field { x + x }; - let a: Field = closure_without_captures(1_Field); - let closure_capturing_a_param: fn[(Field,)](Field) -> Field = |y: Field| -> Field { y + x }; - let b: Field = closure_capturing_a_param(2_Field); - let closure_capturing_a_local_var: fn[(Field,)](Field) -> Field = |y: Field| -> Field { y + b }; - let c: Field = closure_capturing_a_local_var(3_Field); - let closure_with_transitive_captures: fn[(Field, Field, Field)](Field) -> Field = |y: Field| -> Field { - let d: Field = 5_Field; - let nested_closure: fn[(Field, Field, Field, Field, Field)](Field) -> Field = |z: Field| -> Field { - let doubly_nested_closure: fn[(Field, Field)](Field) -> Field = - |w: Field| -> Field { (w + x) + b }; - ((((((a + z) + y) + d) + x) + doubly_nested_closure(4_Field)) + x) + y - }; - let res: Field = nested_closure(5_Field); - res - }; - ((a + b) + c) + closure_with_transitive_captures(6_Field) -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/execute__tests__expanded.snap deleted file mode 100644 index 7c8deb6f9dd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_empty_function/execute__tests__expanded.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/execute__tests__expanded.snap deleted file mode 100644 index b465a63dcfe..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: u64) { - for i in 1_u64..20_u64 { - let _z: u64 = x + i; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/execute__tests__expanded.snap deleted file mode 100644 index a226cbbe776..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_for_expr_incl/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: u64) { - for i in 1_u64..20_u64 + 1_u64 { - let _z: u64 = x + i; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/execute__tests__expanded.snap deleted file mode 100644 index b32e114148c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_literal_expr/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let y: Field = 5_Field; - assert(y == x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/execute__tests__expanded.snap deleted file mode 100644 index bd4a01e90a9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_prefix_expr/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let _y: Field = -x; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/execute__tests__expanded.snap deleted file mode 100644 index c98471fc138..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_shadowing/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let x: Field = foo(x); - let x: Field = x; - let (x, x): (Field, Field) = (x, x); - let _: Field = x; -} - -fn foo(x: Field) -> Field { - x -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/execute__tests__expanded.snap deleted file mode 100644 index b19ecf33fc7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_simplified_closure/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn do_closure(x: Field) -> Field { - let y: Field = x; - let ret_capture: fn[(Field,)]() -> Field = || -> Field { y }; - ret_capture() -} - -fn main(x: Field) { - assert(do_closure(x) == 100_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/execute__tests__expanded.snap deleted file mode 100644 index ae96d9848fc..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolve_unused_var/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main(x: Field) { - let y: Field = x + x; - assert(x == x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/execute__tests__expanded.snap deleted file mode 100644 index 48df4562b78..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_resolves_generic_type_argument_via_self/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo {} - -impl Foo { - fn one() { - Self::two(); - } - - fn two() {} -} - -fn main() { - Foo::::one(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/execute__tests__expanded.snap deleted file mode 100644 index 10bf08fea12..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_same_name_in_types_and_values_namespace_works/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct foo {} - -fn foo(x: foo) -> foo { - x -} - -fn main() { - let x: foo = foo {}; - let _: foo = foo(x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/execute__tests__expanded.snap deleted file mode 100644 index 8a5d866592d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_function_types_with_turbofish/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Default2 { - fn default2() -> Self; -} - -impl Default2 for Field { - fn default2() -> Self { - 0_Field - } -} - -impl Default2 for u64 { - fn default2() -> Self { - 0_u64 - } -} - -fn generic_func() -> (T, U) -where - T: Default2, - U: Default2, -{ - (T::default2(), U::default2()) -} - -fn main() { - let _: (u64, Field) = generic_func::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/execute__tests__expanded.snap deleted file mode 100644 index 037d8c15742..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_specify_method_types_with_turbofish/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Default2 { - fn default2() -> Self; -} - -impl Default2 for Field { - fn default2() -> Self { - 0_Field - } -} - -struct Foo { - inner: T, -} - -impl Foo { - fn generic_method(_self: Self) -> U - where - U: Default2, - { - U::default2() - } -} - -fn main() { - let foo: Foo = Foo:: { inner: 1_Field }; - let _: Field = foo.generic_method::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/execute__tests__expanded.snap deleted file mode 100644 index 0c5288dc264..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_static_method_with_generics_on_type_and_method/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn static_method() {} -} - -fn main() { - Foo::::static_method::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_struct_array_len/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_struct_array_len/execute__tests__expanded.snap deleted file mode 100644 index 2683dc5c88b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_struct_array_len/execute__tests__expanded.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Array { - inner: [T; N], -} - -impl Array { - pub fn len(self) -> u32 { - N as u32 - } -} - -fn main(xs: [Field; 2]) { - let ys: Array = Array:: { inner: xs }; - assert(ys.len() == 2_u32); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/execute__tests__expanded.snap deleted file mode 100644 index 9e7f36fab91..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_subtract_to_int_min/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let _x: i8 = -128_i8; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/execute__tests__expanded.snap deleted file mode 100644 index 064906f9448..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_test_impl_self_within_default_def/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Bar { - fn ok(self) -> Self; - - fn ref_ok(self) -> Self { - self.ok() - } -} - -impl Bar for (T, T) -where - T: Bar, -{ - fn ok(self) -> Self { - self - } - - fn ref_ok(self) -> Self { - self.ok() - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/execute__tests__expanded.snap deleted file mode 100644 index 331fe8ffed4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self, x: A) -> bool; -} - -pub fn bar(x: (T, U), y: V) -> bool -where - (T, U): Foo, -{ - x.foo(y) -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/execute__tests__expanded.snap deleted file mode 100644 index 0df8a4e36b8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_constraint_on_tuple_type_pub_crate/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub(crate) trait Foo { - fn foo(self, x: A) -> bool; -} - -pub fn bar(x: (T, U), y: V) -> bool -where - (T, U): Foo, -{ - x.foo(y) -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/execute__tests__expanded.snap deleted file mode 100644 index 30893b5fb09..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait/execute__tests__expanded.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait One { - fn one(self) -> i32; -} - -impl One for i32 { - fn one(self) -> Self { - self - } -} - -trait Two { - fn two(self) -> i32; -} - -impl Two for T -where - T: One, -{ - fn two(self) -> i32 { - self.one() + 1_i32 - } -} - -pub fn use_it(t: T) -> i32 -where - T: Two, -{ - t.two() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/execute__tests__expanded.snap deleted file mode 100644 index ad49f6620c3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_impl_for_a_type_that_implements_another_trait_with_another_impl_used/execute__tests__expanded.snap +++ /dev/null @@ -1,40 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait One { - fn one(self) -> i32; -} - -impl One for i32 { - fn one(self) -> Self { - let _: Self = self; - 1_i32 - } -} - -trait Two { - fn two(self) -> i32; -} - -impl Two for T -where - T: One, -{ - fn two(self) -> i32 { - self.one() + 1_i32 - } -} - -impl Two for u32 { - fn two(self) -> i32 { - let _: Self = self; - 0_i32 - } -} - -pub fn use_it(t: u32) -> i32 { - t.two() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/execute__tests__expanded.snap deleted file mode 100644 index f1ddc128851..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_trait_unconstrained_methods_typechecked_correctly/execute__tests__expanded.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - unconstrained fn identity(self) -> Self { - self - } - - unconstrained fn foo(self) -> Field; -} - -impl Foo for u64 { - unconstrained fn identity(self) -> Self { - self - } - - unconstrained fn foo(self) -> Field { - self as Field - } -} - -unconstrained fn main() { - assert(2_u64.foo() == (2_u64.identity() as Field)); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/execute__tests__expanded.snap deleted file mode 100644 index 454e2cc3d64..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_impl_using_self/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait { - let N: u32; - - fn foo() -> u32; -} - -impl Trait for i32 { - let N: u32 = 10; - - fn foo() -> u32 { - N - } -} - -fn main() { - let _: u32 = i32::foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/execute__tests__expanded.snap deleted file mode 100644 index e72eadf14ef..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_accesses_associated_type_inside_trait_using_self/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait { - let N: u32; - - fn foo() -> u32 { - N - } -} - -impl Trait for i32 { - let N: u32 = 10; - - fn foo() -> u32 { - N - } -} - -fn main() { - let _: u32 = i32::foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/execute__tests__expanded.snap deleted file mode 100644 index 995ce76f051..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_allows_renaming_trait_during_import/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use trait_mod::Foo as FooTrait; - -mod trait_mod { - pub trait Foo { - fn foo(_: Self) {} - } - - impl Foo for Field { - fn foo(_: Self) {} - } -} - -fn main(x: Field) { - Field::foo(x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/execute__tests__expanded.snap deleted file mode 100644 index 83b727062a3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_1/execute__tests__expanded.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait { - let N: u32; -} - -impl Trait for Field { - let N: u32 = 1; -} - -impl Trait for i32 { - let N: u32 = 999; -} - -pub fn load() -where - T: Trait, -{ - let _: u32 = T::N; -} - -fn main() { - let _: () = load::(); - let _: () = load::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/execute__tests__expanded.snap deleted file mode 100644 index 83b727062a3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_called_multiple_times_for_different_t_2/execute__tests__expanded.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait { - let N: u32; -} - -impl Trait for Field { - let N: u32 = 1; -} - -impl Trait for i32 { - let N: u32 = 999; -} - -pub fn load() -where - T: Trait, -{ - let _: u32 = T::N; -} - -fn main() { - let _: () = load::(); - let _: () = load::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/execute__tests__expanded.snap deleted file mode 100644 index bf9e20b97a7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_in_expression/execute__tests__expanded.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - cursed::(); -} - -fn cursed() -where - T: Foo, - T: Foo2, -{ - T::bar(1_Field); - T::bar(()); - T::bar(()); -} - -trait Foo { - fn bar(x: U); -} - -trait Foo2 { - fn bar(x: U); -} - -pub struct S {} - -impl Foo for S { - fn bar(_x: Z) {} -} - -impl Foo2 for S { - fn bar(_x: Z) {} -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/execute__tests__expanded.snap deleted file mode 100644 index ac928492d82..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_as_trait_path_self_type/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait BigCurve { - fn one() -> Self; -} - -struct Bn254 {} - -impl BigCurve for Bn254 { - fn one() -> Self { - Self {} - } -} - -fn main() { - let _: Bn254 = >::one(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/execute__tests__expanded.snap deleted file mode 100644 index 1f7e10ae69c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_mul_of_other_constants/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); -} - -impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Self; 1]) {} -} - -impl Deserialize for [T; M] -where - T: Deserialize, -{ - let N: u32 = M * ::N; - - fn deserialize(_: [Field; M * ::N]) {} -} - -pub fn foo() { - let f: fn([Field; X]) = <[Field; X] as Deserialize>::deserialize; - let _: () = f([0_Field; X]); -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/execute__tests__expanded.snap deleted file mode 100644 index 103bdcbfe6b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_another_associated_constant/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Serialize { - let N: u32; - - fn serialize(self) -> [Field; N]; -} - -impl Serialize for [Field; M] { - let N: u32 = M; - - fn serialize(self) -> Self { - self - } -} - -struct Foo {} - -impl Serialize for Foo { - let N: u32 = 3; - - fn serialize(self) -> [Field; 3] { - [0_Field; 3] - } -} - -fn main() { - let _: [Field; 3] = Foo {}.serialize(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/execute__tests__expanded.snap deleted file mode 100644 index fae31c798b9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_of_generic_type_used_in_expression/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Serialize { - let N: u32; -} - -impl Serialize for [Field; M] { - let N: u32 = M; -} - -fn main() { - let _: u32 = <[Field; 3] as Serialize>::N; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/execute__tests__expanded.snap deleted file mode 100644 index 313f29fefc0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); -} - -impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Self; 1]) {} -} - -struct Gen {} - -impl Deserialize for Gen -where - T: Deserialize, -{ - let N: u32 = ::N + ::N; - - fn deserialize(_: [Field; ::N + ::N]) {} -} - -fn main() { - let f: fn([Field; 2]) = as Deserialize>::deserialize; - f([0_Field; 2]); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/execute__tests__expanded.snap deleted file mode 100644 index 80631c43102..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_2/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); -} - -impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Self; 1]) {} -} - -impl Deserialize for [T; M] -where - T: Deserialize, -{ - let N: u32 = M + ::N; - - fn deserialize(_: [Field; M + ::N]) {} -} - -pub fn foo() { - let f: fn([Field; X + 1]) = <[Field; X] as Deserialize>::deserialize; - let _: () = f([0_Field; X + 1]); -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/execute__tests__expanded.snap deleted file mode 100644 index 41fb9dd2b27..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_associated_constant_sum_of_other_constants_3/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Deserialize { - let N: u32; - - fn deserialize(_: [Field; N]); -} - -impl Deserialize for Field { - let N: u32 = 1; - - fn deserialize(_: [Self; 1]) {} -} - -impl Deserialize for [T; M] -where - T: Deserialize, -{ - let N: u32 = (M + ::N) - 1; - - fn deserialize(_: [Field; (M + ::N) - 1]) {} -} - -pub fn foo() { - let f: fn([Field; X]) = <[Field; X] as Deserialize>::deserialize; - let _: () = f([0_Field; X]); -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/execute__tests__expanded.snap deleted file mode 100644 index fc5060c48d5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_in_scope/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use private_mod::Foo; - -fn main() { - let _: i32 = Bar::foo(); -} - -pub struct Bar {} - -impl Foo for Bar { - fn foo() -> i32 { - 42_i32 - } -} - -mod private_mod { - pub trait Foo { - fn foo() -> i32; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/execute__tests__expanded.snap deleted file mode 100644 index 37d83edd66e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope/execute__tests__expanded.snap +++ /dev/null @@ -1,33 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use private_mod::Foo; - -fn main() { - let _: i32 = ::foo(); -} - -pub struct Bar {} - -impl Foo for Bar { - fn foo() -> i32 { - 42_i32 - } -} - -impl private_mod::Foo2 for Bar { - fn foo() -> i32 { - 42_i32 - } -} - -mod private_mod { - pub trait Foo { - fn foo() -> i32; - } - - pub trait Foo2 { - fn foo() -> i32; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/execute__tests__expanded.snap deleted file mode 100644 index c209b6225cf..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_function_if_it_is_only_candidate_in_scope_in_nested_module_using_super/execute__tests__expanded.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - use crate::public_mod::Foo; - - pub fn method() { - let _: i32 = crate::Bar::foo(); - } -} - -fn main() {} - -pub struct Bar {} - -impl public_mod::Foo for Bar { - fn foo() -> i32 { - 42_i32 - } -} - -pub mod public_mod { - pub trait Foo { - fn foo() -> i32; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/execute__tests__expanded.snap deleted file mode 100644 index 066a3baba5d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use private_mod::Foo; - -fn main() { - let bar: Bar = Bar { x: 42_i32 }; - let _: i32 = bar.foo(); -} - -pub struct Bar { - x: i32, -} - -impl Foo for Bar { - fn foo(self) -> i32 { - self.x - } -} - -mod private_mod { - pub trait Foo { - fn foo(self) -> i32; - } -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/execute__tests__expanded.snap deleted file mode 100644 index a271a52fe68..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_calls_trait_method_if_it_is_in_scope_with_multiple_candidates_but_only_one_decided_by_generics/execute__tests__expanded.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - inner: Field, -} - -impl Converter for Foo { - fn convert(self) -> Field { - self.inner - } -} - -impl Converter for Foo { - fn convert(self) -> u32 { - self.inner as u32 - } -} - -trait Converter { - fn convert(self) -> N; -} - -fn main() { - let foo: Foo = Foo { inner: 42_Field }; - let _: u32 = foo.convert(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/execute__tests__expanded.snap deleted file mode 100644 index 031b646c1af..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_concrete_type/execute__tests__expanded.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Greeter { - fn greet(self); -} - -pub trait Foo -where - T: Greeter, -{ - fn greet(object: U) - where - U: Greeter, - { - object.greet(); - } -} - -pub struct SomeGreeter {} - -impl Greeter for SomeGreeter { - fn greet(self) {} -} - -pub struct Bar {} - -impl Foo for Bar { - fn greet(object: U) - where - U: Greeter, - { - object.greet(); - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/execute__tests__expanded.snap deleted file mode 100644 index 9a8d5f2016e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_does_not_error_if_impl_trait_constraint_is_satisfied_for_type_variable/execute__tests__expanded.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Greeter { - fn greet(self); -} - -pub trait Foo -where - T: Greeter, -{ - fn greet(object: T) { - object.greet(); - } -} - -pub struct Bar {} - -impl Foo for Bar -where - T: Greeter, -{ - fn greet(object: T) { - object.greet(); - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/execute__tests__expanded.snap deleted file mode 100644 index 40c1bee9dd4..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function/execute__tests__expanded.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Trait { - let N: u32; -} - -pub struct Foo {} - -impl Trait for Foo { - let N: u32 = 1; -} - -fn main() { - foo::(); -} - -fn foo() -where - T: Trait, -{} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/execute__tests__expanded.snap deleted file mode 100644 index f0517cbc079..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_passes_trait_with_associated_number_to_generic_function_inside_struct_impl/execute__tests__expanded.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Trait { - let N: u32; -} - -pub struct Foo {} - -impl Trait for Foo { - let N: u32 = 1; -} - -pub struct Bar {} - -impl Bar { - fn bar(self) - where - U: Trait, - { - let _: Self = self; - } -} - -fn main() { - let bar: Bar = Bar:: {}; - bar.bar::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/execute__tests__expanded.snap deleted file mode 100644 index 5788f84ab5a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_double_inheritance/execute__tests__expanded.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> Self; -} - -impl Foo for Field { - fn foo(self) -> Self { - self + 1_Field - } -} - -trait Bar { - fn bar(self) -> Self; -} - -impl Bar for Field { - fn bar(self) -> Self { - self + 2_Field - } -} - -trait Baz: Foo + Bar {} - -impl Baz for T -where - T: Foo, - T: Bar, -{} - -fn baz(x: T) -> T -where - T: Baz, -{ - x.foo().bar() -} - -fn main() { - assert(0_Field.foo().bar() == baz(0_Field)); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/execute__tests__expanded.snap deleted file mode 100644 index 03708cae27a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6314_single_inheritance/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> Self; -} - -trait Baz: Foo {} - -impl Baz for T -where - T: Foo, -{} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/execute__tests__expanded.snap deleted file mode 100644 index 4e0b89df81b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_6530/execute__tests__expanded.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait From2 { - fn from2(input: T) -> Self; -} - -pub trait Into2 { - fn into2(self) -> T; -} - -impl Into2 for U -where - T: From2, -{ - fn into2(self) -> T { - T::from2(self) - } -} - -struct Foo { - inner: Field, -} - -impl Into2 for Foo { - fn into2(self) -> Field { - self.inner - } -} - -fn main() { - let foo: Foo = Foo { inner: 0_Field }; - let _: Field = foo.into2(); - let _: Field = foo.into2(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/execute__tests__expanded.snap deleted file mode 100644 index f9998b56c2a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_regression_9245_small_code/execute__tests__expanded.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait From2 {} - -impl From2 for T {} - -impl From2 for Field {} - -pub trait Into2 {} - -impl Into2 for U -where - T: From2, -{} - -fn foo() -where - T: Into2, -{} - -fn main() { - foo::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/execute__tests__expanded.snap deleted file mode 100644 index 8e2dc0fa35e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_removes_assumed_parent_traits_after_function_ends/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo {} - -trait Bar: Foo {} - -pub fn foo() -where - T: Bar, -{} - -pub fn bar() -where - T: Foo, -{} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/execute__tests__expanded.snap deleted file mode 100644 index fdccad1352b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_renaming_trait_avoids_name_collisions/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use trait_mod::Foo as FooTrait; - -mod trait_mod { - pub trait Foo { - fn foo(_: Self) {} - } - - impl Foo for Field { - fn foo(_: Self) {} - } -} - -pub struct Foo {} - -fn main(x: Field) { - Field::foo(x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/execute__tests__expanded.snap deleted file mode 100644 index 312d9347639..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_1/execute__tests__expanded.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait MagicNumber { - fn from_magic_value() -> Self; - - fn from_value() -> Self; -} - -pub struct Foo {} - -impl MagicNumber for Foo { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - Self {} - } -} - -pub struct Bar {} - -impl MagicNumber for Bar { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - Self {} - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/execute__tests__expanded.snap deleted file mode 100644 index 08d1991a58e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_2/execute__tests__expanded.snap +++ /dev/null @@ -1,37 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait MagicNumber { - fn from_magic_value() -> Self { - MagicNumber::from_value() - } - - fn from_value() -> Self; -} - -pub struct Foo {} - -impl MagicNumber for Foo { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - Self {} - } -} - -pub struct Bar {} - -impl MagicNumber for Bar { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - Self {} - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/execute__tests__expanded.snap deleted file mode 100644 index 42c93e93fba..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_returns_self_in_trait_method_3/execute__tests__expanded.snap +++ /dev/null @@ -1,33 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait MagicNumber { - fn from_magic_value() -> Self { - MagicNumber::from_value() - } - - fn from_value() -> Self; -} - -impl MagicNumber for i32 { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - 0_i32 - } -} - -impl MagicNumber for i64 { - fn from_magic_value() -> Self { - Self::from_value() - } - - fn from_value() -> Self { - 0_i64 - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__expanded.snap deleted file mode 100644 index 9471bc6822d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_serialize_test_with_a_previous_unrelated_definition/execute__tests__expanded.snap +++ /dev/null @@ -1,34 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait {} - -trait Serialize { - let Size: u32; - - fn serialize(self); -} - -impl Serialize for (A, B) -where - A: Serialize, - B: Serialize, -{ - let Size: u32 = ::Size + ::Size; - - fn serialize(self) { - self.0.serialize(); - } -} - -impl Serialize for Field { - let Size: u32 = 1; - - fn serialize(self) {} -} - -fn main() { - let x: (((Field, Field), Field), Field) = (((1_Field, 2_Field), 5_Field), 9_Field); - x.serialize(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/execute__tests__expanded.snap deleted file mode 100644 index 891ee26029b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_short_syntax_for_trait_constraint_on_trait_generic/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Other { - fn other(self) { - let _: Self = self; - } -} - -pub trait Trait -where - T: Other, -{ - fn foo(x: T) { - x.other(); - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/execute__tests__expanded.snap deleted file mode 100644 index 48d63b5810a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_polymorphic_inheritance/execute__tests__expanded.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> Self; -} - -impl Foo for Field { - fn foo(self) -> Self { - self + 1_Field - } -} - -trait Bar { - fn bar(self) -> T; -} - -impl Bar for Field { - fn bar(self) -> bool { - true - } -} - -trait Baz: Foo + Bar { - -} - -impl<#T, T> Baz for #T where #T: Foo, #T: Bar { - -} - -fn baz(x: T) -> U where T: Baz { - x.foo().bar() -} - -fn main() { - assert(0_Field.foo().bar() == baz(0_Field)); -} - -// Warning: the generated code has syntax errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/execute__tests__expanded.snap deleted file mode 100644 index 96c14b91497..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_single_member/execute__tests__expanded.snap +++ /dev/null @@ -1,32 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> Self; -} - -impl Foo for Field { - fn foo(self) -> Self { - self - } -} - -trait Baz: Foo { - -} - -impl<#T> Baz for #T where #T: Foo { - -} - -fn baz(x: T) -> T where T: Baz { - x.foo() -} - -fn main() { - let x: Field = 0_Field; - let _: Field = baz(x); -} - -// Warning: the generated code has syntax errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/execute__tests__expanded.snap deleted file mode 100644 index 33b28ece2b0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_alias_two_members/execute__tests__expanded.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo { - fn foo(self) -> Self; -} - -impl Foo for Field { - fn foo(self) -> Self { - self + 1_Field - } -} - -pub trait Bar { - fn bar(self) -> Self; -} - -impl Bar for Field { - fn bar(self) -> Self { - self + 2_Field - } -} - -pub trait Baz: Foo + Bar { - -} - -impl<#T> Baz for #T where #T: Foo, #T: Bar { - -} - -fn baz(x: T) -> T where T: Baz { - x.foo().bar() -} - -fn main() { - assert(0_Field.foo().bar() == baz(0_Field)); -} - -// Warning: the generated code has syntax errors diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/execute__tests__expanded.snap deleted file mode 100644 index 1c439bbe2b8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_constraining_two_generics/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo {} - -pub trait Baz -where - T: Foo, -{} - -pub struct HasFoo1 {} - -impl Foo<()> for HasFoo1 {} - -pub struct HasBaz1 {} - -impl Baz for HasBaz1 {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/execute__tests__expanded.snap deleted file mode 100644 index 8eab1167fc7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_on_implementing_type/execute__tests__expanded.snap +++ /dev/null @@ -1,39 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct GenericStruct { - inner: T, -} - -impl Foo for GenericStruct -where - T: Foo, -{ - fn foo() {} -} - -impl Bar for GenericStruct -where - GenericStruct: Foo, -{ - fn bar() { - Self::foo() - } -} - -trait Foo { - fn foo() {} -} - -impl Foo for Field { - fn foo() {} -} - -trait Bar { - fn bar(); -} - -fn main() { - GenericStruct::::bar(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/execute__tests__expanded.snap deleted file mode 100644 index e23dc68552b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bound_with_associated_constant/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Other { - let N: u32; -} - -impl Other for Field { - let N: u32 = 1; -} - -pub trait Trait -where - T: Other, -{} - -impl Trait for i32 {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/execute__tests__expanded.snap deleted file mode 100644 index 8938fa8fec9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_bounds_which_are_dependent_on_generic_types_are_resolved_correctly/execute__tests__expanded.snap +++ /dev/null @@ -1,45 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> Field; -} - -trait Bar: Foo { - fn bar(self) -> Field { - self.foo() - } -} - -struct MyStruct { - inner: Field, -} - -impl Foo for MyStruct -where - T: MarkerTrait, -{ - fn foo(self) -> Field { - let _: Self = self; - 42_Field - } -} - -impl Bar for MyStruct -where - T: MarkerTrait, -{ - fn bar(self) -> Field { - 31415_Field - } -} - -trait MarkerTrait {} - -impl MarkerTrait for Field {} - -fn main() { - let foo: MyStruct = MyStruct:: { inner: 42_Field }; - let _: Field = foo.bar(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/execute__tests__expanded.snap deleted file mode 100644 index f3bcc4dfa3d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_child_constraint/execute__tests__expanded.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Parent {} - -trait Child: Parent { - fn child() {} -} - -pub struct Struct {} - -impl Parent for Struct -where - T: Parent, -{} - -impl Child for Struct -where - T: Child, -{ - fn child() {} -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/execute__tests__expanded.snap deleted file mode 100644 index a7389ae5039..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_numeric/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Bar { - let N: Field; -} - -impl Bar for Field { - let N: Self = 42; -} - -trait Foo { - fn foo(b: B) - where - B: Bar; -} - -impl Foo for Field { - fn foo(_: B) - where - B: Bar, - {} -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/execute__tests__expanded.snap deleted file mode 100644 index 1c29f0da7f3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_impl_with_where_clause_with_trait_with_associated_type/execute__tests__expanded.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Bar { - type typ; -} - -impl Bar for Field { - type typ = Self; -} - -trait Foo { - fn foo(b: B) - where - B: Bar; -} - -impl Foo for Field { - fn foo(_: B) - where - B: Bar, - {} -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/execute__tests__expanded.snap deleted file mode 100644 index b320bd31c5b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance/execute__tests__expanded.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo { - fn foo(self) -> Field; -} - -pub trait Bar { - fn bar(self) -> Field; -} - -pub trait Baz: Foo + Bar { - fn baz(self) -> Field; -} - -pub fn foo(baz: T) -> (Field, Field, Field) -where - T: Baz, -{ - (baz.foo(), baz.bar(), baz.baz()) -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/execute__tests__expanded.snap deleted file mode 100644 index 2546ce5f2c0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self) -> T; -} - -trait Bar: Foo { - fn bar(self); -} - -pub fn foo(x: T) -> i32 -where - T: Bar, -{ - x.foo() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/execute__tests__expanded.snap deleted file mode 100644 index b2a2c973dbd..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_2/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo { - fn foo(self) -> T; -} - -pub trait Bar: Foo { - fn bar(self) -> (T, U); -} - -pub fn foo(x: T) -> i32 -where - T: Bar, -{ - x.foo() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/execute__tests__expanded.snap deleted file mode 100644 index c4779744ba3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_3/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo {} - -impl Foo for () {} - -trait Bar: Foo {} - -impl Bar for () {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/execute__tests__expanded.snap deleted file mode 100644 index 7648624f65b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_inheritance_with_generics_4/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - type A; -} - -impl Foo for () { - type A = i32; -} - -trait Bar: Foo {} - -impl Bar for () {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/execute__tests__expanded.snap deleted file mode 100644 index 9178b023862..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_call_when_it_has_bounds_on_generic/execute__tests__expanded.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait BigNum {} - -trait BigCurve -where - B: BigNum, -{ - fn new() -> Self; -} - -pub fn foo() -where - B: BigNum, - Curve: BigCurve, -{ - let _: Curve = Curve::new(); -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/execute__tests__expanded.snap deleted file mode 100644 index e54b51c5fa8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_method_numeric_generic_on_function/execute__tests__expanded.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Bar { - fn baz(); -} - -impl Bar for Field { - fn baz() { - let _: u32 = N; - } -} - -fn foo() -where - K: Bar, -{ - K::baz::<2>(); -} - -fn main() { - foo::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/execute__tests__expanded.snap deleted file mode 100644 index e7f056d160c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_expected_order/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait BarTrait {} - -pub trait Foo { - type Bar; -} - -pub trait Baz -where - T: Foo, - ::Bar: BarTrait, -{} - -pub struct HasBarTrait1 {} - -impl BarTrait for HasBarTrait1 {} - -pub struct HasFoo1 {} - -impl Foo for HasFoo1 { - type Bar = HasBarTrait1; -} - -pub struct HasBaz1 {} - -impl Baz for HasBaz1 {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/execute__tests__expanded.snap deleted file mode 100644 index e7f056d160c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_where_clause_associated_type_constraint_unexpected_order/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait BarTrait {} - -pub trait Foo { - type Bar; -} - -pub trait Baz -where - T: Foo, - ::Bar: BarTrait, -{} - -pub struct HasBarTrait1 {} - -impl BarTrait for HasBarTrait1 {} - -pub struct HasFoo1 {} - -impl Foo for HasFoo1 { - type Bar = HasBarTrait1; -} - -pub struct HasBaz1 {} - -impl Baz for HasBaz1 {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/execute__tests__expanded.snap deleted file mode 100644 index 4a8a48de80c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_trait_with_same_generic_in_different_default_methods/execute__tests__expanded.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Trait { - fn foo(self, _msg: str) { - let _: Self = self; - } - - fn bar(self, _msg: str) { - let _: Self = self; - } -} - -pub struct Struct {} - -impl Trait for Struct { - fn foo(self, _msg: str) { - let _: Self = self; - } - - fn bar(self, _msg: str) { - let _: Self = self; - } -} - -pub fn main() { - Struct {}.bar("Hello"); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/execute__tests__expanded.snap deleted file mode 100644 index 9943ffb4d8a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo { - fn foo(self) -> i32 { - let _: Self = self; - 1_i32 - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/execute__tests__expanded.snap deleted file mode 100644 index 3cbb1241ae0..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_traits_type_checks_trait_default_method_and_does_not_error_using_self/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub trait Foo { - fn foo(self) -> i32 { - self.bar() - } - - fn bar(self) -> i32 { - let _: Self = self; - 1_i32 - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/execute__tests__expanded.snap deleted file mode 100644 index bf8c0cfbe6c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_numeric_turbofish/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Reader {} - -impl Reader { - fn read(_self: Self) {} -} - -fn main() { - let reader: Reader<1234> = Reader::<1234> {}; - let _: () = reader.read::<1234>(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/execute__tests__expanded.snap deleted file mode 100644 index e68ee80c66e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_struct_pattern/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: T, -} - -fn main() { - let value: Field = 0_Field; - let Foo:: { x }: Foo = Foo:: { x: value }; - let _: Field = x; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/execute__tests__expanded.snap deleted file mode 100644 index 81af2dc466c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_turbofish_in_type_before_call_does_not_error/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: T, -} - -impl Foo { - fn new(x: T) -> Self { - Self { x: x } - } -} - -fn main() { - let _: Foo = Foo::::new(1_i32); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap deleted file mode 100644 index 620635e426a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_partial_generics_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - x: T, - y: U, -} - -impl Foo { - fn new(x: T, y: U) -> Self { - Self { x: x, y: y } - } -} - -type Bar = Foo; - -fn main() { - let _: Foo = Foo::::new(true, 1_i32); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap deleted file mode 100644 index b7f4bc7e549..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_turbofish_use_generic_type_alias_with_turbofish_in_method_call_does_not_error/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type Bar = Foo; - -fn foo() -> Foo { - Foo::::new() -} - -fn main() { - let _: Foo = foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/execute__tests__expanded.snap deleted file mode 100644 index 34e5eb6f850..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_entry_point/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Foo = u8; - -fn main(_x: Foo) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/execute__tests__expanded.snap deleted file mode 100644 index 9a275c6b414..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_type_aliases_in_main/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Outer = [u8; N]; - -fn main(_arg: Outer<1>) {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/execute__tests__expanded.snap deleted file mode 100644 index a06373b6f26..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_u32_globals_as_sizes_in_types/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global ARRAY_LEN: u32 = 3; - -global STR_LEN: u32 = 2; - -global FMT_STR_LEN: u32 = 2; - -fn main() { - let _a: [u32; 3] = [1_u32, 2_u32, 3_u32]; - let _b: str<2> = "hi"; - let _c: fmtstr<2, ()> = f"hi"; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/execute__tests__expanded.snap deleted file mode 100644 index a3b84d0dfc8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_enum/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[allow(dead_code)] -enum Foo {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/execute__tests__expanded.snap deleted file mode 100644 index bd2520476c3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_function/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[allow(dead_code)] -fn foo() {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/execute__tests__expanded.snap deleted file mode 100644 index f7fcec7275a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[allow(dead_code)] -struct Foo {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/execute__tests__expanded.snap deleted file mode 100644 index 31d02be51f1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_trait/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/execute__tests__expanded.snap deleted file mode 100644 index 1005e96e8d9..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_allow_dead_code_on_unused_type_alias/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Foo = Field; - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/execute__tests__expanded.snap deleted file mode 100644 index a508e988e9d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_impl_method_is_called/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -impl Bar { - fn foo() {} -} - -pub fn main() { - Bar::foo() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/execute__tests__expanded.snap deleted file mode 100644 index a8f78676f6b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_let_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -fn foo(array: [Bar; 1]) { - let _: Bar = array[0_u32]; -} - -fn main() { - let _: fn([Bar; 1]) = foo; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/execute__tests__expanded.snap deleted file mode 100644 index a2979d474e6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_mentioned_in_return_type/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -fn foo(array: [Bar; 1]) -> Bar { - array[0_u32] -} - -fn main() { - let _: fn([Bar; 1]) -> Bar = foo; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/execute__tests__expanded.snap deleted file mode 100644 index b1467ef5e38..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_constructor/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -struct Generic {} - -fn main() { - let _: Generic = Generic:: {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/execute__tests__expanded.snap deleted file mode 100644 index b018c0f9ef6..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_passed_in_generic_args_in_function_call/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -fn foo() {} - -fn main() { - let _: () = foo::(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/execute__tests__expanded.snap deleted file mode 100644 index e0b5395065e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_considers_struct_as_constructed_if_trait_method_is_called/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -impl Foo for Bar { - fn foo() {} -} - -pub trait Foo { - fn foo(); -} - -pub fn main() { - Bar::foo() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/execute__tests__expanded.snap deleted file mode 100644 index 7a9d81746b7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_function_if_it_has_an_export_attribute/execute__tests__expanded.snap +++ /dev/null @@ -1,8 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[export] -fn foo() {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/execute__tests__expanded.snap deleted file mode 100644 index 130ccecd290..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_global_if_it_has_an_abi_attribute/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -contract foo { - #[abi(notes)] - global bar: u64 = 1; -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap deleted file mode 100644 index 021d6c911af..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_does_not_warn_on_unused_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[abi(dummy)] -struct Foo { - bar: u8, -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/execute__tests__expanded.snap deleted file mode 100644 index 78eaecc53be..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_private_import/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::{bar, baz, Foo}; - -mod foo { - pub fn bar() {} - - pub fn baz() {} - - pub trait Foo {} - - impl Foo for Field {} -} - -fn main() { - baz(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/execute__tests__expanded.snap deleted file mode 100644 index 39e5c773dba..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_pub_crate_import/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub(crate) use foo::bar; -use foo::{baz, Foo}; - -mod foo { - pub fn bar() {} - - pub fn baz() {} - - pub trait Foo {} - - impl Foo for Field {} -} - -fn main() { - baz(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/execute__tests__expanded.snap deleted file mode 100644 index 2dd14375b76..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -struct Bar {} - -fn main() { - let _: Bar = Bar {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/execute__tests__expanded.snap deleted file mode 100644 index d1ddcb36417..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_trait/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo {} - -trait Bar {} - -pub struct Baz {} - -impl Bar for Baz {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/execute__tests__expanded.snap deleted file mode 100644 index cb7d7ce43a7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_errors_on_unused_type_alias/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -type Foo = Field; - -type Bar = Field; - -pub fn bar(_: Bar) {} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap deleted file mode 100644 index 6960187bae3..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_indirect_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar { - field: Field, -} - -#[abi(functions)] -struct Foo { - bar: Bar, -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/execute__tests__expanded.snap deleted file mode 100644 index b3d178a0516..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_inner_struct_when_parent_is_used/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar { - inner: [Field; 3], -} - -struct Foo { - a: Field, - bar: Bar, -} - -fn main(foos: [Foo; 1]) { - assert(foos[0_u32].a == 10_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/execute__tests__expanded.snap deleted file mode 100644 index 95efbacfd35..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_self_in_trait_impl/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Bar {} - -impl Foo for Bar { - fn foo(self, _a: u64) {} -} - -trait Foo { - fn foo(self, a: u64); -} - -fn main() { - let _: Bar = Bar {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap deleted file mode 100644 index ca521a8c18a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_no_warning_on_struct_if_it_has_an_abi_attribute/execute__tests__expanded.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -#[abi(functions)] -struct Foo { - a: Field, -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/execute__tests__expanded.snap deleted file mode 100644 index 4a3d4078652..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_resolves_trait_where_clause_in_the_correct_module/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::Foo; - -mod foo { - pub trait Foo {} -} - -pub trait Bar -where - T: Foo, -{} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/execute__tests__expanded.snap deleted file mode 100644 index e2623386059..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_silences_unused_variable_warning/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - let x: Field = 1_Field; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/execute__tests__expanded.snap deleted file mode 100644 index ea7ad50ff0c..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_unused_items_warns_on_unused_global/execute__tests__expanded.snap +++ /dev/null @@ -1,11 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -global foo: u32 = 1; - -global bar: Field = 1; - -fn main() { - let _: Field = bar; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/execute__tests__expanded.snap deleted file mode 100644 index 9248b9efc90..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_non_u32_generic_in_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,9 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct S {} - -fn main() { - let _: S<3> = S::<3> {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/execute__tests__expanded.snap deleted file mode 100644 index 648a7fc4c0f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_numeric_generic_in_trait_method/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo(self, x: [u8; N]) -> Self; -} - -struct Bar {} - -impl Foo for Bar { - fn foo(self, _x: [u8; N]) -> Self { - self - } -} - -fn main() { - let bytes: [u8; 3] = [1_u8, 2_u8, 3_u8]; - let _: Bar = Bar {}.foo(bytes); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/execute__tests__expanded.snap deleted file mode 100644 index 2b33e99286d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_in_method_call/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo {} - -impl Foo { - fn new() -> Self { - Self {} - } -} - -type Bar = Foo; - -fn foo() -> Foo { - Foo::new() -} - -fn main() { - let _: Foo = foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/execute__tests__expanded.snap deleted file mode 100644 index ea2fca4c3eb..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_use_type_alias_to_generic_concrete_type_in_method_call/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub struct Foo { - x: T, -} - -impl Foo { - fn new(x: T) -> Self { - Self { x: x } - } -} - -type Bar = Foo; - -fn foo() -> Bar { - Foo::::new(1_i32) -} - -fn main() { - let _: Foo = foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/execute__tests__expanded.snap deleted file mode 100644 index c5d90d2f7aa..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_in_import/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use moo::bar; - -mod moo { - pub mod bar { - pub fn foo() -> i32 { - 1_i32 - } - } -} - -pub fn baz() -> i32 { - bar::foo() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/execute__tests__expanded.snap deleted file mode 100644 index 45c50a91cf5..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_for_struct_function_call/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct S {} - -impl S { - fn one() -> Field { - 1_Field - } - - fn two() -> Field { - Self::one() + Self::one() - } -} - -fn main() { - let _: S = S {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/execute__tests__expanded.snap deleted file mode 100644 index 9ab9de42e84..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_uses_self_type_inside_trait/execute__tests__expanded.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -trait Foo { - fn foo() -> Self { - Foo::bar() - } - - fn bar() -> Self; -} - -impl Foo for Field { - fn foo() -> Self { - Self::bar() - } - - fn bar() -> Self { - 1_Field - } -} - -fn main() { - let _: Field = ::foo(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/execute__tests__expanded.snap deleted file mode 100644 index ca05f508b87..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_module/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn bar() -> Field { - 0_Field - } -} - -fn main() { - let _: Foo = Foo {}; - assert(Foo::bar() == 0_Field); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/execute__tests__expanded.snap deleted file mode 100644 index 82948a9de78..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_calling_private_struct_function_from_same_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Foo { - fn foo() { - Self::bar() - } - - fn bar() {} -} - -fn main() { - let _: Foo = Foo {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/execute__tests__expanded.snap deleted file mode 100644 index 52d27b2e6f7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_function_is_on_private_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub mod moo { - struct Bar {} - - impl Bar { - pub fn bar() -> Self { - Self {} - } - } - - pub fn no_unused_warnings() { - let _: Bar = Bar {}; - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/execute__tests__expanded.snap deleted file mode 100644 index 2494e212511..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_pub_trait_is_defined_on_private_struct/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub mod moo { - struct Bar {} - - impl Foo for Bar { - fn foo() -> Self { - Self {} - } - } - - pub trait Foo { - fn foo() -> Self; - } - - pub fn no_unused_warnings() { - let _: Bar = Bar {}; - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/execute__tests__expanded.snap deleted file mode 100644 index 114eee5145e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_referring_to_top_level_private_module_via_crate/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::bar; - -mod foo { - pub fn bar() {} -} - -fn main() { - bar() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/execute__tests__expanded.snap deleted file mode 100644 index 5d5e1e3ebda..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_if_trait_with_default_visibility_returns_struct_with_default_visibility/execute__tests__expanded.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo {} - -impl Bar for Foo { - fn bar(self) -> Self { - self - } -} - -trait Bar { - fn bar(self) -> Foo; -} - -fn main() { - let foo: Foo = Foo {}; - let _: Foo = foo.bar(); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/execute__tests__expanded.snap deleted file mode 100644 index 3f07b90369d..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_private_struct_field_from_nested_module/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -struct Foo { - x: Field, -} - -mod nested { - fn foo(foo: crate::Foo) -> Field { - foo.x - } -} - -fn main() { - let _: Foo = Foo { x: 1_Field }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/execute__tests__expanded.snap deleted file mode 100644 index a3c158ee7a7..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_error_when_accessing_pub_crate_struct_field_from_nested_module/execute__tests__expanded.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub(crate) struct Foo { - pub(crate) x: Field, - } -} - -fn foo(foo: moo::Foo) -> Field { - foo.x -} - -fn main() { - let _: moo::Foo = moo::Foo { x: 1_Field }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/execute__tests__expanded.snap deleted file mode 100644 index 42e764fe023..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_does_not_warn_if_calling_pub_crate_struct_method_from_same_crate/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Foo {} - - impl Foo { - pub(crate) fn bar(self) { - let _: Self = self; - } - } -} - -pub fn method(foo: moo::Foo) { - foo.bar() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__expanded.snap deleted file mode 100644 index 3519aa81e1f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_accessing_private_struct_field/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Foo { - x: Field, - } -} - -fn foo(foo: moo::Foo) -> Field { - foo.x -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__expanded.snap deleted file mode 100644 index 1fbdca7e142..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_constructor/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Foo { - x: Field, - } -} - -fn main() { - let _: moo::Foo = moo::Foo { x: 1_Field }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__expanded.snap deleted file mode 100644 index 05f76cf65f8..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_error_when_using_private_struct_field_in_struct_pattern/execute__tests__expanded.snap +++ /dev/null @@ -1,16 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Foo { - x: Field, - } -} - -fn foo(foo: moo::Foo) -> Field { - let moo::Foo { x }: moo::Foo = foo; - x -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__expanded.snap deleted file mode 100644 index c841c6578d1..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_comptime_context/execute__tests__expanded.snap +++ /dev/null @@ -1,21 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::Foo; - -mod foo { - pub struct Foo { - inner: Field, - } - - impl Foo { - pub fn new(inner: Field) -> Self { - Self { inner: inner } - } - } -} - -fn main() { - () -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__expanded.snap deleted file mode 100644 index f598eb4794b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_accessing_private_struct_member_inside_function_generated_at_comptime/execute__tests__expanded.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::Foo; - -mod foo { - pub struct Foo { - foo_inner: Field, - } -} - -struct Bar { - bar_inner: Foo, -} - -comptime fn generate_inner_accessor(_s: TypeDefinition) -> Quoted { - quote { - fn bar_get_foo_inner(x: Bar) -> Field { - x.bar_inner.foo_inner - } - } -} - -fn bar_get_foo_inner(x: Bar) -> Field { - x.bar_inner.foo_inner -} - -fn main(x: Bar) { - let _: Field = bar_get_foo_inner(x); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__expanded.snap deleted file mode 100644 index 32df97549ef..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_if_trying_to_access_public_function_inside_private_module/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod foo { - mod bar { - pub fn baz() {} - } -} - -fn main() { - foo::bar::baz() -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__expanded.snap deleted file mode 100644 index 59191070003..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_errors_once_on_unused_import_that_is_not_accessible/execute__tests__expanded.snap +++ /dev/null @@ -1,13 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use moo::Foo; - -mod moo { - struct Foo {} -} - -fn main() { - let _: Foo = Foo {}; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module/execute__tests__expanded.snap deleted file mode 100644 index bf738a6e67b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub mod bar { - pub struct Foo {} - - impl Foo { - fn foo(self) { - let _: Self = self; - } - - fn bar(self) { - self.foo(); - } - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/execute__tests__expanded.snap deleted file mode 100644 index bf738a6e67b..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_1/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub mod bar { - pub struct Foo {} - - impl Foo { - fn foo(self) { - let _: Self = self; - } - - fn bar(self) { - self.foo(); - } - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/execute__tests__expanded.snap deleted file mode 100644 index 60623161d5e..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_private_impl_method_on_another_module_2/execute__tests__expanded.snap +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -pub mod bar { - pub struct Foo {} - - impl Foo { - fn foo(self) { - let _: Self = self; - } - } - - impl Foo { - fn bar(self) { - let _: Self = self; - let foo: Foo = Foo:: {}; - foo.foo(); - } - } -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/execute__tests__expanded.snap deleted file mode 100644 index 0082f3366fe..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_visibility_bug_inside_comptime/execute__tests__expanded.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -use foo::Foo; - -mod foo { - pub struct Foo { - inner: Field, - } - - impl Foo { - pub fn new(inner: Field) -> Self { - Self { inner: inner } - } - } -} - -fn main() { - let _: Foo = Foo::new(5_Field); - let _: Foo = Foo { inner: 5_Field }; -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_warns_if_calling_private_struct_method/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_warns_if_calling_private_struct_method/execute__tests__expanded.snap deleted file mode 100644 index b30ae09460a..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_visibility_warns_if_calling_private_struct_method/execute__tests__expanded.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -mod moo { - pub struct Foo {} - - impl Foo { - fn bar(self) { - let _: Self = self; - } - } -} - -pub fn method(foo: moo::Foo) { - foo.bar() -} - -fn main() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/execute__tests__expanded.snap deleted file mode 100644 index 807c7347831..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_nested_unsafe/execute__tests__expanded.snap +++ /dev/null @@ -1,15 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - // Safety: comment added by `nargo expand` - unsafe { - // Safety: comment added by `nargo expand` - unsafe { - foo() - } - } -} - -unconstrained fn foo() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/execute__tests__expanded.snap deleted file mode 100644 index aa6fb2ce785..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/noirc_frontend_tests_warns_on_unneeded_unsafe/execute__tests__expanded.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - // Safety: comment added by `nargo expand` - unsafe { - foo() - } -} - -fn foo() {} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__expanded.snap deleted file mode 100644 index c83b75d1148..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__expanded.snap +++ /dev/null @@ -1,7 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: expanded_code ---- -fn main() { - assert((-1_Field as u8) != 0_u8); -} diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__stderr.snap b/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__stderr.snap deleted file mode 100644 index 8418963627f..00000000000 --- a/tooling/nargo_cli/tests/snapshots/compile_success_with_bug/noirc_frontend_tests_cast_negative_one_to_u8_size_checks/execute__tests__stderr.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: tooling/nargo_cli/tests/execute.rs -expression: stderr ---- -bug: Assertion is always false - ┌─ src/main.nr:3:20 - │ -3 │ assert((-1) as u8 != 0); - │ --------------- As a result, the compiled circuit is ensured to fail. Other assertions may also fail during execution - │ - = Call stack: - 1. src/main.nr:3:20