chore: updated "HirFunction::unsafe_from_expr" to "HirFunction::unchecked_from_expr" #823
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_expr
You 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_expr
Related issue(s)
Resolves #812
Description
Summary of changes
Changes 1
crates\noirc_frontend\src\hir\resolution\resolver.rs line number 299
from
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 137
from
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: 21
Changes 4
crates\noirc_frontend\src\hir_def\function.rs line number 23/24
from
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 fmt
with default settings.Additional context