Repository navigation
[main] Source code updates from dotnet/roslyn - #6291
Conversation
[[ commit created by automation ]]
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
The generator dropped the net8.0 ItemGroup for System.Formats.Asn1. This matches what exists in the 8.0.0 csproj. Co-authored-by: Copilot <[email protected]>
|
Important While this PR was open, the source repository has received code changes from this repository (an opposite codeflow merged). You can continue with one of the following options:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
13ae236 to
9dd7323
Compare
|
So lots of warnings as errors due to dotnet/roslyn@5850036 // Under the updated memory safety rules, a stackalloc_expression is unsafe if being converted to Span/ROS,
// does not have an initializer, and is used within a member with SkipLocalsInitAttribute.We can apply unsafe to all of those cases. |
Co-authored-by: Copilot <[email protected]>
|
@copilot please clean up this duplicate
|
Head branch was pushed to by a user without write access
Fixed in 5de6720. Removed the |
|
@copilot we still need to fix 2 more usages of stackalloc:
Fix these by applying |
|
@copilot fix this build error. If your most recent change introduced any similar errors, fix those as well:
|
…dard2.0/net462 Agent-Logs-Url: https://github.com/dotnet/dotnet/sessions/08b2de3c-2dd9-4852-8c61-05c3fdfd5494 Co-authored-by: wtgodbe <[email protected]>
Fixed in 9fb875d. Added |
Roslyn 5.7.0 (CS9361) now requires methods using stackalloc without initializers inside SkipLocalsInit-attributed assemblies to be marked as unsafe. Affected libraries: - System.Formats.Asn1 (5 methods) - System.Text.RegularExpressions (4 methods) Co-authored-by: Copilot <[email protected]>
…Init Comprehensive scan of all libraries with SkipLocalsInit + stackalloc without initializer. Covers: - System.Text.RegularExpressions (22 methods across 8 files) - System.Formats.Asn1 (1 more: AsnWriter.GeneralizedTime) - System.Linq.Expressions (1: ILGen.EmitDecimal) - System.Net.WebSockets.Client (1: CreateSecKeyAndSecWebSocketAccept) Co-authored-by: Copilot <[email protected]>
Required for the unsafe method added in the previous commit (ILGen.EmitDecimal). Co-authored-by: Copilot <[email protected]>
…sionInfo More libraries exposed by source-build reaching further into the build: - System.IO.Compression (14 methods: ZipBlocks, ZipArchiveEntry, HuffmanTree, ZstandardStream) - System.Security.Cryptography (4 methods: Aes, SP800108, X25519) - System.Diagnostics.FileVersionInfo (1 method: ParseVersion) The SDK failure in this build is the known TemplateEngine file lock race (sdk#54020), unrelated to CS9361. Co-authored-by: Copilot <[email protected]>
25 more methods across 17 files, mostly X509 certificate operations and crypto primitives (Aes, DSA, HMAC, Base64, ECC, KMAC). The SDK failure in the previous build was the known TemplateEngine file lock race (sdk#54020), unrelated. Co-authored-by: Copilot <[email protected]>
|
@wtgodbe -- if this takes much longer we can just nowarn the diagnostic in runtime and file an issue for folks to clean it up. It's a bit annoying that these are difficult to repro locally. If we had a toolset package we could apply here it would help and we could have an agent fix everything, but since these are only hit in the offline source build - requiring a full sourcebuild / rebuild with latest. @jjonescz if you have any tips to drive to green without the full offline source build please suggest. |
…rkInfo 30 more methods across 20 files: - System.Security.Cryptography: ECDsa, HKDF, HMAC, IncrementalHash, KMAC, MD5/SHA*, PemEncoding, RandomNumberGenerator, Rfc2898, X25519, X509, XmlKeyHelper - System.Net.NetworkInformation: IPv6 parsing, interface statistics - System.Net.Ping: raw socket ping reply - System.IO.Compression: WriteLocalFileHeader (missed in prior round) Co-authored-by: Copilot <[email protected]>
It's not a warning, it's an error.
If you install the corresponding compiler toolset package, you should be able to repro (modulo any runtime repo quirks I might be missing). I can try that with a local copilot loop, that's a good idea. |
23 methods across 11 files: - System.Runtime.InteropServices.JavaScript (11: Func/Task marshaling) - System.Security.Cryptography (8: platform-specific - Android, Windows, Apple, Browser) - Microsoft.Win32.Registry (1: GetSubKeyNames) - System.Net.NameResolution (1: CreateIPv6Address) Co-authored-by: Copilot <[email protected]>
|
So I built locally to try to find all the errors at once, but now I realize it was |
…aders) Co-authored-by: Copilot <[email protected]>
Note
This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.
This pull request brings the following source code changes
From https://github.com/dotnet/roslyn
Diff the source with this PR branch