Skip to content

Commit 2920781

Browse files
am11dotnet-maestro[bot]sbomer
authored andcommitted
Update dependencies from dotnet/roslyn (#110105)
* Update dependencies from https://github.com/dotnet/roslyn build 20241122.2 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-2.24572.2 * Update dependencies from https://github.com/dotnet/roslyn build 20241122.15 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-2.24572.15 * Update dependencies from https://github.com/dotnet/roslyn build 20241124.5 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-2.24574.5 * Update dependencies from https://github.com/dotnet/roslyn build 20241125.18 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24575.18 * Update dependencies from https://github.com/dotnet/roslyn build 20241127.2 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24577.2 * Update dependencies from https://github.com/dotnet/roslyn build 20241128.2 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24578.2 * Update dependencies from https://github.com/dotnet/roslyn build 20241128.3 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24578.3 * Update dependencies from https://github.com/dotnet/roslyn build 20241130.1 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24580.1 * Update dependencies from https://github.com/dotnet/roslyn build 20241130.2 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24580.2 * Update dependencies from https://github.com/dotnet/roslyn build 20241201.2 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24601.2 * Update dependencies from https://github.com/dotnet/roslyn build 20241202.26 Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.13.0-2.24570.4 -> To Version 4.13.0-3.24602.26 * Use explicit AsSpan * Fix LibraryImportGenerator.UnitTests * Fix regex tests * Adjust trimming test for new codegen With this roslyn update, the generated iterator state machine for this test includes a Dispose method which assigns null to the array, inhibiting dataflow analysis. --------- Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Sven Boemer <sbomer@gmail.com>
1 parent 5350daa commit 2920781

31 files changed

Lines changed: 72 additions & 79 deletions

File tree

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,17 +376,17 @@
376376
<Uri>https://github.com/dotnet/runtime-assets</Uri>
377377
<Sha>4daef9f8f673c1d0bbec273f2bcda1ab9074ef75</Sha>
378378
</Dependency>
379-
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.13.0-2.24570.4">
379+
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.13.0-3.24602.26">
380380
<Uri>https://github.com/dotnet/roslyn</Uri>
381-
<Sha>94fff7ad4f11977f903f435b0d97dcf0f2183710</Sha>
381+
<Sha>089e61c59dcb3d46fe766abc85176ef8e42e4d58</Sha>
382382
</Dependency>
383-
<Dependency Name="Microsoft.CodeAnalysis" Version="4.13.0-2.24570.4">
383+
<Dependency Name="Microsoft.CodeAnalysis" Version="4.13.0-3.24602.26">
384384
<Uri>https://github.com/dotnet/roslyn</Uri>
385-
<Sha>94fff7ad4f11977f903f435b0d97dcf0f2183710</Sha>
385+
<Sha>089e61c59dcb3d46fe766abc85176ef8e42e4d58</Sha>
386386
</Dependency>
387-
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.13.0-2.24570.4">
387+
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.13.0-3.24602.26">
388388
<Uri>https://github.com/dotnet/roslyn</Uri>
389-
<Sha>94fff7ad4f11977f903f435b0d97dcf0f2183710</Sha>
389+
<Sha>089e61c59dcb3d46fe766abc85176ef8e42e4d58</Sha>
390390
</Dependency>
391391
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.12.0-beta1.24559.1">
392392
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
@@ -397,9 +397,9 @@
397397
<Sha>5435ba7b1037f21237adc1b3845f97e9fdbc075d</Sha>
398398
</Dependency>
399399
<!-- Intermediate is necessary for source build. -->
400-
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.13.0-2.24570.4">
400+
<Dependency Name="Microsoft.SourceBuild.Intermediate.roslyn" Version="4.13.0-3.24602.26">
401401
<Uri>https://github.com/dotnet/roslyn</Uri>
402-
<Sha>94fff7ad4f11977f903f435b0d97dcf0f2183710</Sha>
402+
<Sha>089e61c59dcb3d46fe766abc85176ef8e42e4d58</Sha>
403403
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
404404
</Dependency>
405405
<Dependency Name="Microsoft.DotNet.ApiCompat.Task" Version="10.0.100-alpha.1.24480.5">

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
Any tools that contribute to the design-time experience should use the MicrosoftCodeAnalysisVersion_LatestVS property above to ensure
4444
they do not break the local dev experience.
4545
-->
46-
<MicrosoftCodeAnalysisCSharpVersion>4.13.0-2.24570.4</MicrosoftCodeAnalysisCSharpVersion>
47-
<MicrosoftCodeAnalysisVersion>4.13.0-2.24570.4</MicrosoftCodeAnalysisVersion>
48-
<MicrosoftNetCompilersToolsetVersion>4.13.0-2.24570.4</MicrosoftNetCompilersToolsetVersion>
46+
<MicrosoftCodeAnalysisCSharpVersion>4.13.0-3.24602.26</MicrosoftCodeAnalysisCSharpVersion>
47+
<MicrosoftCodeAnalysisVersion>4.13.0-3.24602.26</MicrosoftCodeAnalysisVersion>
48+
<MicrosoftNetCompilersToolsetVersion>4.13.0-3.24602.26</MicrosoftNetCompilersToolsetVersion>
4949
</PropertyGroup>
5050
<!--
5151
For source generator support we need to target multiple versions of Roslyn in order to be able to run on older versions of Roslyn.

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ReachabilityInstrumentationFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public ReachabilityInstrumentationFilter(string profileDataFileName, ILProvider
4444
int numTokens = reader.ReadInt32();
4545

4646
bool[] tokenStates = new bool[numTokens];
47-
if (reader.Read(MemoryMarshal.Cast<bool, byte>(tokenStates)) != numTokens)
47+
if (reader.Read(MemoryMarshal.Cast<bool, byte>(tokenStates.AsSpan())) != numTokens)
4848
throw new IOException("Unexpected end of file");
4949

5050
_reachabilityInfo.Add(new Guid(guidBytes), tokenStates);

src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ public virtual async Task ReadWrite_MessagesSmallerThanReadBuffer_Success(ReadWr
19151915
}
19161916

19171917
Assert.Equal(writerBytes.Length, n);
1918-
AssertExtensions.SequenceEqual(writerBytes, readerBytes.AsSpan(0, writerBytes.Length));
1918+
AssertExtensions.SequenceEqual(writerBytes.AsSpan(), readerBytes.AsSpan(0, writerBytes.Length));
19191919

19201920
await writes;
19211921
}
@@ -3069,7 +3069,7 @@ public virtual async Task ZeroByteRead_PerformsZeroByteReadOnUnderlyingStreamWhe
30693069

30703070
if (FlushGuaranteesAllDataWritten)
30713071
{
3072-
AssertExtensions.SequenceEqual(data, buffer.AsSpan(0, bytesRead));
3072+
AssertExtensions.SequenceEqual(data.AsSpan(), buffer.AsSpan(0, bytesRead));
30733073
}
30743074
}
30753075
}

src/libraries/System.Formats.Nrbf/src/System/Formats/Nrbf/ArraySinglePrimitiveRecord.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ internal static IReadOnlyList<T> DecodePrimitiveTypes(BinaryReader reader, int c
161161
{
162162
if (typeof(T) == typeof(short) || typeof(T) == typeof(ushort))
163163
{
164-
Span<short> span = MemoryMarshal.Cast<T, short>(result);
164+
Span<short> span = MemoryMarshal.Cast<T, short>(result.AsSpan());
165165
#if NET
166166
BinaryPrimitives.ReverseEndianness(span, span);
167167
#else
@@ -173,7 +173,7 @@ internal static IReadOnlyList<T> DecodePrimitiveTypes(BinaryReader reader, int c
173173
}
174174
else if (typeof(T) == typeof(int) || typeof(T) == typeof(uint) || typeof(T) == typeof(float))
175175
{
176-
Span<int> span = MemoryMarshal.Cast<T, int>(result);
176+
Span<int> span = MemoryMarshal.Cast<T, int>(result.AsSpan());
177177
#if NET
178178
BinaryPrimitives.ReverseEndianness(span, span);
179179
#else
@@ -185,7 +185,7 @@ internal static IReadOnlyList<T> DecodePrimitiveTypes(BinaryReader reader, int c
185185
}
186186
else if (typeof(T) == typeof(long) || typeof(T) == typeof(ulong) || typeof(T) == typeof(double))
187187
{
188-
Span<long> span = MemoryMarshal.Cast<T, long>(result);
188+
Span<long> span = MemoryMarshal.Cast<T, long>(result.AsSpan());
189189
#if NET
190190
BinaryPrimitives.ReverseEndianness(span, span);
191191
#else
@@ -201,7 +201,7 @@ internal static IReadOnlyList<T> DecodePrimitiveTypes(BinaryReader reader, int c
201201
{
202202
// See DontCastBytesToBooleans test to see what could go wrong.
203203
bool[] booleans = (bool[])(object)result;
204-
Span<byte> resultAsBytes = MemoryMarshal.AsBytes<T>(result);
204+
Span<byte> resultAsBytes = MemoryMarshal.AsBytes<T>(result.AsSpan());
205205
for (int i = 0; i < booleans.Length; i++)
206206
{
207207
// We don't use the bool array to get the value, as an optimizing compiler or JIT could elide this.

src/libraries/System.Linq/tests/RangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static void Validate(IEnumerable<int> e, int[] expected)
270270
list.CopyTo(actual, 1);
271271
Assert.Equal(0, actual[0]);
272272
Assert.Equal(0, actual[^1]);
273-
AssertExtensions.SequenceEqual(expected, actual.AsSpan(1, expected.Length));
273+
AssertExtensions.SequenceEqual(expected.AsSpan(), actual.AsSpan(1, expected.Length));
274274
}
275275
}
276276
}

src/libraries/System.Linq/tests/RepeatTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static void Validate(IEnumerable<int> e, int[] expected)
282282
list.CopyTo(actual, 1);
283283
Assert.Equal(0, actual[0]);
284284
Assert.Equal(0, actual[^1]);
285-
AssertExtensions.SequenceEqual(expected, actual.AsSpan(1, expected.Length));
285+
AssertExtensions.SequenceEqual(expected.AsSpan(), actual.AsSpan(1, expected.Length));
286286
}
287287
}
288288
}

src/libraries/System.Memory/tests/Base64Url/Base64UrlUnicodeAPIsUnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public static void Base64_AllMethodsRoundtripConsistently()
438438
Span<byte> decodedBytes = new byte[original.Length];
439439
int decoded = Base64Url.DecodeFromChars(encodedArray, decodedBytes);
440440
Assert.Equal(original.Length, decoded);
441-
AssertExtensions.SequenceEqual(original, decodedBytes);
441+
AssertExtensions.SequenceEqual(original.AsSpan(), decodedBytes);
442442

443443
byte[] actualBytes = new byte[original.Length];
444444
Assert.True(Base64Url.TryDecodeFromChars(encodedSpan, actualBytes, out int bytesWritten));

src/libraries/System.Memory/tests/Span/SearchValues.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static SearchValuesTestHelper()
465465
s_randomLatin1Chars[i] = (char)rng.Next(0, 256);
466466
}
467467

468-
rng.NextBytes(MemoryMarshal.Cast<char, byte>(s_randomChars));
468+
rng.NextBytes(MemoryMarshal.Cast<char, byte>(s_randomChars.AsSpan()));
469469

470470
s_randomAsciiBytes = Encoding.ASCII.GetBytes(s_randomAsciiChars);
471471

src/libraries/System.Memory/tests/Span/StringSearchValues.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public StringSearchValuesTestHelper(IndexOfAnySearchDelegate expected, SearchVal
620620
}));
621621
}
622622

623-
rng.NextBytes(MemoryMarshal.Cast<char, byte>(_randomChars));
623+
rng.NextBytes(MemoryMarshal.Cast<char, byte>(_randomChars.AsSpan()));
624624
}
625625

626626
public void StressRandomInputs(TimeSpan duration)

0 commit comments

Comments
 (0)