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

Configure Feed

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

Review

+5 -4
+1
compiler-core/src/lib.rs
··· 47 47 )] 48 48 #![allow( 49 49 clippy::match_single_binding, 50 + clippy::match_like_matches_macro, 50 51 clippy::inconsistent_struct_constructor, 51 52 // TODO: fix 52 53 clippy::arc_with_non_send_sync,
+1 -1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__pattern_matching_on_literal_tuple.snap
··· 2 2 source: compiler-core/src/type_/tests/warnings.rs 3 3 expression: "pub fn main() {\n case #(1, 2) {\n _ -> Nil\n }\n }" 4 4 --- 5 - warning: Case expression with literal tuple as subject 5 + warning: Redundant tuple 6 6 ┌─ /src/warning/wrn.gleam:2:14 7 7 8 8 2 │ case #(1, 2) {
+2 -2
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__pattern_matching_on_multiple_literal_tuples.snap
··· 2 2 source: compiler-core/src/type_/tests/warnings.rs 3 3 expression: "pub fn main() {\n let wibble = 1\n case #(1, 2), #(wibble, wibble) {\n _, _ -> Nil\n }\n }" 4 4 --- 5 - warning: Case expression with literal tuple as subject 5 + warning: Redundant tuple 6 6 ┌─ /src/warning/wrn.gleam:3:14 7 7 8 8 3 │ case #(1, 2), #(wibble, wibble) { ··· 11 11 Case expressions can take multiple subjects directly. 12 12 Hint: You can pass the contents of the tuple directly, separated by commas. 13 13 14 - warning: Case expression with literal tuple as subject 14 + warning: Redundant tuple 15 15 ┌─ /src/warning/wrn.gleam:3:23 16 16 17 17 3 │ case #(1, 2), #(wibble, wibble) {
+1 -1
compiler-core/src/warning.rs
··· 600 600 } 601 601 602 602 type_::Warning::CaseMatchOnLiteralTuple { location } => Diagnostic { 603 - title: "Case expression with literal tuple as subject".into(), 603 + title: "Redundant tuple".into(), 604 604 text: "Case expressions can take multiple subjects directly.".into(), 605 605 hint: Some( 606 606 "You can pass the contents of the tuple directly, separated by commas."