Suppress some new trimmer warnings (#65580)
authorVitek Karas <10670590+vitek-karas@users.noreply.github.com>
Mon, 21 Feb 2022 10:28:47 +0000 (02:28 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 10:28:47 +0000 (02:28 -0800)
commit2e353d18b81732133aadbee888a801fd9f935fbf
tree1292e9d98ef68c63e674a438c4132e8745aeb23f
parentc31befcc1559163c6f1e279b15e9b2a99ccf277f
Suppress some new trimmer warnings (#65580)

The next update of linker will improve some data flow analysis and this uncovers more warnings in the libraries.
None of these warnings are a real problem, they're all basically inability to express the desired behavior with the current annotation system.

This change suppresses the new warnings.
src/coreclr/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs
src/libraries/System.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs
src/libraries/System.Runtime.Serialization.Formatters/src/System/Runtime/Serialization/FormatterServices.cs