Skip to content

Commit

Permalink
Backport pragma disable from #70248
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich authored Jun 5, 2024
1 parent 1276451 commit 5e7daff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Workspaces/Core/Portable/Workspace/Solution/Checksum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public void WriteTo(ObjectWriter writer)
public void WriteTo(Span<byte> span)
{
Contract.ThrowIfFalse(span.Length >= HashSize);
#pragma warning disable CS9191 // The 'ref' modifier for an argument corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
Contract.ThrowIfFalse(MemoryMarshal.TryWrite(span, ref Unsafe.AsRef(in _checksum)));
#pragma warning restore CS9191
}

public static Checksum ReadFrom(ObjectReader reader)
Expand Down

0 comments on commit 5e7daff

Please sign in to comment.