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

Configure Feed

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

Wrap lines in error

author
Gavin Morrow
committer
Louis Pilfold
date (Jun 3, 2026, 3:38 PM +0100) commit 9a3282d5 parent b033fd6c change-id ywywlprt
+15 -7
+2 -1
CHANGELOG.md
··· 16 16 17 17 A string pattern can only match on a literal string prefix. 18 18 19 - Matching on a literal suffix is not possible, because `infix` would have an unknown size. 19 + Matching on a literal suffix is not possible, because `infix` would have an 20 + unknown size. 20 21 ``` 21 22 22 23 ([Gavin Morrow](https://github.com/gavinmorrow))
+1
compiler-core/src/error.rs
··· 45 45 wrap(&format!($($tts)*)) 46 46 } 47 47 } 48 + pub(crate) use wrap_format; 48 49 49 50 #[derive(Debug, Clone, Eq, PartialEq)] 50 51 pub struct UnknownImportDetails {
+6 -3
compiler-core/src/parse/error.rs
··· 1 1 use crate::ast::{SrcSpan, TypeAst}; 2 2 use crate::diagnostic::{ExtraLabel, Label}; 3 - use crate::error::wrap; 3 + use crate::error::{wrap, wrap_format}; 4 4 use crate::parse::Token; 5 5 use ecow::EcoString; 6 6 use itertools::Itertools; ··· 559 559 extra_labels: vec![], 560 560 }, 561 561 562 - ParseErrorType::ConcatPatternVariableWithSuffix { name}=> ParseErrorDetails { 562 + ParseErrorType::ConcatPatternVariableWithSuffix { name } => ParseErrorDetails { 563 563 text: [ 564 564 "A string pattern can only match on a literal string prefix.", 565 565 "", 566 - &format!("Matching on a literal suffix is not possible, because `{}` would have an unknown size.", name), 566 + &wrap_format!( 567 + "Matching on a literal suffix is not possible, because `{name}` \ 568 + would have an unknown size." 569 + ), 567 570 ] 568 571 .join("\n"), 569 572 hint: None,
+2 -1
compiler-core/src/parse/snapshots/gleam_core__parse__tests__assign_infix_and_match_suffix_of_concat_pattern.snap
··· 16 16 17 17 A string pattern can only match on a literal string prefix. 18 18 19 - Matching on a literal suffix is not possible, because `infix` would have an unknown size. 19 + Matching on a literal suffix is not possible, because `infix` would have an 20 + unknown size.
+2 -1
compiler-core/src/parse/snapshots/gleam_core__parse__tests__discard_infix_and_match_suffix_of_concat_pattern.snap
··· 16 16 17 17 A string pattern can only match on a literal string prefix. 18 18 19 - Matching on a literal suffix is not possible, because `_` would have an unknown size. 19 + Matching on a literal suffix is not possible, because `_` would have an 20 + unknown size.
+2 -1
compiler-core/src/parse/snapshots/gleam_core__parse__tests__incomplete_suffix_match_in_concat_pattern.snap
··· 16 16 17 17 A string pattern can only match on a literal string prefix. 18 18 19 - Matching on a literal suffix is not possible, because `wibble` would have an unknown size. 19 + Matching on a literal suffix is not possible, because `wibble` would have 20 + an unknown size.