From 38041ef1e4f96f75e44c36a9a3c749723e679254 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:55:36 +0100 Subject: [PATCH 01/10] Update cspell.json --- cspell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cspell.json b/cspell.json index c2ef332c6aff..40e200a3aa00 100644 --- a/cspell.json +++ b/cspell.json @@ -9,7 +9,7 @@ "anytype", "archiver", "argjson", - "assignement", + "assignment", "asyncify", "auditability", "authwit", From e507fc17d64101e1afe4bda1d99ea5401f3e3cb6 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:58:00 +0100 Subject: [PATCH 02/10] Update main.nr --- .../compile_failure/primary_attribute_struct/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr b/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr index 8922ef60091c..be443e1c7ab4 100644 --- a/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr +++ b/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr @@ -1,4 +1,4 @@ -// An primary attribute should not be able to be added to a struct defintion +// An primary attribute should not be able to be added to a struct definition #[oracle(some_oracle)] struct SomeStruct{ x: Field, From 6720fa14be031109c26b878ad46166fde77c12ae Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:59:59 +0100 Subject: [PATCH 03/10] Update main.nr --- .../compile_success_empty/trait_method_mut_self/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr b/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr index aa0baab7f895..6497eafac232 100644 --- a/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr +++ b/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr @@ -71,7 +71,7 @@ where { // Check that we can call a trait method instead of a trait implementation // TODO: Need to remove the need for this type annotation - // TODO: Curently, without the annotation we will get `Expression type is ambiguous` when trying to use the `hasher` + // TODO: Currently, without the annotation we will get `Expression type is ambiguous` when trying to use the `hasher` let mut hasher: H = H::default(); // Regression that the object is converted to a mutable reference type `&mut _`. // Otherwise will see `Expected type &mut _, found type H`. From 4f10deec18ff77844fc0cc985ce13b8a0d7db721 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:00:37 +0100 Subject: [PATCH 04/10] Update main.nr --- .../test_programs/noir_test_success/regression_4561/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr b/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr index 6a8b4bd61fb0..da89135e5313 100644 --- a/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr +++ b/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr @@ -57,7 +57,7 @@ struct TestTypeFoo { } #[test] -unconstrained fn complexe_struct_return() { +unconstrained fn complex_struct_return() { OracleMock::mock("foo_return").returns( ( 0, [1, 2, 3, 4, 5, 6], 7, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [1, 2, 3, 4, 5, 6] From 52bd9f3f69360bcd2a6ea4180a78348fe5b00e5b Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:01:05 +0100 Subject: [PATCH 05/10] Update references.rs --- noir/noir-repo/tooling/lsp/src/requests/references.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/tooling/lsp/src/requests/references.rs b/noir/noir-repo/tooling/lsp/src/requests/references.rs index 6d3f92447cba..3b4ef12b5b74 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/references.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/references.rs @@ -99,7 +99,7 @@ mod references_tests { // See https://github.com/noir-lang/noir/issues/5460 #[ignore] #[test] - async fn test_on_references_request_works_accross_workspace_packages() { + async fn test_on_references_request_works_across_workspace_packages() { let (mut state, noir_text_document) = test_utils::init_lsp_server("workspace").await; // noir_text_document is always `src/main.nr` in the workspace directory, so let's go to the workspace dir From c01c54f1a68267fe8a200eb5fc5007aef114384f Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:02:03 +0100 Subject: [PATCH 06/10] Update completion.rs --- noir/noir-repo/tooling/lsp/src/requests/completion.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noir/noir-repo/tooling/lsp/src/requests/completion.rs b/noir/noir-repo/tooling/lsp/src/requests/completion.rs index b464c3e7adce..46a0cbd651c8 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/completion.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/completion.rs @@ -1133,7 +1133,7 @@ impl<'a> NodeFinder<'a> { /// Try to suggest the name of a module to declare based on which /// files exist in the filesystem, excluding modules that are already declared. - fn complete_module_delcaration(&mut self, module: &ModuleDeclaration) -> Option<()> { + fn complete_module_declaration(&mut self, module: &ModuleDeclaration) -> Option<()> { let filename = self.files.get_absolute_name(self.file).ok()?.into_path_buf(); let is_main_lib_or_mod = filename.ends_with("main.nr") @@ -1869,7 +1869,7 @@ impl<'a> Visitor for NodeFinder<'a> { return; } - self.complete_module_delcaration(module); + self.complete_module_declaration(module); } } From 20b73ccec26a5e2e141e76070b3dcf823c302153 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:02:38 +0100 Subject: [PATCH 07/10] Update tests.rs --- noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs b/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs index f670f26ffeb1..eb513f37daf8 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs @@ -2345,7 +2345,7 @@ fn main() { } #[test] - async fn test_auto_import_suggests_private_function_if_visibile() { + async fn test_auto_import_suggests_private_function_if_visible() { let src = r#" mod foo { fn qux() { From 0cd7521c71a49c77682a4dda48d7955bea46214b Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:03:11 +0100 Subject: [PATCH 08/10] Update main.nr --- .../execution_success/brillig_conditional/src/main.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr b/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr index 024ee52d5af0..0261ebe9cd8c 100644 --- a/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr +++ b/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr @@ -1,6 +1,6 @@ // Tests a very simple program. // -// The features being tested is basic conditonal on brillig +// The features being tested is basic conditional on brillig fn main(x: Field) { /// Safety: testing context unsafe { From 0312e194c8d1e6ed9267204788855555de07ba26 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:04:20 +0100 Subject: [PATCH 09/10] Update expr.nr --- noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr b/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr index 9ecefad7dfd8..7ce9d86e5476 100644 --- a/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr +++ b/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr @@ -58,7 +58,7 @@ fn only_comments() { // Keep this here } -fn commnet() { +fn comment() { 1 // } @@ -150,4 +150,4 @@ fn if_if() { (if cond { some(); } else { none(); }) .bar() .baz(); -} \ No newline at end of file +} From 3c8f815e3dbfa05e4eb21d729513af0830bcf5f4 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 13:05:00 +0100 Subject: [PATCH 10/10] Update expr.nr --- noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr b/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr index 9bee940f9006..212db1207303 100644 --- a/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr +++ b/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr @@ -56,7 +56,7 @@ fn only_comments() { // Keep this here } -fn commnet() { +fn comment() { 1 // }