Rename HirFunction::unsafe_from_expr
to HirFunction::from_expr_unchecked
#812
Labels
compiler frontend
`noirc_frontend` crate
enhancement
New feature or request
good first issue
Good for newcomers
refactor
Problem
The word
unsafe
here is being used to meanunchecked
. Sinceunsafe
has a particular meaning in Rust, we should be careful not to cause confusion when using it.Solution
Change
unsafe
word tounchecked
Thoughts welcome on bikeshedding, ie we could do
HirFunction::from_expr_unchecked
orHirFunction::unchecked_from_expr
or something else; the core of this issue is to remove theunsafe
keywordAlternatives considered
Additional context
The text was updated successfully, but these errors were encountered: