dotnet / linker

389 stars 126 forks source link

[release/7.0] Redundant suppression fixes #3019

Closed sbomer closed 2 years ago

sbomer commented 2 years ago

Backport of https://github.com/dotnet/linker/pull/2965 and https://github.com/dotnet/linker/pull/2999.

https://github.com/dotnet/linker/pull/2999 needs to go into 7.0 to fix the issue encountered in https://github.com/dotnet/sdk/pull/27564.

I also cherry-picked https://github.com/dotnet/linker/pull/2965 because the fix depends on some factoring done in that change. This does include some unrelated changes with their own risk. @vitek-karas what do you think of this approach? Would you rather do something more targeted?

I confirmed that this backport fixes the issue encountered in the SDK PR.