forked from noir-lang/noir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove
comptime
and warn upon usage (noir-lang#2178)
* Remove comptime * Remove comptime from stdlib and tests * Deprecate comptime keyword * Add unknown loop bound error * Fix end location for for loops * Add Location to Jmp * Shorten error message * Fix test * Only abort_on_error for acir functions * Remove comptime from frontend test * Remove extra parameter * Remove comptime more thoroughly
- Loading branch information
Showing
43 changed files
with
415 additions
and
1,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
crates/nargo_cli/tests/execution_success/bit_shifts_runtime/src/main.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
fn main(x: u64, y: u64) { | ||
// runtime shifts on comptime values | ||
// runtime shifts on compile-time known values | ||
assert(64 << y == 128); | ||
assert(64 >> y == 32); | ||
|
||
// runtime shifts on runtime values | ||
assert(x << y == 128); | ||
assert(x >> y == 32); | ||
} | ||
} |
7 changes: 0 additions & 7 deletions
7
crates/nargo_cli/tests/execution_success/comptime_array_access/Nargo.toml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
crates/nargo_cli/tests/execution_success/comptime_array_access/Prover.toml
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
crates/nargo_cli/tests/execution_success/comptime_array_access/src/main.nr
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...nargo_cli/tests/execution_success/comptime_array_access/target/comptime_array_access.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-65 Bytes
crates/nargo_cli/tests/execution_success/comptime_array_access/target/witness.tr
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.