-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove Pure attribute from System.Collections.Immutable #35118
Conversation
Tagging subscribers to this area: @eiriktsarpalis |
src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.cs
Show resolved
Hide resolved
Fixes #28488 |
Tagged as breaking since the issue mentions that the purpose of this is to raise CA1806 warnings. |
src/libraries/System.Collections.Immutable/Directory.Build.props
Outdated
Show resolved
Hide resolved
src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.cs
Outdated
Show resolved
Hide resolved
So I changed the title of this PR to remove the usage of Pure. @AArnott / @stephentoub what do you think is the right way to track the scenario here? |
First decide what the scenario is 😄 If it's "warn when methods whose results shouldn't be ignored are ignored", we should have an issue tracking/designing it (I think @terrajobst already opened one somewhere for that). If the scenario is something else, well, same answer :) |
Well I was expecting @AArnott to help fill that in once we have some direction about where to do so. I imagine the one you described is close enough to what I'm imagining @AArnott is looking for. @terrajobst can you link us up with that issue? |
That would be #34098. Based on the experience of @stephentoub & @jaredpar in Midori I'd say the direction of having an attribute like |
No description provided.