-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add note on suppressing trimming warnings #30239
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
Conversation
Inspired by the suppression justification from dotnet/linker#2891.
vitek-karas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
I'm still terrible at thinking about trimming the right way - I think what the linker does today, not what it "Should do" in theory.
The more aggressive constant propagation in .NET 7 already puts the IL linker into these territories today. It doesn't kick in often, but when it does, statically used properties and methods get removed. |
sbomer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Co-authored-by: Eric Erhardt <[email protected]> Co-authored-by: Sven Boemer <[email protected]>
|
@adegeo is this okay to merge? |
Inspired by the suppression justification from dotnet/linker#2891.
Cc @vitek-karas @sbomer @tlakollo @eerhardt