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

Add UnscopedRefAttribute #72499

Merged
merged 5 commits into from
Jul 22, 2022
Merged

Conversation

AaronRobinsonMSFT
Copy link
Member

Fixes #72074

/cc @jaredpar @cston

@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost
Copy link

ghost commented Jul 20, 2022

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

Issue Details

Fixes #72074

/cc @jaredpar @cston

Author: AaronRobinsonMSFT
Assignees: -
Labels:

area-System.Runtime.CompilerServices

Milestone: 7.0.0

@AaronRobinsonMSFT AaronRobinsonMSFT marked this pull request as ready for review July 21, 2022 17:47
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title Add RefEscapesAttribute Add UnscopedRefAttribute Jul 21, 2022
…deAnalysis/UnscopedRefAttribute.cs

Co-authored-by: Sergio Pedri <sergio0694@live.com>
Co-authored-by: Sergio Pedri <sergio0694@live.com>
AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter,
AllowMultiple = false,
Inherited = false)]
public sealed class UnscopedRefAttribute : Attribute
Copy link
Member

Choose a reason for hiding this comment

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

We can hold off on doing so until it's needed, but we may need to do the same visibility dance we do with other attributes that may get compiled into other projects downlevel, e.g.

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 555a791 into dotnet:main Jul 22, 2022
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_72074 branch July 22, 2022 14:49
@ghost ghost locked as resolved and limited conversation to collaborators Aug 21, 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.

[API Proposal]: System.Diagnostics.CodeAnalysis.UnscopedRefAttribute
4 participants