File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ will need a `@reactant_overlay` method.
156156See also: [`@skip_rewrite_type`](@ref)
157157"""
158158macro skip_rewrite_func (fname)
159- quote
159+ return quote
160160 @lock $ (Reactant. __skip_rewrite_func_set_lock) push! (
161161 $ (Reactant. __skip_rewrite_func_set), typeof ($ (esc (fname)))
162162 )
@@ -288,7 +288,7 @@ struct MustThrowError end
288288 for i in 1 : N
289289 @inbounds newargs[i] = :(args[$ i]. .. )
290290 end
291- quote
291+ return quote
292292 Base. @_inline_meta
293293 call_with_reactant (applyfn, $ (newargs... ))
294294 end
302302 for i in 1 : N
303303 @inbounds newargs[i] = :(args[$ i]. .. )
304304 end
305- quote
305+ return quote
306306 Base. @_inline_meta
307307 call_with_reactant (mt, applyfn, $ (newargs... ))
308308 end
@@ -827,6 +827,7 @@ function call_epilogue(
827827 for (i_arg, arg) in enumerate (linear_args)
828828 if arg === res && ! (i_arg in mutated_args)
829829 no_replacement = true
830+ break
830831 end
831832 end
832833 # if the function didn't mutate the value, we don't put
You can’t perform that action at this time.
0 commit comments