Skip to content

Commit

Permalink
Removed ReservedAttributes.LifetimeAnnotationAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cston committed Jun 24, 2022
1 parent e1aa9e8 commit 9ace414
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Compilers/CSharp/Portable/Symbols/Symbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1438,11 +1438,6 @@ internal bool ReportExplicitUseOfReservedAttributes(in DecodeWellKnownAttributeA
// Do not use 'System.Runtime.CompilerServices.RequiredMemberAttribute'. Use the 'required' keyword on required fields and properties instead.
diagnostics.Add(ErrorCode.ERR_ExplicitRequiredMember, arguments.AttributeSyntaxOpt.Location);
}
// https://github.com/dotnet/roslyn/issues/62124: Re-enable check for LifetimeAnnotationAttribute.
//else if ((reserved & ReservedAttributes.LifetimeAnnotationAttribute) != 0 &&
// reportExplicitUseOfReservedAttribute(attribute, arguments, AttributeDescription.LifetimeAnnotationAttribute))
//{
//}
else
{
return false;
Expand Down

0 comments on commit 9ace414

Please sign in to comment.