chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr"#823
Merged
kevaundray merged 2 commits intonoir-lang:masterfrom Feb 12, 2023
DreamerChaserHAH:master
Merged
chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr"#823kevaundray merged 2 commits intonoir-lang:masterfrom DreamerChaserHAH:master
kevaundray merged 2 commits intonoir-lang:masterfrom
DreamerChaserHAH:master
Conversation
As per this issue #812 Renamed HirFunction::unsafe_from_expr to HirFunction::unchecked_from_expr
kevaundray
reviewed
Feb 12, 2023
kevaundray
suggested changes
Feb 12, 2023
Contributor
kevaundray
left a comment
There was a problem hiding this comment.
Thanks for resolving this, looks good overall. Left a comment.
auto-merge was automatically disabled
February 12, 2023 15:09
Merge queue setting changed
TomAFrench
added a commit
that referenced
this pull request
Feb 14, 2023
* master: (28 commits) chore(ci): Add release token to enable runs against release PR (#840) feat(ssa): array sort (#754) chore: update readme (#811) chore: fix clippy (#825) chore: remove stale comment on HirFunction.unchecked_from_expr (#827) chore: Getter naming refactor (#803) chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr" (#823) chore: Forbid unsafe code (#824) chore: Follow rust naming convention (#801) feat(ci): Add concurrency group for rust workflow (#806) chore(ssa): rename impl method to follow Rust guideline (#782) fix(nargo): `nargo test` now only runs test functions defined in the current module (#805) chore(nargo): Remove outdated error message when Prover/Verifier.toml is missing (#807) chore(ssa): rename codegen to ssa_gen + reorg of `Value` struct (#797) chore(nargo): abstract paths from nargo's working directory (#761) chore(ci): Rename workflows (#804) feat: Impls with generics (#798) chore(ssa): Add doc comments on `Opcode` struct (#778) fix: operators issuing type errors when used with matching integer types arising from generic code (#789) chore(nargo)!: bump MSRV to 1.66.0 (#799) ...
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.
As per this issue #812
Renamed
HirFunction::unsafe_from_exprYou can use the search function in your IDE to search for unsafe_from_expr, I cannot find it elsewhere only three places
to
HirFunction::unchecked_from_exprRelated issue(s)
Resolves #812
Description
Summary of changes
Changes 1
crates\noirc_frontend\src\hir\resolution\resolver.rs line number 299from
HirFunction::unsafe_from_expr(expr_id)to
HirFunction::unchecked_from_expr(expr_id)Changes 2
crates\noirc_frontend\src\hir\type_check\mod.rs line number 137from
let func = HirFunction::unsafe_from_expr(expr_id);to
let func = HirFunction::unchecked_from_expr(expr_id);Changes 3
Added a comment in
crates\noirc_frontend\src\hir_def\function.rs line number: 21Changes 4
crates\noirc_frontend\src\hir_def\function.rs line number 23/24from
pub const fn unsafe_from_expr(expr_id: ExprId) -> HirFunction {to
pub const fn unchecked_from_expr(expr_id: ExprId) -> HirFunction {Basically just changing every unsafe_from_expr to unchecked_from_expr, nothing else has been changed
Dependency additions / changes
Test additions / changes
Checklist
cargo fmtwith default settings.Additional context