Skip to content

Revert generating isreadonly for structs - #14702

Merged
vzarytovskii merged 4 commits into
mainfrom
14700-isreadonlyattribute-is-emitted-even-if-coming-from-non-runtime-reference
Feb 6, 2023
Merged

Revert generating isreadonly for structs#14702
vzarytovskii merged 4 commits into
mainfrom
14700-isreadonlyattribute-is-emitted-even-if-coming-from-non-runtime-reference

Conversation

@vzarytovskii

@vzarytovskiivzarytovskii commented Feb 6, 2023

Copy link
Copy Markdown
Member

Fixes#14700

@vzarytovskii
vzarytovskii requested a review from a team as a code ownerFebruary 6, 2023 12:09
@vzarytovskii

Copy link
Copy Markdown
MemberAuthor

/run fantomas

0101
0101 approved these changes Feb 6, 2023
@github-actions

Copy link
Copy Markdown
Contributor

@vzarytovskii

Copy link
Copy Markdown
MemberAuthor

/backport to release/dev17.5

@vzarytovskii

Copy link
Copy Markdown
MemberAuthor

/backport to release/dev17.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/dev17.5: https://github.com/dotnet/fsharp/actions/runs/4103527670

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/dev17.6: https://github.com/dotnet/fsharp/actions/runs/4103528545

@github-actions

Copy link
Copy Markdown
Contributor

@vzarytovskii backporting to release/dev17.5 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Revert generating isreadonly
.git/rebase-apply/patch:20: trailing whitespace.
let add = .git/rebase-apply/patch:84: trailing whitespace.
// .custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 01 01 00 00 00 00 ) .git/rebase-apply/patch:121: trailing whitespace.
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .git/rebase-apply/patch:122: trailing whitespace.
.custom instance void [System.Runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 ) .git/rebase-apply/patch:181: trailing whitespace.
// .custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 01 01 00 00 00 00 ) warning: squelched 76 whitespace errors
warning: 81 lines add whitespace errors.
Using index info to reconstruct a base tree...
M	src/Compiler/CodeGen/IlxGen.fs
M	tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
M	tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
M	tests/FSharp.Compiler.ComponentTests/FSharp.Compiler.ComponentTests.fsproj
Falling back to patching base and 3-way merge...
Auto-merging tests/FSharp.Compiler.ComponentTests/FSharp.Compiler.ComponentTests.fsproj
Auto-merging tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
CONFLICT (content): Merge conflict in tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
Auto-merging tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
CONFLICT (content): Merge conflict in tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
Auto-merging src/Compiler/CodeGen/IlxGen.fs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Revert generating isreadonly
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@github-actions

Copy link
Copy Markdown
Contributor

@vzarytovskii backporting to release/dev17.6 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Revert generating isreadonly
.git/rebase-apply/patch:20: trailing whitespace.
let add = .git/rebase-apply/patch:84: trailing whitespace.
// .custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 01 01 00 00 00 00 ) .git/rebase-apply/patch:121: trailing whitespace.
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) .git/rebase-apply/patch:122: trailing whitespace.
.custom instance void [System.Runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 ) .git/rebase-apply/patch:181: trailing whitespace.
// .custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 01 01 00 00 00 00 ) warning: squelched 76 whitespace errors
warning: 81 lines add whitespace errors.
Using index info to reconstruct a base tree...
M	src/Compiler/CodeGen/IlxGen.fs
M	tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
M	tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
Falling back to patching base and 3-way merge...
Auto-merging tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
CONFLICT (content): Merge conflict in tests/FSharp.Compiler.ComponentTests/EmittedIL/Structure/FloatsAndDoubles.fs.il.release.bsl
Auto-merging tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
CONFLICT (content): Merge conflict in tests/FSharp.Compiler.ComponentTests/EmittedIL/Misc/Structs02.fs.il.release.bsl
Auto-merging src/Compiler/CodeGen/IlxGen.fs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Revert generating isreadonly
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@vzarytovskii
vzarytovskii enabled auto-merge (squash) February 6, 2023 13:49
@vzarytovskii
vzarytovskii merged commit 6649b75 into mainFeb 6, 2023
@vzarytovskiivzarytovskii mentioned this pull request Feb 6, 2023
@T-Gro
T-Gro deleted the 14700-isreadonlyattribute-is-emitted-even-if-coming-from-non-runtime-reference branch February 27, 2023 12:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

IsReadOnlyAttribute is emitted even if coming from non-runtime reference

4 participants

@vzarytovskii@0101@abonie@T-Gro