Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

clippy!!

author
Giacomo Cavalieri
committer
Louis Pilfold
date (Jul 14, 2026, 12:57 PM +0100) commit 450d6618 parent 394527e4 change-id zsxmwlxn
+14 -14
+8 -8
compiler-core/src/erlang.rs
··· 314 314 // In that case all type variables are phantom type variables! 315 315 ([], _) if let Some((module, type_name, _)) = external_erlang => { 316 316 let type_ = 317 - builder.start_remote_named_type(ErlangModuleName::new(&module), type_name); 317 + builder.start_remote_named_type(ErlangModuleName::new(module), type_name); 318 318 for type_variable in phantom_type_variables { 319 319 builder.type_variable(&type_variable); 320 320 } ··· 637 637 let open_function = 638 638 builder.start_function(&function_name, arity, arguments.clone()); 639 639 let call = builder 640 - .start_remote_call(ErlangModuleName::new(&module), external_function_name); 640 + .start_remote_call(ErlangModuleName::new(module), external_function_name); 641 641 for argument in arguments { 642 642 builder.variable(&argument); 643 643 } ··· 957 957 .. 958 958 } => match type_::collapse_links(type_.clone()).as_ref() { 959 959 Type::Fn { arguments, .. } => builder.function_reference( 960 - Some(ErlangModuleName::new(&module)), 960 + Some(ErlangModuleName::new(module)), 961 961 escape_erlang_existing_name(name), 962 962 arguments.len(), 963 963 ), 964 964 965 965 Type::Named { .. } | Type::Var { .. } | Type::Tuple { .. } => { 966 966 let name = escape_erlang_existing_name(name); 967 - let call = builder.start_remote_call(ErlangModuleName::new(&module), name); 967 + let call = builder.start_remote_call(ErlangModuleName::new(module), name); 968 968 builder.end_call(call); 969 969 } 970 970 }, ··· 1962 1962 if *module == self.module_generator.module.name { 1963 1963 builder.function_reference(None, name, *arity) 1964 1964 } else { 1965 - builder.function_reference(Some(ErlangModuleName::new(&module)), name, *arity) 1965 + builder.function_reference(Some(ErlangModuleName::new(module)), name, *arity) 1966 1966 } 1967 1967 } 1968 1968 ··· 1978 1978 name, 1979 1979 .. 1980 1980 } => builder.function_reference( 1981 - Some(ErlangModuleName::new(&module)), 1981 + Some(ErlangModuleName::new(module)), 1982 1982 escape_erlang_existing_name(name), 1983 1983 *arity, 1984 1984 ), ··· 2001 2001 FunctionCall::Call { module, name } => { 2002 2002 let call = if module != self.module_generator.module.name { 2003 2003 builder.start_remote_call( 2004 - ErlangModuleName::new(&module), 2004 + ErlangModuleName::new(module), 2005 2005 escape_erlang_existing_name(name), 2006 2006 ) 2007 2007 } else { ··· 2056 2056 FunctionCall::Call { module, name } => { 2057 2057 let call = if module != self.module_generator.module.name { 2058 2058 builder.start_remote_call( 2059 - ErlangModuleName::new(&module), 2059 + ErlangModuleName::new(module), 2060 2060 escape_erlang_existing_name(name), 2061 2061 ) 2062 2062 } else {
+6 -6
erlang-generation/src/lib.rs
··· 2647 2647 } 2648 2648 // We were expecting an expression and someone generated it, we can 2649 2649 // now pop this off the stack. 2650 - ErlangSourceBuilderPosition::UnaryOperator { .. } => { 2650 + ErlangSourceBuilderPosition::UnaryOperator => { 2651 2651 self.position.pop(); 2652 2652 } 2653 2653 ··· 2766 2766 | ErlangSourceBuilderPosition::FunctionStatement { .. } 2767 2767 | ErlangSourceBuilderPosition::AnonymousFunctionStatement { .. } 2768 2768 | ErlangSourceBuilderPosition::DocAttribute 2769 - | ErlangSourceBuilderPosition::UnaryOperator { .. } 2769 + | ErlangSourceBuilderPosition::UnaryOperator 2770 2770 | ErlangSourceBuilderPosition::Case { .. } 2771 2771 | ErlangSourceBuilderPosition::BinaryOperator { .. } 2772 2772 | ErlangSourceBuilderPosition::CaseClause { .. } ··· 2888 2888 }, 2889 2889 .. 2890 2890 } 2891 - | ErlangSourceBuilderPosition::UnaryOperator { .. } 2891 + | ErlangSourceBuilderPosition::UnaryOperator 2892 2892 | ErlangSourceBuilderPosition::BinaryOperator { .. } 2893 2893 | ErlangSourceBuilderPosition::Case { .. } 2894 2894 | ErlangSourceBuilderPosition::Map { .. } ··· 3069 3069 ErlangSourceBuilderPosition::MapField { .. } 3070 3070 | ErlangSourceBuilderPosition::RecordField { .. } 3071 3071 | ErlangSourceBuilderPosition::MatchPattern { .. } 3072 - | ErlangSourceBuilderPosition::UnaryOperator { .. } 3072 + | ErlangSourceBuilderPosition::UnaryOperator 3073 3073 | ErlangSourceBuilderPosition::List { .. } 3074 3074 | ErlangSourceBuilderPosition::BinaryOperator { .. } 3075 3075 | ErlangSourceBuilderPosition::MatchOperator { .. } ··· 3136 3136 | ErlangSourceBuilderPosition::FunctionStatement { .. } 3137 3137 | ErlangSourceBuilderPosition::AnonymousFunctionStatement { .. } 3138 3138 | ErlangSourceBuilderPosition::List { .. } 3139 - | ErlangSourceBuilderPosition::UnaryOperator { .. } 3139 + | ErlangSourceBuilderPosition::UnaryOperator 3140 3140 | ErlangSourceBuilderPosition::Tuple { .. } 3141 3141 | ErlangSourceBuilderPosition::TuplePattern { .. } 3142 3142 | ErlangSourceBuilderPosition::BitArray { .. } ··· 3427 3427 | ErlangSourceBuilderPosition::BitArray { .. } 3428 3428 | ErlangSourceBuilderPosition::Map { .. } 3429 3429 | ErlangSourceBuilderPosition::Block { .. } 3430 - | ErlangSourceBuilderPosition::UnaryOperator { .. } 3430 + | ErlangSourceBuilderPosition::UnaryOperator 3431 3431 | ErlangSourceBuilderPosition::FunctionType { 3432 3432 expected: 3433 3433 ExpectedFunctionTypeItem::Arguments { .. } | ExpectedFunctionTypeItem::ReturnType,