You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.warn('automatic referencing/dereferencing is deprecated and will be removed soon (got: ${arg_typ.nr_muls()} references, expected: ${param.typ.nr_muls()} references)',
1761
-
call_arg.pos)
1757
+
if func.language != .c &&!c.inside_unsafe &&!(call_arg.is_mut && param.is_mut) {
c.warn('automatic referencing/dereferencing is deprecated and will be removed soon (got: ${arg_typ.nr_muls()} references, expected: ${param.typ.nr_muls()} references)',
1763
+
call_arg.pos)
1764
+
}
1765
+
// A special case of the check to not allow voidptr params like in the recently reported raylib
1766
+
// bug with fn...
1767
+
// fn f(p &Foo) => f(foo) -- do not allow this, force f(&foo)
1768
+
// if !c.is_builtin_mod
1769
+
if param.typ== ast.voidptr_type && func.language== .v
c.warn('automatic ${arg_typ_sym.name} referencing/dereferencing into voidptr is deprecated and will be removed soon; use `foo(&x)` instead of `foo(x)`',
1774
+
call_arg.pos)
1775
+
}
1762
1776
}
1763
1777
}
1764
1778
if func.generic_names.len != node.concrete_types.len {
auto_ref_voidptr.vv:9:9: warning: automatic Aa referencing/dereferencing into voidptr is deprecated and will be removed soon; use `foo(&x)` instead of `foo(x)`
0 commit comments