Skip to content
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

[release/7.0-rc2] Fix edge cases of getting attribute data from syntax #75728

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 15, 2022

Backport of #75727 to release/7.0-rc2

/cc @jkoritzinsky

Customer Impact

The bugs that this PR fixes cause AD0001 diagnostics when building, which causes developer builds that hit the corner cases to emit warnings, or errors if their builds are set to treat warnings as errors. As a result, the bugs this PR fixes can cause build breaks. This can be hit with any attribute that meets the corner case, not just one of the new attributes related to the analyzer, as this failure happens in the part of the analyzer that determines if the attribute is interesting.

With these changes, the two corner cases (attributes on local functions and attributes on return types of delegates) will no longer cause build breaks as they will be handled correctly.

Testing

Tests are included in the PR in main and this PR.

Risk

Low

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Fix two customer-discovered edge cases that were causing analyzer crashes.

Fixes #75681
Fixes #75706
@ghost
Copy link

ghost commented Sep 15, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #75727 to release/7.0-rc2

/cc @jkoritzinsky

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved. we will take for consideration in rc2

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Sep 16, 2022
@jeffschwMSFT jeffschwMSFT added this to the 7.0.0 milestone Sep 16, 2022
@carlossanlop
Copy link
Member

CI failures are unrelated cancelation timeouts happening consistently in a couple of arm64 queues (already reported to FR).
Approved, signed off. Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit e0a65e0 into release/7.0-rc2 Sep 16, 2022
@carlossanlop carlossanlop deleted the backport/pr-75727-to-release/7.0-rc2 branch September 16, 2022 16:48
@ghost ghost locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants