-
Notifications
You must be signed in to change notification settings - Fork 867
Compiled ToStrings under -reflectionfree for DUs and Records #19976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
abonie
merged 38 commits into
dotnet:main
from
charlesroddie:DUsRecordsCompiledToStrings
Jul 30, 2026
Merged
Changes from 11 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
4e8c86c
Add a compiler intrinsic for the 'string' operator
charlesroddie 1d5769c
Generate a match-based ToString for unions under --reflectionfree
charlesroddie bfb3939
Extract mkStringConcat helper for arity-dispatched String.Concat
charlesroddie e5710fa
Fix generated union ToString for generic unions
charlesroddie d5712c8
Render union ToString fields like option (null -> "null")
charlesroddie 26f0e53
Tidy reflection-free union ToString tests
charlesroddie 87e6870
Add reflection-free ToString to Result and Choice
charlesroddie 956a4b0
Generate a single-line ToString for records under --reflectionfree
charlesroddie a021166
Update FSharp.Core surface-area baselines for Result/Choice ToString
charlesroddie 8eef294
Add release notes
charlesroddie 3754def
Generate a single-line ToString for anonymous records under --reflect…
charlesroddie a5f33ca
Test that a hand-written ToString override is kept under --reflection…
charlesroddie 7ed0d8d
Rename ToString generators for clarity
charlesroddie dd3d75c
Restore tabular layout for string_operator_info in TcGlobals
charlesroddie 1a5065e
Add reflection-free ToString tests for field shapes, structs, anon re…
charlesroddie 2c108ed
Add EmittedIL tests for reflection-free record and union ToString
charlesroddie 6a2199c
Generate reflection-free ToString in the augmentation phase
charlesroddie 474b9f9
Guard generated reflection-free ToString against deep-recursion overflow
charlesroddie e130e50
Test the reflection-free ToString deep-recursion guard
charlesroddie 6e276b1
revert ToString additions to fsharp.core types
charlesroddie e3c1a34
Remove stale FSharp.Core release note for the reverted Result/Choice …
charlesroddie 93ee8ce
Merge remote-tracking branch 'upstream/main' into DUsRecordsCompiledT…
charlesroddie dcb4fc3
Merge branch 'main' into DUsRecordsCompiledToStrings
charlesroddie c4debaf
Merge branch 'main' into DUsRecordsCompiledToStrings
charlesroddie 817e9de
Fix code formatting in IlxGen.fs (dotnet fantomas)
charlesroddie 770601f
Merge branch 'main' into DUsRecordsCompiledToStrings
charlesroddie 0616237
don't use quoted name
charlesroddie 3f710ee
int version of reflectionfree-printing doc
charlesroddie 432b137
doc tweaks
charlesroddie 1d6f442
Link release note to the printing doc and cover anonymous records
charlesroddie 4cae86a
test backticks
charlesroddie 46da7a2
Share the ToString recursion guard with anonymous records
charlesroddie 275b188
Add EmittedIL baselines for struct and anonymous record ToString
charlesroddie 39741d8
Merge remote-tracking branch 'upstream/main' into DUsRecordsCompiledT…
charlesroddie 39ca150
Fix empty anonymous record ToString rendering a doubled space
charlesroddie da3550b
tidy comment
charlesroddie 9ed5cc7
Merge branch 'main' into DUsRecordsCompiledToStrings
charlesroddie 2ccd69d
Merge remote-tracking branch 'upstream/main' into DUsRecordsCompiledT…
charlesroddie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.