Skip to content

Commit 5e7daff

Browse files
authored
Backport pragma disable from #70248
1 parent 1276451 commit 5e7daff

File tree

1 file changed

+2
-0
lines changed
  • src/Workspaces/Core/Portable/Workspace/Solution

1 file changed

+2
-0
lines changed

src/Workspaces/Core/Portable/Workspace/Solution/Checksum.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ public void WriteTo(ObjectWriter writer)
119119
public void WriteTo(Span<byte> span)
120120
{
121121
Contract.ThrowIfFalse(span.Length >= HashSize);
122+
#pragma warning disable CS9191 // The 'ref' modifier for an argument corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
122123
Contract.ThrowIfFalse(MemoryMarshal.TryWrite(span, ref Unsafe.AsRef(in _checksum)));
124+
#pragma warning restore CS9191
123125
}
124126

125127
public static Checksum ReadFrom(ObjectReader reader)

0 commit comments

Comments
 (0)