diff --git a/godot-codegen/src/conv/type_conversions.rs b/godot-codegen/src/conv/type_conversions.rs index cd50585db..1d436048b 100644 --- a/godot-codegen/src/conv/type_conversions.rs +++ b/godot-codegen/src/conv/type_conversions.rs @@ -462,16 +462,28 @@ fn gdscript_to_rust_expr() { // The 'None' type is used to simulate absence of type information. Some tests are commented out, because this functionality is not // yet needed. If we ever want to reuse to_rust_expr() in other contexts, we could re-enable them. - let ty_int = RustTy::BuiltinIdent { ty: ident("i64") }; + let ty_int = RustTy::BuiltinIdent { + ty: ident("i64"), + is_copy: true, + }; let ty_int = Some(&ty_int); - let ty_int_u16 = RustTy::BuiltinIdent { ty: ident("u16") }; + let ty_int_u16 = RustTy::BuiltinIdent { + ty: ident("u16"), + is_copy: true, + }; let ty_int_u16 = Some(&ty_int_u16); - let ty_float = RustTy::BuiltinIdent { ty: ident("f64") }; + let ty_float = RustTy::BuiltinIdent { + ty: ident("f64"), + is_copy: true, + }; let ty_float = Some(&ty_float); - let ty_float_f32 = RustTy::BuiltinIdent { ty: ident("f32") }; + let ty_float_f32 = RustTy::BuiltinIdent { + ty: ident("f32"), + is_copy: true, + }; let ty_float_f32 = Some(&ty_float_f32); let ty_enum = RustTy::EngineEnum { @@ -490,6 +502,7 @@ fn gdscript_to_rust_expr() { let ty_variant = RustTy::BuiltinIdent { ty: ident("Variant"), + is_copy: false, }; let ty_variant = Some(&ty_variant); @@ -501,16 +514,19 @@ fn gdscript_to_rust_expr() { let ty_string = RustTy::BuiltinIdent { ty: ident("GString"), + is_copy: true, }; let ty_string = Some(&ty_string); let ty_stringname = RustTy::BuiltinIdent { ty: ident("StringName"), + is_copy: true, }; let ty_stringname = Some(&ty_stringname); let ty_nodepath = RustTy::BuiltinIdent { ty: ident("NodePath"), + is_copy: true, }; let ty_nodepath = Some(&ty_nodepath);