You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
## Problem\*
Resolves <!-- Link to GitHub Issue -->
## Summary\*
This PR adds CI, updates to the latest noir and deletes some unused
functions.
## Additional Context
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
title: "Tests fail on latest Nargo nightly release"
3
+
assignees: TomAFrench
4
+
---
5
+
6
+
The tests on this Noir project have started failing when using the latest nightly release of the Noir compiler. This likely means that there have been breaking changes for which this project needs to be updated to take into account.
7
+
8
+
Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details.
@@ -237,12 +226,15 @@ impl<let MaxPaddedBytes: u32, let PaddedChunks: u32, let MaxBytes: u32> StringBo
237
226
// use unconstrained function to determine:
238
227
// a: is the substring present in the body text
239
228
// b: the position of the first match in the body text
240
-
letposition: u32 = utils::search(
241
-
self.body,
242
-
substring.get_body(),
243
-
self.byte_length,
244
-
substring.len()
245
-
);
229
+
letposition: u32 = unsafe {
230
+
// Safety: The rest of this function checks this.
231
+
utils::search(
232
+
self.body,
233
+
substring.get_body(),
234
+
self.byte_length,
235
+
substring.len()
236
+
)
237
+
};
246
238
247
239
assert(
248
240
position + substring.len() <= self.byte_length, "substring not present in main text (match found if a padding text included. is main text correctly formatted?)"
@@ -311,8 +303,8 @@ impl<let MaxPaddedBytes: u32, let PaddedChunks: u32, let MaxBytes: u32> StringBo
lethaystack_text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.".as_bytes();
0 commit comments