Skip to content

fix(rust): support string on a tuple - #4916

Merged
ncave merged 1 commit into
fable-compiler:mainfrom
Thorium:fix/rust-formatting
Aug 29, 2026
Merged

fix(rust): support string on a tuple#4916
ncave merged 1 commit into
fable-compiler:mainfrom
Thorium:fix/rust-formatting

Conversation

@Thorium

@Thorium Thorium commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Rust has no Display for tuples and the orphan rule rules out adding one, so it did not compile. Built from the elements instead, each through its own ToString, which also matches .NET where a derived Debug would not: (1, a, True) rather than (1, "a", true).

Rust has no Display for tuples and the orphan rule rules out adding one, so it
did not compile. Built from the elements instead, each through its own
ToString, which also matches .NET where a derived Debug would not: (1, a, True)
rather than (1, "a", true).
@ncave
ncave merged commit 6b123d5 into fable-compiler:main Aug 29, 2026
42 checks passed
MangelMaxime pushed a commit that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants