feat: require safety comments instead of safety doc comments#7295
Merged
TomAFrench merged 15 commits intomasterfrom Feb 14, 2025
Merged
feat: require safety comments instead of safety doc comments#7295TomAFrench merged 15 commits intomasterfrom
TomAFrench merged 15 commits intomasterfrom
Conversation
Contributor
|
🚀 Deployed on https://67af8e08b7f3d34e861cfd6a--noir-docs.netlify.app |
michaeljklein
approved these changes
Feb 5, 2025
Contributor
michaeljklein
left a comment
There was a problem hiding this comment.
LGTM with small nit r.e. sAfEtY
Member
|
I'm fine with changing this but we should stick to this format going forwads. |
Collaborator
Author
|
Captured #7394 |
Member
|
I've fixed some formatting issues with new tests in master. I've also expanded the formatter check to run on more of the test programs. |
Contributor
|
FYI @noir-lang/developerrelations on Noir doc changes. |
TomAFrench
added a commit
that referenced
this pull request
Feb 14, 2025
…rom-brillig * master: chore: allow opting in to displaying benchmark comments (#7399) chore: box `ExprValue` in `Value` enum (#7388) chore: pull out refactored methods from u128 branch (#7385) feat: require safety comments instead of safety doc comments (#7295) fix(ssa): Do not deduplicate division by a zero constant (#7393) chore: document traits required to be in scope (#7387) fix: field zero division in brillig (#7386) chore: box `ParserError`s in `InterpreterError` (#7373) chore: remove unnecessary dereferencing within brillig vm (#7375) fix: give "correct" error when trying to use AsTraitPath (#7360) chore: avoid u128s in brillig memory (#7363) chore: update docs about integer overflows (#7370) fix!: Only decrement the counter of an array if its address has not changed (#7297) fix: let LSP read `noirfmt.toml` for formatting files (#7355) chore: deprecate keccak256 (#7361) feat: `FunctionDefinition::as_typed_expr` (#7358) feat(performance): Check sub operations against induction variables (#7356) chore: avoid doing all brillig integer arithmetic on u128s (#7357)
TomAFrench
added a commit
that referenced
this pull request
Feb 14, 2025
* master: chore: allow opting in to displaying benchmark comments (#7399) chore: box `ExprValue` in `Value` enum (#7388) chore: pull out refactored methods from u128 branch (#7385) feat: require safety comments instead of safety doc comments (#7295) fix(ssa): Do not deduplicate division by a zero constant (#7393) chore: document traits required to be in scope (#7387) fix: field zero division in brillig (#7386) chore: box `ParserError`s in `InterpreterError` (#7373) chore: remove unnecessary dereferencing within brillig vm (#7375)
AztecBot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 15, 2025
chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295)
AztecBot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 16, 2025
chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295)
AztecBot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 16, 2025
chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295)
AztecBot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 17, 2025
chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295)
AztecBot
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 17, 2025
chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295)
TomAFrench
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Feb 17, 2025
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE fix: format global attributes (noir-lang/noir#7401) chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295) END_COMMIT_OVERRIDE --------- Co-authored-by: Tom French <tom@tomfren.ch>
AztecBot
added a commit
to AztecProtocol/aztec-nr
that referenced
this pull request
Feb 18, 2025
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE fix: format global attributes (noir-lang/noir#7401) chore: box `Closure` in `comptime::Value` enum (noir-lang/noir#7400) chore: allow opting in to displaying benchmark comments (noir-lang/noir#7399) chore: box `ExprValue` in `Value` enum (noir-lang/noir#7388) chore: pull out refactored methods from u128 branch (noir-lang/noir#7385) feat: require safety comments instead of safety doc comments (noir-lang/noir#7295) END_COMMIT_OVERRIDE --------- Co-authored-by: Tom French <tom@tomfren.ch>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Problem
Resolves #7273
Summary
Instead of requiring
/// Safety:on top ofunsafe, with this PR we require// Safety:. This matches how Rust works (for that lint).In order to avoid introducing a big breaking change, this PR:
unsafeand statements, but warns when that happensAdditional Context
Documentation
Check one:
PR Checklist
cargo fmton default settings.