Skip to content

Conversation

@vzarytovskii
Copy link
Member

@vzarytovskii vzarytovskii commented Feb 6, 2023

Fixes #14700

@vzarytovskii vzarytovskii requested a review from a team as a code owner February 6, 2023 12:09
@vzarytovskii
Copy link
Member Author

/run fantomas

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

@vzarytovskii
Copy link
Member Author

/backport to release/dev17.5

@vzarytovskii
Copy link
Member Author

/backport to release/dev17.6

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

@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
Contributor

github-actions bot commented Feb 6, 2023

@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 main 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

IsReadOnlyAttribute is emitted even if coming from non-runtime reference

5 participants