-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest linker is raising unexpected warnings in System.Text.Json #2122
Comments
I think Vitek is away so as to not block the update I think we should temporary revert the change |
These warnings are being produced when the linker doesn't understand For example Or for |
Fixes dotnet/linker#2122 Commit migrated from dotnet/linker@cd7d310
With change #2108, we are now getting unexpected ILLink warnings in System.Text.Json. This is blocking merging the latest linker into dotnet/runtime (dotnet/runtime#54907):
I reverted 2f62607 locally and verified that without that change we don't get any warnings. So this feels like a bug introduced with that change.
Going through the warnings listed above, all those methods do have
[RequiresUnreferencedCode]
applied to them, but all calls of the unsafe methods are either suppressed, or the caller has[RequiresUnreferencedCode]
itself. So I'm not seeing what is wrong with the library code.@marek-safar @agocke @sbomer @MichalStrehovsky
The text was updated successfully, but these errors were encountered: